pub struct FxFilesystem { /* private fields */ }
Implementations§
Source§impl FxFilesystem
impl FxFilesystem
pub async fn new_empty(device: DeviceHolder) -> Result<OpenFxFilesystem, Error>
pub async fn open(device: DeviceHolder) -> Result<OpenFxFilesystem, Error>
pub fn root_parent_store(&self) -> Arc<ObjectStore>
pub async fn close(&self) -> Result<(), Error>
pub fn device(&self) -> Arc<dyn Device>
pub fn root_store(&self) -> Arc<ObjectStore>
pub fn allocator(&self) -> Arc<Allocator>
pub fn object_manager(&self) -> &Arc<ObjectManager>
pub fn journal(&self) -> &Arc<Journal>
pub async fn sync(&self, options: SyncOptions<'_>) -> Result<(), Error>
pub fn block_size(&self) -> u64
pub fn get_info(&self) -> Info
pub fn super_block_header(&self) -> SuperBlockHeader
pub fn graveyard(&self) -> &Arc<Graveyard>
pub fn trace(&self) -> bool
pub fn options(&self) -> &Options
Sourcepub async fn txn_guard(self: Arc<Self>) -> TxnGuard<'static>
pub async fn txn_guard(self: Arc<Self>) -> TxnGuard<'static>
Returns a guard that must be taken before any transaction can commence. This guard takes a
shared lock on the filesystem. fsck
will take an exclusive lock so that it can get a
consistent picture of the filesystem that it can verify. It is important that this lock is
acquired before all other locks. It is also important that this lock is not taken twice
by the same task since that can lead to deadlocks if another task tries to take a write
lock.
pub async fn new_transaction<'a>( self: Arc<Self>, locks: LockKeys, options: Options<'a>, ) -> Result<Transaction<'a>, Error>
pub async fn commit_transaction( &self, transaction: &mut Transaction<'_>, callback: &mut (dyn FnMut(u64) + Send), ) -> Result<u64, Error>
pub fn lock_manager(&self) -> &LockManager
Auto Trait Implementations§
impl !Freeze for FxFilesystem
impl !RefUnwindSafe for FxFilesystem
impl Send for FxFilesystem
impl Sync for FxFilesystem
impl Unpin for FxFilesystem
impl !UnwindSafe for FxFilesystem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more