diff options
author | Karel Zak | 2018-12-07 12:29:50 +0100 |
---|---|---|
committer | Karel Zak | 2018-12-07 12:57:49 +0100 |
commit | 0bd05f5ee4876ffd13c98acd56c2bff9971f28f1 (patch) | |
tree | f0635d4af03006fa5cf90c03ee4ed7a32dfd89d9 /misc-utils/lsblk.8 | |
parent | libsmartcols: add grouping API docs (diff) | |
download | kernel-qcow2-util-linux-0bd05f5ee4876ffd13c98acd56c2bff9971f28f1.tar.gz kernel-qcow2-util-linux-0bd05f5ee4876ffd13c98acd56c2bff9971f28f1.tar.xz kernel-qcow2-util-linux-0bd05f5ee4876ffd13c98acd56c2bff9971f28f1.zip |
lsblk: add --merge
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/lsblk.8')
-rw-r--r-- | misc-utils/lsblk.8 | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/misc-utils/lsblk.8 b/misc-utils/lsblk.8 index d2a58ed08..2787569fe 100644 --- a/misc-utils/lsblk.8 +++ b/misc-utils/lsblk.8 @@ -51,13 +51,18 @@ Print the SIZE column in bytes rather than in a human-readable format. .BR \-D , " \-\-discard" Print information about the discarding capabilities (TRIM, UNMAP) for each device. .TP -.BR \-z , " \-\-zoned" -Print the zone model for each device. -.TP .BR \-d , " \-\-nodeps" Do not print holder devices or slaves. For example, \fBlsblk --nodeps /dev/sda\fR prints information about the sda device only. .TP +.BR \-E , " \-\-dedup " \fIcolumn\fP +Use \fIcolumn\fP as a de-duplication key to de-duplicate output tree. If the +key is not available for the device, or the device is a partition and parental +whole-disk device provides the same key than the device is always printed. + +The usual use case is to de-duplicate output on system multi-path devices, for +example by \fB\-E WWN\fR. +.TP .BR \-e , " \-\-exclude " \fIlist\fP Exclude the devices specified by the comma-separated \fIlist\fR of major device numbers. Note that RAM disks (major=1) are excluded by default if \fB\-\-all\fR is no specified. @@ -86,15 +91,13 @@ Use ASCII characters for tree formatting. Use JSON output format. .TP .BR \-l , " \-\-list" -Produce output in the form of a list. +Produce output in the form of a list. The output does not provide information +about relationships between devices and since version 2.34 every device is +printed only once. .TP -.BR \-M , " \-\-dedup " \fIcolumn\fP -Use \fIcolumn\fP as a de-duplication key to de-duplicate output tree. If the -key is not available for the device, or the device is a partition and parental -whole-disk device provides the same key than the device is always printed. - -The usual use case is to de-duplicate output on system multi-path devices, for -example by \fB\-M WWN\fR. +.BR \-M , " \-\-merge" +Group parents of sub-trees to provide more readable output for RAIDs and +Multi-path devices. The tree-like output is required. .TP .BR \-m , " \-\-perms" Output info about device owner, group and mode. This option is equivalent to @@ -145,6 +148,9 @@ Sort output lines by \fIcolumn\fP. This option enables \fB\-\-list\fR output for It is possible to use the option \fI\-\-tree\fP to force tree-like output and than the tree branches are sorted by the \fIcolumn\fP. .TP +.BR \-z , " \-\-zoned" +Print the zone model for each device. +.TP .BR " \-\-sysroot " \fIdirectory\fP Gather data for a Linux instance other than the instance from which the lsblk command is issued. The specified directory is the system root of the Linux |