1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

thin: allow to create read-only thin-volumes

Useful for i.e. read-only thin snapshots.
This commit is contained in:
Zdenek Kabelac 2012-10-08 11:23:52 +02:00
parent c93659e0e0
commit 2fc1fc3a93
2 changed files with 1 additions and 5 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.98 -
=================================
Support creation of read-only thin volumes (lvcreate -p r).
Using autoextend percent 0 for thin pool fails 'lvextend --use-policies'.
Introduce blkdeactivate script.
Implement devices/global_filter (affects lvmetad).

View File

@ -619,11 +619,6 @@ static int _read_activation_params(struct lvcreate_params *lp, struct cmd_contex
lp->permission = arg_uint_value(cmd, permission_ARG,
LVM_READ | LVM_WRITE);
if (lp->thin && !(lp->permission & LVM_WRITE)) {
log_error("Read-only thin volumes are not currently supported.");
return 0;
}
/* Must not zero read only volume */
if (!(lp->permission & LVM_WRITE))
lp->zero = 0;