Struct devicemapper::ThinDev [] [src]

pub struct ThinDev { /* fields omitted */ }

DM construct for a thin block device

Methods

impl ThinDev
[src]

support use of DM for thin provisioned devices over pools

[src]

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.

[src]

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.

[src]

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.

[src]

return the thin id of the linear device

[src]

Get the current status of the thin device.

[src]

Extend the thin device's (virtual) size by the number of sectors given.

[src]

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

Trait Implementations

impl Debug for ThinDev
[src]

[src]

Formats the value using the given formatter.

impl DmDevice for ThinDev
[src]

[src]

The device.

[src]

The device's device node.

[src]

The device's name.

[src]

The number of sectors available for user data.

[src]

Erase the kernel's memory of this device.