]> sourceware.org Git - lvm2.git/commitdiff
Not detecing label on disc is not error, remove <backtrace> from debug log
authorMilan Broz <mbroz@redhat.com>
Thu, 28 Aug 2008 13:28:13 +0000 (13:28 +0000)
committerMilan Broz <mbroz@redhat.com>
Thu, 28 Aug 2008 13:28:13 +0000 (13:28 +0000)
and report it only if device cannot be read.

lib/label/label.c

index 934fe68052021745608a30b69de40662be1e6f35..f2cb028a2a7d11a9c258a8aa1cfa2c8f3c72da58 100644 (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;
 
This page took 0.036037 seconds and 5 git commands to generate.