[dm-devel] [PATCH] libdevmapper: (2/6) Fix trailing separator

Jun'ichi Nomura j-nomura at ce.jp.nec.com
Wed Apr 18 16:47:31 UTC 2007


Hi,

This patch fixes dm_report_output() so that it can correctly check
the end of the row.

It uses list_end() but trailing fields may have HIDDEN flag and
not be printed.

For example,
# dmsetup info -c -o name -O minor VG0-lv0
Name
VG0-lv0
# dmsetup info -c -o name -O minor --noheadings VG0-lv0
VG0-lv0:
# dmsetup info -c -o name --noheadings VG0-lv0
VG0-lv0

The patch fixes it by inserting hidden fields at the head of the list.

Thanks,
-- 
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libdm-report-fix-trailing-separator.patch
Type: text/x-patch
Size: 989 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20070418/067036b7/attachment.bin>


More information about the dm-devel mailing list