]> sourceware.org Git - lvm2.git/commitdiff
format1: Not detecing label on disc is not error, remove <backtrace> from debug log
authorMilan Broz <mbroz@redhat.com>
Thu, 28 Aug 2008 13:41:46 +0000 (13:41 +0000)
committerMilan Broz <mbroz@redhat.com>
Thu, 28 Aug 2008 13:41:46 +0000 (13:41 +0000)
(happens when you explicitly use -M 1)

lib/format1/disk-rep.c

index 2379cf2d92e94348cf9088604705521c03cc22ed..e68b3f5a5e1abb1b1b107c45705eecdd7a1193e3 100644 (file)
@@ -194,7 +194,7 @@ int munge_pvd(struct device *dev, struct pv_disk *pvd)
        if (!_munge_formats(pvd)) {
                log_very_verbose("format1: Unknown metadata version %d "
                                 "found on %s", pvd->version, dev_name(dev));
-               return 0;
+               return_0;
        }
 
        /* If VG is exported, set VG name back to the real name */
@@ -208,7 +208,7 @@ static int _read_pvd(struct device *dev, struct pv_disk *pvd)
        if (!dev_read(dev, UINT64_C(0), sizeof(*pvd), pvd)) {
                log_very_verbose("Failed to read PV data from %s",
                                 dev_name(dev));
-               return 0;
+               return_0;
        }
 
        return munge_pvd(dev, pvd);
@@ -356,7 +356,7 @@ static struct disk_list *__read_disk(const struct format_type *fmt,
        list_init(&dl->lvds);
 
        if (!_read_pvd(dev, &dl->pvd))
-               goto_bad;
+               goto bad;
 
        /*
         * is it an orphan ?
This page took 0.035587 seconds and 5 git commands to generate.