mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
thin: disable conversion of thin-pool to read-only
This change is not yet supported.
This commit is contained in:
parent
faa9a52085
commit
b3899056d9
@ -1,5 +1,6 @@
|
||||
Version 2.02.98 -
|
||||
=================================
|
||||
Prohibit not yet supported change of thin-pool to read-only.
|
||||
Support creation of read-only thin volumes (lvcreate -p r).
|
||||
Using autoextend percent 0 for thin pool fails 'lvextend --use-policies'.
|
||||
Introduce blkdeactivate script.
|
||||
|
@ -51,6 +51,12 @@ static int lvchange_permission(struct cmd_context *cmd,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!(lv_access & LVM_WRITE) && lv_is_thin_pool(lv)) {
|
||||
log_error("Change permissions of thin pool \"%s\" not "
|
||||
"yes supported.", lv->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (lv_access & LVM_WRITE) {
|
||||
lv->status |= LVM_WRITE;
|
||||
log_verbose("Setting logical volume \"%s\" read/write",
|
||||
|
Loading…
Reference in New Issue
Block a user