From 010c07de201c5730d8dfa34d5ecc09f950cdf9ad Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 22 Apr 2003 16:09:11 +0000 Subject: [PATCH] Improve message for pvcreate of empty device. --- lib/metadata/metadata.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index b0545ee5d..592dedb4b 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -30,7 +30,7 @@ static int _add_pv_to_vg(struct format_instance *fid, struct volume_group *vg, list_init(&mdas); if (!(pv = pv_read(fid->fmt->cmd, pv_name, &mdas, NULL))) { - log_error("Failed to read existing physical volume '%s'", + log_error("%s not identified as an existing physical volume", pv_name); return 0; } @@ -698,8 +698,7 @@ struct physical_volume *pv_read(struct cmd_context *cmd, const char *pv_name, } if (!(label_read(dev, &label))) { - log_error("Failed to read label on physical volume %s", - pv_name); + log_error("No physical volume label read from %s", pv_name); return 0; }