diff options
author | Alasdair Kergon <agk@redhat.com> | 2008-01-16 18:15:26 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2008-01-16 18:15:26 +0000 |
commit | fb3226a3ed273e468b17786b33709b287e5f4ea7 (patch) | |
tree | 1c9c7853e1c8f775d40afcdcfcaf904a428d1539 /tools/pvcreate.c | |
parent | 6ab424acda10dbe8f530add210e59ab4a1595d2c (diff) | |
download | lvm2-fb3226a3ed273e468b17786b33709b287e5f4ea7.tar.gz lvm2-fb3226a3ed273e468b17786b33709b287e5f4ea7.tar.xz lvm2-fb3226a3ed273e468b17786b33709b287e5f4ea7.zip |
use scan_vgs_for_pvs to detect non-orphans without MDAs
Diffstat (limited to 'tools/pvcreate.c')
-rw-r--r-- | tools/pvcreate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/pvcreate.c b/tools/pvcreate.c index 3e12c5c7..b7932316 100644 --- a/tools/pvcreate.c +++ b/tools/pvcreate.c @@ -51,7 +51,8 @@ static int pvcreate_check(struct cmd_context *cmd, const char *name) * system. */ if (pv && is_orphan(pv)) { - (void) get_vgs(cmd, 1); + if (!scan_vgs_for_pvs(cmd)) + return_0; pv = pv_read(cmd, name, NULL, NULL, 0); } |