Update vfs.rs

Update vfs for the need of the new path-resolution system.
1. Add Send mark to FileSystem. (I can't tell why Send is necessary and right here, but adding the mark does not conflict with current SFS, at least now.)
Note that updating version of bitvec of SFS may break Send and Sync.
2. Add SymLoop (E_LOOP) for bad path resolution.
master
gjz010 6 years ago committed by GitHub
parent ee0d0b31a1
commit 11a41c8c95
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