class ManagedVfs
Defined at line 37 of file ../../src/storage/lib/vfs/cpp/managed_vfs.h
A specialization of |Vfs| which tracks FIDL connections. and integrates them with Vnode requests.
This implementation is the normal one used on Fuchsia. It will not work in host builds.
This class is thread-safe, but it is unsafe to shutdown the dispatch loop before shutting down
the ManagedVfs object, and a multi-threaded dispatcher is *not* supported.
Public Methods
void ManagedVfs (async_dispatcher_t * dispatcher)
Defined at line 30 of file ../../src/storage/lib/vfs/cpp/managed_vfs.cc
void ~ManagedVfs ()
The ManagedVfs destructor is only safe to execute if no connections are actively registered.
To ensure that this state is achieved, it is recommended that clients issue a call to
|Shutdown| before calling the destructor.
Defined at line 34 of file ../../src/storage/lib/vfs/cpp/managed_vfs.cc
void Shutdown (ShutdownCallback handler)
Asynchronously drop all connections managed by the VFS.
Invokes |handler| once when all connections are destroyed. It is safe to delete ManagedVfs from
within the closure.
It is unsafe to call Shutdown multiple times.
Defined at line 39 of file ../../src/storage/lib/vfs/cpp/managed_vfs.cc
void CloseAllConnectionsForVnode (const Vnode & node, CloseAllConnectionsForVnodeCallback callback)
Defined at line 59 of file ../../src/storage/lib/vfs/cpp/managed_vfs.cc