LVM2/lib/label label.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mbroz at sourceware.org 2008-08-28 13:28:13
Modified files:
lib/label : label.c
Log message:
Not detecing label on disc is not error, remove <backtrace> from debug log and report it only if device cannot be read.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/label/label.c.diff?cvsroot=lvm2&r1=1.42&r2=1.43
lib/label/label.c +3 -3
@@ -119,7 +119,7 @@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 @@ }if (!(l =_find_labeller (dev, buf, §or, scan_sector))) - goto_out; + goto out;if ((r = (l->ops->read)(l, dev, buf, result)) && result && *result) (*result)->sector = sector;
@@ -361,7 +361,7 @@ }if (!(l =_find_labeller (dev, buf, §or,UINT64_C (0 )))) - goto_out; + goto out; r = l->ops->verify ? l->ops->verify (l, buf, sector) :1 ;