[lvm-devel] master - thin: allow to create read-only thin-volumes
Zdenek Kabelac
zkabelac at fedoraproject.org
Mon Oct 15 12:10:04 UTC 2012
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=2fc1fc3a93783fa715a0c833e12962194674b8b1
Commit: 2fc1fc3a93783fa715a0c833e12962194674b8b1
Parent: c93659e0e0fac317f4fe35dc19ba86e5977721d7
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Mon Oct 8 11:23:52 2012 +0200
Committer: Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Mon Oct 15 14:07:03 2012 +0200
thin: allow to create read-only thin-volumes
Useful for i.e. read-only thin snapshots.
---
WHATS_NEW | 1 +
tools/lvcreate.c | 5 -----
2 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index 2780834..53f3fe9 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -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).
diff --git a/tools/lvcreate.c b/tools/lvcreate.c
index 53c4940..55b6a2c 100644
--- a/tools/lvcreate.c
+++ b/tools/lvcreate.c
@@ -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;
More information about the lvm-devel
mailing list