Struct devicemapper::LinearDev [] [src]

pub struct LinearDev { /* fields omitted */ }

A DM construct of combined Segments

Methods

impl LinearDev
[src]

Use DM to concatenate a list of segments together into a linear block device of continuous sectors.

[src]

Construct a new block device by concatenating the given segments into linear space. If the device is already known to the kernel, just verifies that the segments argument passed exactly matches the kernel data.

Warning: If the segments overlap, this method will succeed. However, the behavior of the linear device in that case should be treated as undefined.

Note: A linear device is just a mapping in the kernel from locations in that device to locations on other devices which are specified by their device number. There is usually a device node so that data can be read from and written to the device. Other than that, it really has no existence. Consequently, there is no conflict in overloading this method to mean both "make a wholly new device" and "establish the existence of the requested device". Of course, a linear device is usually expected to hold data, so it is important to get the mapping just right.

[src]

Set the segments for this linear device. This action puts the device in a state where it is ready to be resumed. Warning: It is the client's responsibility to make sure the designated segments are compatible with the device's existing segments. If they are not, this function will still succeed, but some kind of data corruption will be the inevitable result.

[src]

Set the name for this LinearDev.

Trait Implementations

impl Debug for LinearDev
[src]

[src]

Formats the value using the given formatter. Read more

impl DmDevice<LinearDevTargetTable> for LinearDev
[src]

[src]

The device.

[src]

The device's device node.

[src]

Check if tables indicate an equivalent device.

[src]

The device's name.

[src]

The number of sectors available for user data.

[src]

What the device thinks its table is.

[src]

Erase the kernel's memory of this device.

[src]

The device's UUID, if available. Note that the UUID is not any standard UUID format. Read more

[src]

The devicemapper table

[src]

Resume I/O on the device.

[src]

Suspend I/O on the device.

[src]

Load a table

Auto Trait Implementations

impl Send for LinearDev

impl Sync for LinearDev