diff options
author | Alasdair Kergon <agk@redhat.com> | 2010-03-16 15:30:48 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2010-03-16 15:30:48 +0000 |
commit | cccae7e633fca3c035e16eac33a348795ad4819d (patch) | |
tree | 814012697cf160483c22ba21c780cc50d15fa018 /tools/pvcreate.c | |
parent | 770dc81b8ec97cd46b5b8a37f507081034aad311 (diff) | |
download | lvm2-cccae7e633fca3c035e16eac33a348795ad4819d.tar.gz lvm2-cccae7e633fca3c035e16eac33a348795ad4819d.tar.xz lvm2-cccae7e633fca3c035e16eac33a348795ad4819d.zip |
Look up missing PVs by uuid not dev_name in _pvs_single to avoid invalid stat.
Make find_pv_in_vg_by_uuid() return same type as related functions.
Diffstat (limited to 'tools/pvcreate.c')
-rw-r--r-- | tools/pvcreate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pvcreate.c b/tools/pvcreate.c index efb51a45..561d6457 100644 --- a/tools/pvcreate.c +++ b/tools/pvcreate.c @@ -56,7 +56,7 @@ static int pvcreate_restore_params_validate(struct cmd_context *cmd, pp->restorefile); return 0; } - if (!(existing_pv = find_pv_in_vg_by_uuid(vg, pp->idp))) { + if (!(existing_pv = find_pv_in_vg_by_uuid(vg, pp->idp)->pv)) { log_error("Can't find uuid %s in backup file %s", uuid, pp->restorefile); return 0; |