From cccae7e633fca3c035e16eac33a348795ad4819d Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 16 Mar 2010 15:30:48 +0000 Subject: 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. --- tools/pvcreate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/pvcreate.c') 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; -- cgit