summaryrefslogtreecommitdiff
path: root/man/dmsetup.8_main
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2017-07-25 01:13:14 +0100
committerAlasdair G Kergon <agk@redhat.com>2017-07-25 01:13:14 +0100
commit5fd7c0aa3340a58318d0bcfb0ae5aeb9924881f6 (patch)
tree6810667d2a027677a30c8369698b86dfeebc704f /man/dmsetup.8_main
parentca71ad0d5025d2d01eb9666368c1da7db3c9c7ce (diff)
downloadlvm2-5fd7c0aa3340a58318d0bcfb0ae5aeb9924881f6.tar.gz
dmsetup: Add concise table output format.
Create a new table output format that concisely shows multiple devices on one line. dmsetup table --concise [device...] <dev_name>,<uuid>,<flags>[,<table>]*[;<dev_name>,<uuid>,<flags>[,<table>]*]* Table lines are separated by commas. Devices are separated by semi-colons. Flags is currently 'ro' or 'rw' (and might be extended in a yet-to-be-defined way in future). Any comma, semi-colon or backslash within a field is quoted by a preceding backslash. The format can later be supplied as input to dmsetup or even to the booting kernel as an alternative way to set up devices. Based on patches submitted by Enric Balletbo i Serra <enric.balletbo@collabora.com>.
Diffstat (limited to 'man/dmsetup.8_main')
-rw-r--r--man/dmsetup.8_main5
1 files changed, 5 insertions, 0 deletions
diff --git a/man/dmsetup.8_main b/man/dmsetup.8_main
index 4421882dd..1d0219f61 100644
--- a/man/dmsetup.8_main
+++ b/man/dmsetup.8_main
@@ -269,6 +269,7 @@ dmsetup \(em low level logical volume management
.de CMD_TABLE
. ad l
. BR table
+. RB [ --concise ]
. RB [ --target
. IR target_type ]
. RB [ --showkeys ]
@@ -824,6 +825,10 @@ Real encryption keys are suppressed in the table output for the crypt
target unless the \fB--showkeys\fP parameter is supplied. Kernel key
references prefixed with \fB:\fP are not affected by the parameter and get
displayed always.
+With \fB--concise\fP, the output is presented concisely on a single line.
+Commas then separate the name, uuid, flags ('ro' or 'rw') and the table
+(if present). Semi-colons separate devices. Backslashes escape any commas,
+semi-colons or backslashes.
.
.HP
.CMD_TARGETS