mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2026-01-31 01:21:46 -05:00
properly shutdown system
This commit is contained in:
committed by
Matthew Leach
parent
504f7f01dc
commit
de76e243a2
@@ -57,6 +57,14 @@ pub trait Filesystem: Send + Sync {
|
||||
|
||||
/// Returns the instance ID for this FS.
|
||||
fn id(&self) -> u64;
|
||||
|
||||
/// Flushes all pending data to the underlying storage device(s).
|
||||
///
|
||||
/// The default implementation is a no-op so that read-only filesystems do
|
||||
/// not need to override it.
|
||||
async fn sync(&self) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
// A unique identifier for an inode across the entire VFS. A tuple of
|
||||
|
||||
Reference in New Issue
Block a user