Skip to contentSkip to conversation

LVM2 ./WHATS_NEW_DM libdm/libdm-report.c

PATCH [email protected] 1 participant 1 message Jan 10, 2009

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2009-01-10 03:01:36

Modified files:
. : WHATS_NEW_DM
libdm : libdm-report.c

Log message:
Add an "all" field which expands to all fields of the report type.

For example in LVM2, "pv_all" gives all PV fields. "seg_all" gives all LV segment fields.

"all" gives all fields of the final report type. I think this is more useful than just adding the current prefix.

So "lvs -o seg_all" gives all the LV segment fields, whilst "lvs --segments -o all" adds in LV and VG fields too.

"lvs -o all -O vg_name" has report type LVS+VGS so includes all LV and all VG fields.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.259&r2=1.260
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-report.c.diff?cvsroot=lvm2&r1=1.26&r2=1.27

WHATS_NEW_DM +1 -0
@@ -1,5 +1,6 @@
 Version 1.02.30 -
 ====================================
+  Add "all" field to reports expanding to all fields of report type.
   Add checks for device names in dmsetup and show proper error messages.
   Replace _dm_snprintf with EMIT_PARAMS macro for creating target lines
 
libdm/libdm-report.c +82 -17

174 lines not on this page · raw message