class MountedVolume

Defined at line 117 of file ../../src/storage/lib/fs_management/cpp/mount.h

Manages a started volume within a filesystem instance (i.e. one opened or created by

[`fuchsia.fs.startup.Volumes`]).

Public Methods

void MountedVolume ()

Defined at line 119 of file ../../src/storage/lib/fs_management/cpp/mount.h

void MountedVolume (fidl::ClientEnd<fuchsia_io::Directory> export_root)

Defined at line 120 of file ../../src/storage/lib/fs_management/cpp/mount.h

void MountedVolume (MountedVolume && o)

Defined at line 122 of file ../../src/storage/lib/fs_management/cpp/mount.h

MountedVolume & operator= (MountedVolume && o)

Defined at line 125 of file ../../src/storage/lib/fs_management/cpp/mount.h

const fidl::ClientEnd<fuchsia_io::Directory> & ExportRoot ()

Returns the connection to the export root of the volume.

Defined at line 134 of file ../../src/storage/lib/fs_management/cpp/mount.h

zx::result<fidl::ClientEnd<fuchsia_io::Directory>> DataRoot ()

Returns a connection to the data root (i.e. the directory which contains user data).

Defined at line 153 of file ../../src/storage/lib/fs_management/cpp/mount.cc

fidl::ClientEnd<fuchsia_io::Directory> Release ()

Takes the volume connection, so the volume won't automatically be unmounted when this

object goes out of scope. Some volumes will unmount down when the last connection to goes out

of scope; others will never unmount.

Defined at line 148 of file ../../src/storage/lib/fs_management/cpp/mount.cc