diff options
author | Alasdair Kergon <agk@redhat.com> | 2005-10-03 18:16:44 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2005-10-03 18:16:44 +0000 |
commit | 9c9e30cd6d97089aa7ee6e16c553edc7c3a43988 (patch) | |
tree | 9c5985af62f2dc357f9f3545ce21ac5955930530 /tools/pvremove.c | |
parent | 0858a9928787d9975ebb793fef6224f5ad86c1d8 (diff) | |
download | lvm2-9c9e30cd6d97089aa7ee6e16c553edc7c3a43988.tar.gz lvm2-9c9e30cd6d97089aa7ee6e16c553edc7c3a43988.tar.xz lvm2-9c9e30cd6d97089aa7ee6e16c553edc7c3a43988.zip |
Use ORPHAN lock definition throughout.
Diffstat (limited to 'tools/pvremove.c')
-rw-r--r-- | tools/pvremove.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/pvremove.c b/tools/pvremove.c index fa1d99da..6fd9daa0 100644 --- a/tools/pvremove.c +++ b/tools/pvremove.c @@ -72,7 +72,7 @@ static int pvremove_single(struct cmd_context *cmd, const char *pv_name, { struct device *dev; - if (!lock_vol(cmd, "", LCK_VG_WRITE)) { + if (!lock_vol(cmd, ORPHAN, LCK_VG_WRITE)) { log_error("Can't get lock for orphan PVs"); return ECMD_FAILED; } @@ -95,11 +95,11 @@ static int pvremove_single(struct cmd_context *cmd, const char *pv_name, log_print("Labels on physical volume \"%s\" successfully wiped", pv_name); - unlock_vg(cmd, ""); + unlock_vg(cmd, ORPHAN); return ECMD_PROCESSED; error: - unlock_vg(cmd, ""); + unlock_vg(cmd, ORPHAN); return ECMD_FAILED; } |