mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-25 21:57:45 +03:00
o Add a line to lvdisplay to say if the volume is a snapshot.
This commit is contained in:
parent
d30321a6cf
commit
fdec53fb9c
@ -203,6 +203,7 @@ int lvdisplay_full(struct cmd_context *cmd, struct logical_volume *lv)
|
|||||||
struct dm_info info;
|
struct dm_info info;
|
||||||
int inkernel;
|
int inkernel;
|
||||||
char uuid[64];
|
char uuid[64];
|
||||||
|
struct snapshot *snap;
|
||||||
|
|
||||||
if (!id_write_format(&lv->id, uuid, sizeof(uuid))) {
|
if (!id_write_format(&lv->id, uuid, sizeof(uuid))) {
|
||||||
stack;
|
stack;
|
||||||
@ -222,6 +223,9 @@ int lvdisplay_full(struct cmd_context *cmd, struct logical_volume *lv)
|
|||||||
log_print("LV Write Access %s",
|
log_print("LV Write Access %s",
|
||||||
(lv->status & LVM_WRITE) ? "read/write" : "read only");
|
(lv->status & LVM_WRITE) ? "read/write" : "read only");
|
||||||
|
|
||||||
|
if ((snap = find_cow(lv)))
|
||||||
|
log_print("Snapshot of %s", snap->origin->name);
|
||||||
|
|
||||||
/******* FIXME Snapshot
|
/******* FIXME Snapshot
|
||||||
if (lv->status & (LVM_SNAPSHOT_ORG | LVM_SNAPSHOT)) {
|
if (lv->status & (LVM_SNAPSHOT_ORG | LVM_SNAPSHOT)) {
|
||||||
if (lvm_tab_vg_read_with_pv_and_lv(vg_name, &vg) < 0) {
|
if (lvm_tab_vg_read_with_pv_and_lv(vg_name, &vg) < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user