LVM2 ./WHATS_NEW_DM man/dmsetup.8.in tools/dms ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: prajnoha at sourceware.org 2012-01-11 12:46:20
Modified files:
. : WHATS_NEW_DM man : dmsetup.8.in tools : dmsetup.c
Log message:
Support different device name types on output of dmsetup deps, ls and info -c command.
Add 'blkdevname' and 'blkdevs_used' field to dmsetup info -c -o. Add 'blkdevname' option to dmsetup ls --tree to see block device names. Add '-o options' to dmsetup deps and ls to select device name type on output.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.530&r2=1.531
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/man/dmsetup.8.in.diff?cvsroot=lvm2&r1=1.48&r2=1.49
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/dmsetup.c.diff?cvsroot=lvm2&r1=1.170&r2=1.171
WHATS_NEW_DM +3 -0
@@ -1,5 +1,8 @@ Version 1.02.68 - ================================== + Add 'blkdevname' and 'blkdevs_used' field to dmsetup info -c -o. + Add 'blkdevname' option to dmsetup ls --tree to see block device names. + Add '-o options' to dmsetup deps and ls to select device name type on output. Add dm_device_get_name to get map name or block device name for given devno. Remove empty devices when clearing left-over inactive tables in deptree. Add dm_uuid_prefix/dm_set_uuid_prefix to override hard-coded LVM- prefix.
man/dmsetup.8.in +16 -8
@@ -20,6 +20,8 @@ .RE .br .B dmsetup deps +.RB [ \-o +.IR options ] .RI [ device_name ] .br .B dmsetup help
@@ -51,10 +53,9 @@ .IR target_type ] .RB [ \-\-exec .IR command ] -.RB [ \-\-tree -.RS +.RB [ \-\-tree ] .RB [ \-o -.IR options ]] +.IR options ] .RE .br .B dmsetup message
@@ -268,10 +269,14 @@ .br .TP .B deps +.RB [ \-o +.IR options ] .RI [ device_name ] .br -Outputs a list of (major, minor) pairs for devices referenced by the -live table for the specified device. +Outputs a list of devices referenced by the live table for the specified +device. Device names on output can be customised by following options: +devno (major and minor pair, used by default), blkdevname (block device name), +devname (map name for device-mapper devices, equal to blkdevname otherwise). .br .TP .B help
@@ -323,17 +328,20 @@ .IR target_type ] .RB [ \-\-exec .IR command ] -.RB [ \-\-tree +.RB [ \-\-tree ] .RB [ \-o -.IR options ]] +.IR options ] .br List device names. Optionally only list devices that have at least one target of the specified type. Optionally execute a command for each device. The device name is appended to the supplied command. +Device names on output can be customised by following options: devno (major +and minor pair, used by default), blkdevname (block device name), +devname (map name for device-mapper devices, equal to blkdevname otherwise). --tree displays dependencies between devices as a tree. It accepts a comma-separate list of options. Some specify the information displayed against each node: -device/nodevice; active, open, rw, uuid. +device/nodevice; blkdevname; active, open, rw, uuid. Others specify how the tree is displayed: ascii, utf, vt100; compact, inverted, notrunc. .br
tools/dmsetup.c +158 -24
325 lines not on this page · raw message