Merge pull request #6 from gjz010/master

Update vfs.rs for the need of the new path-resolution system.
master
Chen 6 years ago committed by GitHub
commit 5f4b87fa30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -257,6 +257,7 @@ pub enum FsError {
IOCTLError,
NoDevice,
Again, // E_AGAIN, when no data is available, never happens in fs
SymLoop, //E_LOOP
}
impl fmt::Display for FsError {
@ -277,7 +278,7 @@ impl std::error::Error for FsError {}
pub type Result<T> = result::Result<T, FsError>;
/// Abstract file system
pub trait FileSystem: Sync {
pub trait FileSystem: Sync+Send {
/// Sync all data to the storage
fn sync(&self) -> Result<()>;

Loading…
Cancel
Save