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

debug: drop printing debug trace without labeler

Not having labeller on device is not reason eo generate backtrace in log.
This commit is contained in:
Zdenek Kabelac 2014-09-22 13:34:12 +02:00
parent 4319e06a0f
commit 2bfd986ea3

View File

@ -278,15 +278,12 @@ int label_read(struct device *dev, struct label **result,
return r;
}
if (!(l = _find_labeller(dev, buf, &sector, scan_sector)))
goto_out;
if ((l = _find_labeller(dev, buf, &sector, scan_sector)))
if ((r = (l->ops->read)(l, dev, buf, result)) && result && *result) {
(*result)->dev = dev;
(*result)->sector = sector;
}
if ((r = (l->ops->read)(l, dev, buf, result)) && result && *result) {
(*result)->dev = dev;
(*result)->sector = sector;
}
out:
if (!dev_close(dev))
stack;