Struct devicemapper::ThinDev[][src]

pub struct ThinDev { /* fields omitted */ }
Expand description

DM construct for a thin block device

Implementations

support use of DM for thin provisioned devices over pools

Create a ThinDev using thin_pool as the backing store. If the specified thin_id is already in use by the thin pool an error is returned. If the device is already among the list of devices that dm is aware of, return an error.

Set up a thin device which already belongs to the given thin_pool. The thin device is identified by the thin_id, which is already known to the pool.

If the device is already known to kernel, just verify that specified data matches and return an error if it does not.

If the device has no thin id already registered with the thin pool an error is returned.

Create a snapshot of a ThinDev. Once created a snapshot is the same as any other thin provisioned device. There is no need to track any connection between the source and the snapshot.

return the thin id of the linear device

Get the current status of the thin device.

Set the table for the thin device’s target

Tear down the DM device, and also delete resources associated with its thin id from the thinpool.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.