mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
snapshot: fix resize of 100% full cow
When the COW area is using all the available space (100%) it can be still a valid snapshot which may need a resize. So support it.
This commit is contained in:
parent
99f0483580
commit
56779c32c5
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.99 -
|
Version 2.02.99 -
|
||||||
===================================
|
===================================
|
||||||
|
Fix lvresize --use-policies of VALID but 100% full snapshot.
|
||||||
Do not accept size parameters bigger then 16EiB.
|
Do not accept size parameters bigger then 16EiB.
|
||||||
Fix release of PV's fid in free_pv_fid().
|
Fix release of PV's fid in free_pv_fid().
|
||||||
Skip monitoring of snapshots that are already bigger then origin.
|
Skip monitoring of snapshots that are already bigger then origin.
|
||||||
|
@ -321,7 +321,7 @@ static int _adjust_policy_params(struct cmd_context *cmd,
|
|||||||
} else {
|
} else {
|
||||||
if (!lv_snapshot_percent(lv, &percent))
|
if (!lv_snapshot_percent(lv, &percent))
|
||||||
return_0;
|
return_0;
|
||||||
if (!(PERCENT_0 < percent && percent < PERCENT_100) || percent <= policy_threshold)
|
if (!(PERCENT_0 < percent && percent <= PERCENT_100) || percent <= policy_threshold)
|
||||||
return 1; /* nothing to do */
|
return 1; /* nothing to do */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user