Skip to content

Commit

Permalink
Merge pull request #3 from Hywan/feat-vfs-mem-reboot
Browse files Browse the repository at this point in the history
Feat vfs mem reboot
  • Loading branch information
Hywan committed Aug 27, 2021
2 parents 743e302 + e617937 commit e011c3b
Show file tree
Hide file tree
Showing 2 changed files with 2,013 additions and 473 deletions.
7 changes: 5 additions & 2 deletions lib/vfs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ pub enum FsError {
/// File exists
#[error("file exists")]
AlreadyExists,
/// The filesystem has failed to lock a resource.
#[error("lock error")]
Lock,
/// Something failed when doing IO. These errors can generally not be handled.
/// It may work if tried again.
#[error("io error")]
Expand Down Expand Up @@ -351,7 +354,7 @@ impl DirEntry {
}
}

#[derive(Clone, Debug)]
#[derive(Clone, Debug, Default)]
// TODO: review this, proper solution would probably use a trait object internally
pub struct Metadata {
pub ft: FileType,
Expand Down Expand Up @@ -385,7 +388,7 @@ impl Metadata {
}
}

#[derive(Clone, Debug)]
#[derive(Clone, Debug, Default)]
// TODO: review this, proper solution would probably use a trait object internally
pub struct FileType {
pub dir: bool,
Expand Down
Loading

0 comments on commit e011c3b

Please sign in to comment.