mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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:
parent
4319e06a0f
commit
2bfd986ea3
@ -278,15 +278,12 @@ int label_read(struct device *dev, struct label **result,
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(l = _find_labeller(dev, buf, §or, scan_sector)))
|
if ((l = _find_labeller(dev, buf, §or, scan_sector)))
|
||||||
goto_out;
|
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))
|
if (!dev_close(dev))
|
||||||
stack;
|
stack;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user