mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Use m and M lv_attr to indicate that a snapshot merge failed in lvs.
snapshot (m)erge failed, suspended snapshot (M)erge failed
This commit is contained in:
parent
23e34c729b
commit
d658922f36
@ -1,5 +1,6 @@
|
||||
Version 2.02.89 -
|
||||
==================================
|
||||
Use m and M lv_attr to indicate that a snapshot merge failed in lvs.
|
||||
Differentiate between snapshot status of "Invalid" and "Merge failed".
|
||||
Lookup snapshot usage percent of origin volume when a snapshot is merging.
|
||||
Update lvdisplay with backward compat. config opt. lvm1_compatible_display.
|
||||
|
@ -441,14 +441,21 @@ char *lv_attr_dup(struct dm_pool *mem, const struct logical_volume *lv)
|
||||
repstr[4] = 'd'; /* Inactive without table */
|
||||
|
||||
/* Snapshot dropped? */
|
||||
if (info.live_table && lv_is_cow(lv) &&
|
||||
(!lv_snapshot_percent(lv, &snap_percent) ||
|
||||
snap_percent == PERCENT_INVALID)) {
|
||||
repstr[0] = toupper(repstr[0]);
|
||||
if (info.suspended)
|
||||
repstr[4] = 'S'; /* Susp Inv snapshot */
|
||||
else
|
||||
repstr[4] = 'I'; /* Invalid snapshot */
|
||||
if (info.live_table && lv_is_cow(lv)) {
|
||||
if (!lv_snapshot_percent(lv, &snap_percent) ||
|
||||
snap_percent == PERCENT_INVALID) {
|
||||
repstr[0] = toupper(repstr[0]);
|
||||
if (info.suspended)
|
||||
repstr[4] = 'S'; /* Susp Inv snapshot */
|
||||
else
|
||||
repstr[4] = 'I'; /* Invalid snapshot */
|
||||
}
|
||||
else if (snap_percent == PERCENT_MERGE_FAILED) {
|
||||
if (info.suspended)
|
||||
repstr[4] = 'M'; /* Susp snapshot merge failed */
|
||||
else
|
||||
repstr[4] = 'm'; /* snapshot merge failed */
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -105,6 +105,7 @@ changes, for example during
|
||||
fixed (m)inor
|
||||
.IP 5 3
|
||||
State: (a)ctive, (s)uspended, (I)nvalid snapshot, invalid (S)uspended snapshot,
|
||||
snapshot (m)erge failed, suspended snapshot (M)erge failed,
|
||||
mapped (d)evice present without tables, mapped device present with (i)nactive table
|
||||
.IP 6 3
|
||||
device (o)pen
|
||||
|
Loading…
Reference in New Issue
Block a user