summaryrefslogtreecommitdiffstats
path: root/tools/pvcreate.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2002-01-29 19:19:37 +0000
committerAlasdair Kergon <agk@redhat.com>2002-01-29 19:19:37 +0000
commitdf91af91413f262e6ffdda04ef7b0a616b4023e2 (patch)
tree12b5ef526bf264381091b1abb5e8c656299b5eb3 /tools/pvcreate.c
parentf53c6aa66ef8b5c75a4e43e6cf518f0ec9cd5cfe (diff)
downloadlvm2-df91af91413f262e6ffdda04ef7b0a616b4023e2.tar.gz
lvm2-df91af91413f262e6ffdda04ef7b0a616b4023e2.tar.xz
lvm2-df91af91413f262e6ffdda04ef7b0a616b4023e2.zip
o A vgimport implementation
o Require -a or <list of vgs> parameters with vgexport/vgimport o Allow pvcreate -ff to destroy exported/partial VGs
Diffstat (limited to 'tools/pvcreate.c')
-rw-r--r--tools/pvcreate.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/pvcreate.c b/tools/pvcreate.c
index e8c668d6..39fdc04b 100644
--- a/tools/pvcreate.c
+++ b/tools/pvcreate.c
@@ -43,13 +43,7 @@ static int pvcreate_check(const char *name)
if (!pv->vg_name[0])
return 1;
- /* never overwrite exported pv's */
- if (pv->status & EXPORTED_VG) {
- log_error("Physical volume %s belongs to exported volume"
- " group %s", name, pv->vg_name);
- return 0;
- }
-
+ /* Allow partial & exported VGs to be destroyed. */
/* we must have -ff to overwrite a non orphan */
if (arg_count(force_ARG) < 2) {
log_error("Can't initialize physical volume %s of "