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:
parent
4319e06a0f
commit
2bfd986ea3
@ -278,15 +278,12 @@ int label_read(struct device *dev, struct label **result,
|
||||
return r;
|
||||
}
|
||||
|
||||
if (!(l = _find_labeller(dev, buf, §or, scan_sector)))
|
||||
goto_out;
|
||||
|
||||
if ((l = _find_labeller(dev, buf, §or, scan_sector)))
|
||||
if ((r = (l->ops->read)(l, dev, buf, result)) && result && *result) {
|
||||
(*result)->dev = dev;
|
||||
(*result)->sector = sector;
|
||||
}
|
||||
|
||||
out:
|
||||
if (!dev_close(dev))
|
||||
stack;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user