Struct blkid::BlkId [] [src]

pub struct BlkId { /* fields omitted */ }

Methods

impl BlkId
[src]

[src]

[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.

[src]

This function gathers probing results from all enabled chains and checks for ambivalent results (e.g. more filesystems on the device).

This is string-based NAME=value interface only.

Note about suberblocks chain -- the function does not check for filesystems when a RAID signature is detected. The function also does not check for collision between RAIDs. The first detected RAID is returned. The function checks for collision between partition table and RAID signature -- it's recommended to enable partitions chain together with superblocks chain. Returns Ok(0) on success, Ok(1) on success and nothing was detected, Ok(-2) if the probe was ambivalent.

[src]

[src]

[src]

number of values in probing result

[src]

Retrieve the Nth item (Name, Value) in the probing result, (0..self.numof_values())

[src]

Retrieve a HashMap of all the probed values

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Enables/disables the topology probing for non-binary interface.

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

[src]

alignment offset in bytes or 0.

[src]

minimum io size in bytes or 0.

[src]

optimal io size in bytes or 0.

[src]

logical sector size (BLKSSZGET ioctl) in bytes or 0.

[src]

logical sector size (BLKSSZGET ioctl) in bytes or 0.

[src]

Enables the partitions probing for non-binary interface.

[src]

Sets probing flags to the partitions prober. This method is optional. BLKID_PARTS_* flags

[src]

Enables the superblocks probing for non-binary interface.

[src]

Sets probing flags to the superblocks prober. This method is optional, the default are BLKID_SUBLKS_DEFAULTS flags. flags are BLKID_SUBLKS_* flags

Trait Implementations

impl Drop for BlkId
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for BlkId

impl !Sync for BlkId