From e9f83147d5da3120604c67354b4d6f027ac10ed0 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 19 Sep 2012 14:55:34 +0200 Subject: [PATCH] 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. --- WHATS_NEW | 1 + tools/lvchange.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index dce8241a5..0927c49f2 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.98 - ================================= + Support changes of permissions for thin snapshot volumes. Enhance insert_layer_for_lv() with recursive rename for _tdata LVs. Skip building dm tree for thin pool when called with origin_only flag. Add internal lv_rename_update() to rename LV without updating mda. diff --git a/tools/lvchange.c b/tools/lvchange.c index d1cb4cff2..b2c1fe4af 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))) {