Struct libparted::FileSystem [−][src]
pub struct FileSystem<'a> { /* fields omitted */ }
Implementations
Opens the file system stored on geom
, if it can find one.
Examples
let mut fs = FileSystem::open(&mut geometry);
let mut fs = geometry.open_fs();
Throws
PED_EXCEPTION_ERROR
if the file system could not be detected.PED_EXCEPTION_ERROR
if the file system is bigger than its volume.PED_EXCEPTION_NO_FEATURE
if opening of a file system stored ongeom
is not implemented.
Note
This actually calls Geometry::open_fs
Attempt to detect a file system in region geom
.
This function tries to be clever at dealing with ambiguous situations, such as when one file system was not completely erased before a new file system was created on on top of it.
Note
This actually calls geom.probe_fs()
.
pub fn probe_specific(
geom: &'a Geometry<'_>,
fs_type: &'a FileSystemType<'_>
) -> Option<Geometry<'a>>
pub fn probe_specific(
geom: &'a Geometry<'_>,
fs_type: &'a FileSystemType<'_>
) -> Option<Geometry<'a>>
Attempt to find a file system and return the region it occupies.
Note
This actually calls geom.probe_specific_fs(fs_type)
Resize the file system to a new geometry.
Note
geom
should satisfy the FileSystem::get_resize_constraint()
. This isn’t
asserted, so it’s not a bug not to, but is is likely to fail.
If timer
is not None
, it will be used as the progress meter.
Throws
Throws PED_EXCEPTION_NO_FEATURE
if resizing of the file system is not implemented yet.