Struct libparted::FileSystem [] [src]

pub struct FileSystem<'a> { /* fields omitted */ }

Methods

impl<'a> FileSystem<'a>
[src]

[src]

[src]

[src]

[src]

[src]

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 on geom is not implemented.

Note

This actually calls Geometry::open_fs

[src]

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().

[src]

Attempt to find a file system and return the region it occupies.

Note

This actually calls geom.probe_specific_fs(fs_type)

[src]

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.

Trait Implementations

Auto Trait Implementations

impl<'a> !Send for FileSystem<'a>

impl<'a> !Sync for FileSystem<'a>