mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
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.
This commit is contained in:
parent
d442c3ef0c
commit
e9f83147d5
@ -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.
|
||||
|
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user