From: Milan Broz Date: Thu, 28 Aug 2008 13:28:13 +0000 (+0000) Subject: Not detecing label on disc is not error, remove from debug log X-Git-Tag: v2_02_91~3479 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=2380eaf981ee38a7aeae6298410b54ba0984ba62;p=lvm2.git Not detecing label on disc is not error, remove from debug log and report it only if device cannot be read. --- diff --git a/lib/label/label.c b/lib/label/label.c index 934fe6805..f2cb028a2 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -119,7 +119,7 @@ static struct labeller *_find_labeller(struct device *dev, char *buf, if (!dev_read(dev, scan_sector << SECTOR_SHIFT, LABEL_SCAN_SIZE, readbuf)) { log_debug("%s: Failed to read label area", dev_name(dev)); - goto out; + goto_out; } /* Scan a few sectors for a valid label */ @@ -284,7 +284,7 @@ int label_read(struct device *dev, struct label **result, } if (!(l = _find_labeller(dev, buf, §or, scan_sector))) - goto_out; + goto out; if ((r = (l->ops->read)(l, dev, buf, result)) && result && *result) (*result)->sector = sector; @@ -361,7 +361,7 @@ int label_verify(struct device *dev) } if (!(l = _find_labeller(dev, buf, §or, UINT64_C(0)))) - goto_out; + goto out; r = l->ops->verify ? l->ops->verify(l, buf, sector) : 1;