summaryrefslogtreecommitdiffstats
path: root/misc-utils/lsblk.8
Commit message (Collapse)AuthorAgeFilesLines
* lsblk: fix "maybe be" duplicationAustin English2019-05-151-3/+3
| | | | Signed-off-by: Austin English <austinenglish@gmail.com>
* lsblk: force tree on --json --tree independently on used columnsKarel Zak2019-03-181-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: allow to specify tree columnKarel Zak2019-02-201-0/+6
| | | | | | | | | | | | | | | * document --tree (was missing in the man page) * add optional argument to --tree to specify tree For example: $ lsblk -o KNAME,SIZE,MOUNTPOINT --tree=KNAME /dev/dm-0 KNAME SIZE MOUNTPOINT dm-0 232.9G └─dm-1 232.9G └─dm-2 232.9G Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: add --mergeKarel Zak2018-12-071-11/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: add --dedup <column>Karel Zak2018-12-071-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The target use-case are systems with large number of multi-path devices or systems with duplicate (copied) filesystems. The feature is flexible enough to use arbitrary column (for example WWM or UUID, ...) as de-duplication key. For example tree with multi-path devices sd{c,d,e,f} ./lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 223.6G 0 disk ├─sda1 8:1 0 200M 0 part /boot/efi ├─sda2 8:2 0 200M 0 part /boot ├─sda3 8:3 0 130.3G 0 part ├─sda4 8:4 0 50G 0 part / └─sda5 8:5 0 42.9G 0 part sdb 8:16 0 74.5G 0 disk └─sdb1 8:17 0 74.5G 0 part /home/archive sdc 8:32 0 100M 0 disk └─mpatha 253:0 0 100M 0 mpath ├─mpatha1 253:1 0 50M 0 part └─mpatha2 253:2 0 49M 0 part sdd 8:48 0 100M 0 disk └─mpatha 253:0 0 100M 0 mpath ├─mpatha1 253:1 0 50M 0 part └─mpatha2 253:2 0 49M 0 part sde 8:64 0 100M 0 disk └─mpatha 253:0 0 100M 0 mpath ├─mpatha1 253:1 0 50M 0 part └─mpatha2 253:2 0 49M 0 part sdf 8:80 0 100M 0 disk └─mpatha 253:0 0 100M 0 mpath ├─mpatha1 253:1 0 50M 0 part └─mpatha2 253:2 0 49M 0 part De-duplicate by WWN: ./lsblk -M WWN NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 223.6G 0 disk ├─sda1 8:1 0 200M 0 part /boot/efi ├─sda2 8:2 0 200M 0 part /boot ├─sda3 8:3 0 130.3G 0 part ├─sda4 8:4 0 50G 0 part / └─sda5 8:5 0 42.9G 0 part sdb 8:16 0 74.5G 0 disk └─sdb1 8:17 0 74.5G 0 part /home/archive sdc 8:32 0 100M 0 disk └─mpatha 253:0 0 100M 0 mpath ├─mpatha1 253:1 0 50M 0 part └─mpatha2 253:2 0 49M 0 part Addresses: https://github.com/karelzak/util-linux/issues/616 Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: add note about --list -I <maj,...>Karel Zak2018-07-181-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: document --sysrootKarel Zak2018-06-211-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* man: Use the correct macro for a font change of one argumentBjarni Ingi Gislason2018-05-231-1/+1
| | | | | | | | Use the correct macro (I, B) for the font change of one argument, not those that are used for alternating two fonts, like "BR", "IR", "RB", or "RI". Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* lsblk: fix notes about RAM disksKarel Zak2018-05-151-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: document LSBLK_DEBUG=Karel Zak2018-02-161-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: add hint about perms to man pageKarel Zak2017-11-221-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: small man page change in return codes descriptionKarel Zak2017-09-071-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: add option --treeKarel Zak2017-06-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now lsblk uses --list when --sort <column> is specified. This patch allows to specify --tree to overwrite this default behavior add to force tree-like output. In this case tree branches are sorted by the <column>. $ lsblk --sort SIZE NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda2 8:2 0 200M 0 part /boot sda1 8:1 0 200M 0 part /boot/efi sda6 8:6 0 7.8G 0 part [SWAP] sda5 8:5 0 35.1G 0 part /home/misc sda4 8:4 0 50G 0 part / sdb1 8:17 0 74.5G 0 part /home/archive sdb 8:16 0 74.5G 0 disk sda3 8:3 0 130.3G 0 part /home sda 8:0 0 223.6G 0 disk $ lsblk --sort SIZE --tree NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 74.5G 0 disk └─sdb1 8:17 0 74.5G 0 part /home/archive sda 8:0 0 223.6G 0 disk ├─sda2 8:2 0 200M 0 part /boot ├─sda1 8:1 0 200M 0 part /boot/efi ├─sda6 8:6 0 7.8G 0 part [SWAP] ├─sda5 8:5 0 35.1G 0 part /home/misc ├─sda4 8:4 0 50G 0 part / └─sda3 8:3 0 130.3G 0 part /home Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: add ZONED columnDamien Le Moal2017-04-191-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the column "ZONED" to the output to display block devices zone model information. Example output: > lsblk -o+ZONED NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT ZONED sda 8:0 0 111.8G 0 disk none ├─sda1 8:1 0 500M 0 part /boot none ├─sda2 8:2 0 87.3G 0 part / none └─sda3 8:3 0 24G 0 part [SWAP] none sdb 8:16 0 12.8T 0 disk host-managed sdc 8:32 0 5.5T 0 disk host-managed or: > lsblk --zoned NAME ZONED sda none ├─sda1 none ├─sda2 none └─sda3 none sdb host-managed sdc host-managed Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
* lsblk: fix --inverse --listKarel Zak2017-04-131-1/+2
| | | | | | | Let's follow --inverse dependencies although --list output requested. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1441175 Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: replace FTP by HTTPS in kernel.org URLsSébastien Helleu2016-12-191-1/+1
| | | | | | | The links to ftp://ftp.kernel.org/ are replaced by https://www.kernel.org/. Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: various pages: Format pathnames as italic (.I)Michael Kerrisk2016-12-091-1/+1
| | | | | | | | | In the majority of pages, pathnames are formatted as Italic, which is the norm. However, there are several cases where they are formatted as bold. This patch fixes a number of those exceptions. Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
* Place SEE ALSO entries in orderMichael Kerrisk (man-pages)2016-11-291-2/+2
| | | | | | | | | | | | This patch does only the following: * Order SEE ALSO entries first by section name, then alphabetically within section * Adds one or two missing commas in SEE ALSO lists * Removes one or two periods that were (inconsistently) used at the end of SEE ALSO lists. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* lsblk: add note about --sort and --list relationKarel Zak2016-11-021-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: support LIBSMARTCOLS_DEBUG_PADDING=onKarel Zak2016-09-071-0/+2
| | | | | | | | | | | | This env.variable forces libsmartcols to use visible padding chars. The standard debug has to be enabled (to minimize overhead for non-debug execution). For example: $ LIBSMARTCOLS_DEBUG=all LIBSMARTCOLS_DEBUG_PADDING=on findmnt 2> ~/log Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: tiny man page update for --sortKarel Zak2015-12-101-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: add --jsonKarel Zak2015-06-041-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk.8: Fix description of output formatStanislav Brabec2015-06-021-2/+2
| | | | Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* lsblk: implement SOMEOK (=64) return codeKarel Zak2015-01-291-0/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: restore minus symbols in long optsJ William Piggott2015-01-211-1/+1
| | | | Signed-off-by: J William Piggott <elseifthen@gmx.com>
* docs: remove obsolete and unneeded comments from man-page filesBenno Schulenberg2015-01-121-1/+0Star
| | | | | | | Transform some of them into copyright lines. Also fix three header lines and snip some trailing whitespace. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: don't use bold or italics for "[option]" in synopsis of man pagesBenno Schulenberg2014-12-191-1/+1
| | | | | | | As per the convention shown in Documentation/howto-man-page.txt. Also make a few other tiny adjustments along the way. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: update info about env debug variablesKarel Zak2014-11-031-1/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: add notes about udev to the man pageKarel Zak2014-09-051-2/+13
| | | | | Reported-by: Francis Moreau <francis.moro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: add --sort <column>Karel Zak2014-05-201-0/+3
| | | | | | | | | | This implementation allow to sort output by arbitrary output column. Note that output is always converted to human readable strings, but sort functions in many cases work with original data (stored as private data to cells by scols_cell_set_userdata()). Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: add -O option to show all available columnsMasatake YAMATO2014-05-061-0/+3
| | | | | | | | | | | | | Simple command line for gathering information as many as possible is useful when understanding a system, especially when trouble shooting. This patch introduces -O option which enables all available columns. [kzak@redhat.com: - define collisions between options, - define columns when parse argv[]] Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: standardize the phrases for --help and --version in all man pagesBenno Schulenberg2013-10-151-2/+2
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* lsblk: add --pathsKarel Zak2013-03-291-0/+3
| | | | | Now it's not so simple to generate full paths to devices if you want to use user friendly names like /dev/mapper/foo. Let's make it easy.
* docs: improve wording, grammar and formatting of lsblk man pageBenno Schulenberg2013-03-041-58/+78
| | | | | | Also sort the options alphabetically. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: improve grammar and formatting of explanation of "-o +list"Benno Schulenberg2013-03-041-2/+2
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: add missing information about -o +<list>Karel Zak2013-02-181-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: Add write-same attribute to topology infoMilan Broz2013-01-071-1/+1
| | | | | Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: fix and update man page about --scsiKarel Zak2012-11-071-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: Add --scsi switchMilan Broz2012-11-071-0/+2
| | | | | | The --scsi switch prints similar information to lsscsi command. Signed-off-by: Milan Broz <mbroz@redhat.com>
* libmount: document LIBMOUNT_DEBUG usersDavidlohr Bueso2012-09-041-0/+3
| | | | | | | Update the manpages of programs that use this environment variable for extra debugging information. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* lsblk: add WWN, improve udev supportKarel Zak2012-08-141-4/+0Star
| | | | | | | | | | | | * read WWN from udev DB * use *_ENC properties from udev DB to get original unmodified strings (otherwise for example blank space is replaced with '_' in ID_FS_LABEL) * always read from udev, libblkid is fallback solution only Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: add not about unstable default outputKarel Zak2012-07-261-0/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: add --include optionKarel Zak2012-06-191-2/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: improve man page wordingPetr Uzel2012-05-151-2/+2
| | | | | | | Cc: Regid Ichira <regid23@yahoo.com> From: Regid Ichira <regid23@yahoo.com> Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672702 Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* lsblk: remove private \x<hex> coding, decode data from udevKarel Zak2012-04-261-1/+2
| | | | | | | * remove private encoding code (all encoding will be in lib/tt.c) * decode LABELs from udev Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: count with terminating character, man page -s entryPeter Rajnoha2012-04-041-0/+2
| | | | Signed-off-by: Peter Rajnoha <prajnoha@redhat.com>
* lsblk: RQ-SIZE is part of the --topology output (man page bugfix)Dave Reisner2012-03-131-1/+1
| | | | Signed-off-by: Dave Reisner <dreisner@archlinux.org>
* lsblk: add --version switchMilan Broz2012-03-081-0/+2
| | | | | | [kzak@redhat.com: - update usage() and man page] Signed-off-by: Milan Broz <mbroz@redhat.com>
* lsblk: escape unsafe chars in parsable outputKarel Zak2012-03-081-2/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: inform about depencency to /sys/dev/blockSami Kerola2011-10-101-0/+9
| | | | | | | | | | | | | | | | | | | | | | The lsblk depends on /sys/dev/block/ symlinks, which appeared in kernel 2.6.27. Users with old, or non-sysfs configured, kernel got ealier message lsblk: md0: failed to initialize sysfs handler lsblk: xvda: failed to initialize sysfs handler [...] that I found a little too difficult to understand. This patch will change the message to lsblk: failed to access sysfs directory: /sys/dev/block: No such file or directory and informs in manual page what could be reason to that. [kzak@redhat.com: - use access() rather than opendir()] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>