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
fn new(
name: &str,
dm: &DM,
thin_pool: &ThinPoolDev,
thin_id: u32,
length: Sectors
) -> DmResult<ThinDev>
name: &str,
dm: &DM,
thin_pool: &ThinPoolDev,
thin_id: u32,
length: Sectors
) -> DmResult<ThinDev>
Use the given ThinPoolDev as backing space for a newly constructed thin provisioned ThinDev returned by new().
fn name(&self) -> &str
name of the thin device
fn dstr(&self) -> String
Get the "x:y" device string for this LinearDev
fn size(&self) -> Sectors
return the total size of the linear device
fn id(&self) -> u32
return the thin id of the linear device
fn devnode(&self) -> DmResult<PathBuf>
path of the device node
fn status(&self, dm: &DM) -> DmResult<ThinStatus>
Get the current status of the thin device.
fn extend(&mut self, dm: &DM, sectors: Sectors) -> DmResult<()>
Extend the thin device's (virtual) size by the number of sectors given.
fn teardown(self, dm: &DM) -> DmResult<()>
Remove the device from DM