feat(lvs): add function to get pool uuid of lvol
@@ -220,7 +220,7 @@ impl Lvol {
self.as_bdev().uuid_as_string()
}
- /// returns the pool of the lvol
+ /// returns the pool name of the lvol
pub fn pool(&self) -> String {
unsafe {
Lvs(NonNull::new_unchecked(self.0.as_ref().lvol_store))
@@ -229,6 +229,13 @@ impl Lvol {
}
}
+ /// returns the pool uuid of the lvol
+ pub fn pool_uuid(&self) -> String {
+ unsafe {
+ Lvs(NonNull::new_unchecked(self.0.as_ref().lvol_store)).uuid()
+ }
+ }
+
// wipe the first 8MB if unmap is not supported on failure the operation
// needs to be repeated
pub async fn wipe_super(&self) -> Result<(), Error> {
