1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Not detecing label on disc is not error, remove <backtrace> from debug log

and report it only if device cannot be read.
This commit is contained in:
Milan Broz 2008-08-28 13:28:13 +00:00
parent 8695f2cecb
commit 2380eaf981

View File

@ -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, &sector, 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, &sector, UINT64_C(0))))
goto_out;
goto out;
r = l->ops->verify ? l->ops->verify(l, buf, sector) : 1;