1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-27 07:22:49 +03:00
lvm2/lib
Dave Wysochanski f8f2be527f Add device name to output of error messages in raw_read_mda_header().
It would be helpful if we had the device name when something like
a mda_header checksum error occurs.

Before:
./tools/lvm pvs -opv_name,vg_name,uuid,mda_count,pv_mda_count_ignored,vg_mda_count,vg_mda_count_ignored,vg_mda_copies
  Incorrect metadata area header checksum
  PV         VG      PV UUID                                #PMda #PMdaIgn #VMda #VMdaIgn #VMdaCps
  /dev/loop0 vgtest2 sVv26t-gjpb-Rcau-uBDO-Cx04-GbRR-6Ssq7e     2        0     4        0        4
  /dev/loop1 vgtest2 zXWStT-qE8F-mbkc-RfgH-aytv-mptF-Y5Ce09     2        0     4        0        4
  /dev/loop2         riCpK9-9G8r-LlIp-i2oh-mb3N-CUzk-u5YpuR     1        0     0        0        0
  /dev/loop3 vgtest  tQCUjm-rmyd-i92d-4eeE-UYBW-v1vQ-kRaA17     2        0     4        2        0
  /dev/loop4 vgtest  ZRvpeI-p8F1-ccVW-BBac-xhl1-aGXU-CbP0oo     2        2     4        2        0

After:
./tools/lvm pvs -opv_name,vg_name,uuid,mda_count,pv_mda_count_ignored,vg_mda_count,vg_mda_count_ignored,vg_mda_copies
  Incorrect metadata area header checksum on /dev/loop2 at offset 4096
  PV         VG      PV UUID                                #PMda #PMdaIgn #VMda #VMdaIgn #VMdaCps
  /dev/loop0 vgtest2 sVv26t-gjpb-Rcau-uBDO-Cx04-GbRR-6Ssq7e     2        0     4        0        4
  /dev/loop1 vgtest2 zXWStT-qE8F-mbkc-RfgH-aytv-mptF-Y5Ce09     2        0     4        0        4
  /dev/loop2         riCpK9-9G8r-LlIp-i2oh-mb3N-CUzk-u5YpuR     1        0     0        0        0
  /dev/loop3 vgtest  tQCUjm-rmyd-i92d-4eeE-UYBW-v1vQ-kRaA17     2        0     4        2        0
  /dev/loop4 vgtest  ZRvpeI-p8F1-ccVW-BBac-xhl1-aGXU-CbP0oo     2        2     4        2        0
2010-06-22 19:18:27 +00:00
..
activate Account for mirror transient status when doing lvconvert --repair. 2010-05-24 15:32:20 +00:00
cache Add lvmcache_vgname_from_pvid(). 2010-05-19 11:52:21 +00:00
commands Revert _init_rand() to reset errno - restores original init behavior. 2010-06-01 21:47:57 +00:00
config Add install_system_dirs makefile target. 2010-05-20 13:47:21 +00:00
datastruct Remove unnecessary / duplicate dm_list macros and functions. 2009-11-25 20:44:07 +00:00
device Avoid selecting names under /dev/block if there is an alternative. 2010-05-24 22:53:48 +00:00
display Cleanup returns for void functions. 2009-12-11 13:16:37 +00:00
error Fix last check-ins: seg can be NULL. 2009-02-28 20:04:24 +00:00
filters Don't merge unchanged persistent cache file before dumping if tool scanned. 2010-06-01 19:02:12 +00:00
format1 Install plugins to subdirs 2010-05-06 10:07:46 +00:00
format_pool Install plugins to subdirs 2010-05-06 10:07:46 +00:00
format_text Add device name to output of error messages in raw_read_mda_header(). 2010-06-22 19:18:27 +00:00
freeseg Fix reporting of LV fields alongside unallocated PV segments. 2008-06-25 16:52:27 +00:00
label Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
locking Clean up cluster lock mode and flags definition. 2010-06-17 12:48:54 +00:00
log Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
metadata Mirrors can be layered - as in the case of an converting 2-way 2010-06-21 16:12:33 +00:00
mirror Replace strncmp kernel version number checks with proper ones 2010-05-24 23:11:34 +00:00
misc Use absolute paths in commands 2010-06-03 13:50:26 +00:00
mm Better debug message for Un/Locked memory size. 2010-04-01 14:53:47 +00:00
replicator Right directory name for replicator files. 2010-05-21 13:17:20 +00:00
report If unable to obtain snapshot percentage leave value blank on reports. 2010-05-20 22:24:33 +00:00
snapshot Install plugins to subdirs 2010-05-06 10:07:46 +00:00
striped Use macro outsize() with check for error return value. 2010-01-07 14:46:51 +00:00
unknown Fix the "const discarded" warnings introduced in the unknown segment patch. 2009-10-22 10:38:07 +00:00
uuid Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
zero Attempt to load dm-zero module if zero target needed but not present. (mbroz) 2009-05-27 13:05:53 +00:00
Makefile.in Replicator: base lvm2 support 2010-05-21 12:36:30 +00:00