mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Show some Thin related info in lvdisplay
This commit is contained in:
parent
c3e5b4976d
commit
1d526c8585
@ -548,6 +548,18 @@ int lvdisplay_full(struct cmd_context *cmd,
|
||||
snap_seg->origin->name);
|
||||
}
|
||||
|
||||
if (lv_is_thin_volume(lv)) {
|
||||
log_print("LV Thin pool %s%s/%s", lv->vg->cmd->dev_dir,
|
||||
lv->vg->name, first_seg(lv)->pool_lv->name);
|
||||
} else if (lv_is_thin_pool(lv)) {
|
||||
log_print("LV Thin metadada %s%s/%s", lv->vg->cmd->dev_dir,
|
||||
lv->vg->name, first_seg(lv)->pool_metadata_lv->name);
|
||||
log_print("LV Thin data pool %s%s/%s", lv->vg->cmd->dev_dir,
|
||||
lv->vg->name, seg_lv(first_seg(lv), 0)->name);
|
||||
log_print("LV zero new blocks %s",
|
||||
first_seg(lv)->zero_new_blocks ? "yes" : "no");
|
||||
}
|
||||
|
||||
if (inkernel && info.suspended)
|
||||
log_print("LV Status suspended");
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user