Open
Description
This is a follow-up of #747, I have been playing around with it and I have a bit of wishlist (of course, would love to contribute directly some of them), but want to discuss with you.
FileSystemResult
doesn't compose well withuefi::Result
, maybe we should have a 4th variantUEFIError
or something or transform easily anyFileSystemResult
into auefi::Result
, I don't really know what is the best but what I am seeing is that we need more powerful and user-friendly errors when writing FS code that mixes UEFI code and FS code.- Constructing paths: there's no join operations at the moment I believe.
- Constructing OS paths: while we live in UEFI land, and we use CStr16 everywhere, sometimes, we would like to write UNIX or Windows paths in some file that we are preparing for boot, e.g. in lanzaboote, we would like to assemble a CPIO archive, the paths are therefore UTF-8 UNIX paths. For this, I wish I had
std::path::Path
, but I don't :-). It would be interesting to see if we can find an alloc solution for that (maybe it's a Rust upstream issue). is_ascii
is a missing onCStr16
I think (same foris_utf8
), it would be useful to have it for many FS work (where I want to exclude any weird filenames).- Weird impedence mismatch between
fs.open_volume
and opening a filesystem with SimpleFilesystem, I can never get aDirectory
this way, how is it envisioned to get a handle on the root directory in the high level API?
I think this is all I can think of right now. (feel free to rename the issues or whatever.)
Metadata
Metadata
Assignees
Labels
No labels