1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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:
Zdenek Kabelac 2013-05-29 21:17:15 +02:00
parent 99f0483580
commit 56779c32c5
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.99 -
===================================
Fix lvresize --use-policies of VALID but 100% full snapshot.
Do not accept size parameters bigger then 16EiB.
Fix release of PV's fid in free_pv_fid().
Skip monitoring of snapshots that are already bigger then origin.

View File

@ -321,7 +321,7 @@ static int _adjust_policy_params(struct cmd_context *cmd,
} else {
if (!lv_snapshot_percent(lv, &percent))
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 */
}