Struct blkid::BlkId
[−]
[src]
pub struct BlkId { /* fields omitted */ }
Methods
impl BlkId
[src]
fn new(file: &Path) -> Result<BlkId, BlkidError>
[src]
fn do_probe(&self) -> Result<(), BlkidError>
[src]
Calls probing functions in all enabled chains. The superblocks chain is enabled by default. The blkid_do_probe() stores result from only one probing function. It's necessary to call this routine in a loop to get results from all probing functions in all chains. The probing is reset by blkid_reset_probe() or by filter functions. This is string-based NAME=value interface only.
fn lookup_value(&self, name: &str) -> Result<String, BlkidError>
[src]
fn has_value(&self, name: &str) -> Result<bool, BlkidError>
[src]
fn numof_values(&self) -> Result<i32, BlkidError>
[src]
number of values in probing result
fn get_devno(&self) -> u64
[src]
fn get_wholedisk_devno(&self) -> u64
[src]
fn is_wholedisk(&self) -> Result<bool, BlkidError>
[src]
fn get_size(&self) -> Result<i64, BlkidError>
[src]
fn get_offset(&self) -> Result<i64, BlkidError>
[src]
fn get_sectorsize(&self) -> u32
[src]
fn get_sectors(&self) -> Result<i64, BlkidError>
[src]
fn get_fd(&self) -> Result<i32, BlkidError>
[src]
fn known_fstype(&self, fstype: &str) -> Result<bool, BlkidError>
[src]
fn enable_topology(&self) -> Result<(), BlkidError>
[src]
Enables/disables the topology probing for non-binary interface.
fn get_topology(&self) -> Result<blkid_topology, BlkidError>
[src]
This is a binary interface for topology values. See also blkid_topology_* functions. This function is independent on blkid_do_[safe,full]probe() and blkid_probe_enable_topology() calls. WARNING: the returned object will be overwritten by the next blkid_probe_get_topology() call for the same pr. If you want to use more blkid_topopogy objects in the same time you have to create more blkid_probe handlers (see blkid_new_probe()).
fn get_topology_alignment_offset(tp: blkid_topology) -> u64
[src]
alignment offset in bytes or 0.
fn get_topology_minimum_io_size(tp: blkid_topology) -> u64
[src]
minimum io size in bytes or 0.
fn get_topology_optimal_io_size(tp: blkid_topology) -> u64
[src]
optimal io size in bytes or 0.
fn get_topology_logical_sector_size(tp: blkid_topology) -> u64
[src]
logical sector size (BLKSSZGET ioctl) in bytes or 0.
fn get_topology_physical_sector_size(tp: blkid_topology) -> u64
[src]
logical sector size (BLKSSZGET ioctl) in bytes or 0.