1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

dmsetup: Add minor number to concise table output format.

When using this new format for input, it'll sometimes help to
be able to specify the minor number.
This commit is contained in:
Alasdair G Kergon 2017-07-25 12:22:46 +01:00
parent a1dbefe9c8
commit f9f75de3da
2 changed files with 4 additions and 5 deletions

View File

@ -826,9 +826,9 @@ 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.
Commas then separate the name, uuid, minor device number, flags ('ro' or 'rw')
and the table (if present). Semi-colons separate devices. Backslashes escape
any commas, semi-colons or backslashes.
.
.HP
.CMD_TARGETS

View File

@ -2224,8 +2224,7 @@ static int _status(CMD_ARGS)
_print_string_quoted(name);
putchar(',');
_print_string_quoted(dm_task_get_uuid(dmt));
putchar(',');
printf("%s", info.read_only ? "ro" : "rw");
printf(",%u,%s", info.minor, info.read_only ? "ro" : "rw");
}
/* Next print any target-specific information */
if (target_type) {