summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-09-19 14:55:34 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2012-10-03 15:13:32 +0200
commite9f83147d5da3120604c67354b4d6f027ac10ed0 (patch)
tree75d62f9db9b512bb95471faf3906c3cc23842c28 /tools
parentd442c3ef0cec424db797714704859fbc2154f000 (diff)
downloadlvm2-e9f83147d5da3120604c67354b4d6f027ac10ed0.tar.gz
lvm2-e9f83147d5da3120604c67354b4d6f027ac10ed0.tar.xz
lvm2-e9f83147d5da3120604c67354b4d6f027ac10ed0.zip
thin: lvchange allows to change perms of thin snap
Thin snapshots are individual thin volumes so they can have its own control for rw permissions.
Diffstat (limited to 'tools')
-rw-r--r--tools/lvchange.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c
index d1cb4cff..b2c1fe4a 100644
--- a/tools/lvchange.c
+++ b/tools/lvchange.c
@@ -722,7 +722,7 @@ static int lvchange_single(struct cmd_context *cmd, struct logical_volume *lv,
return EINVALID_CMD_LINE;
}
- if (lv_is_origin(lv) &&
+ if (lv_is_origin(lv) && !lv_is_thin_volume(lv) &&
(arg_count(cmd, contiguous_ARG) || arg_count(cmd, permission_ARG) ||
arg_count(cmd, readahead_ARG) || arg_count(cmd, persistent_ARG) ||
arg_count(cmd, alloc_ARG))) {