diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2013-05-29 21:17:15 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2013-05-30 17:26:20 +0200 |
commit | 56779c32c500426db33d0e6032160ef4f5e0bbcc (patch) | |
tree | e2dd8fed23a1afc4da6419ae524be14f68df603e /tools/lvresize.c | |
parent | 99f04835802ee675242a4896697eb784717ee998 (diff) | |
download | lvm2-56779c32c500426db33d0e6032160ef4f5e0bbcc.tar.gz |
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.
Diffstat (limited to 'tools/lvresize.c')
-rw-r--r-- | tools/lvresize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lvresize.c b/tools/lvresize.c index b679bf9f7..b1008ec14 100644 --- a/tools/lvresize.c +++ b/tools/lvresize.c @@ -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 */ } |