util-linux/misc-utils
Milan Broz c49ff158aa lsblk: Display mountpoint even for top-level device
If a filesystem is mounted on top-level block device
with existing partitions, the mountpoint is not displayed
in the lsblk output.

This situation can happen by a configuration mistake
and lsblk could be used to detect such a mistake.

This patch allows searching for a mountpoint for all displayed
devices, not only for leaf nodes.
(It should be pretty cheap operation, mtab is parsed only once.)

For example: lsblk /dev/loop1
NAME      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop1       7:1    0  128M  0 loop /mnt/tst
└─loop1p1 259:0    0  127M  0 loop

Signed-off-by: Milan Broz <gmazyland@gmail.com>
2015-07-31 10:44:57 +02:00
..
.gitignore chkdupexe: remove, deprecated for years 2013-03-14 13:34:11 +01:00
Makemodule.am logger: add -DTEST_LOGGER 2015-03-16 14:01:53 +01:00
blkid.8 blkid: another hint to the man page 2015-05-21 13:13:49 +02:00
blkid.c blkid: don't ignore info about partitions on non-formated devices 2015-05-21 12:14:55 +02:00
cal.1 cal: correct the man page: the reformation eliminated eleven days, not ten 2015-06-25 11:56:59 +02:00
cal.c cal: fix January 1753 week number printout 2015-05-18 11:41:48 +02:00
findfs.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
findfs.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
findmnt.8 findmnt: add --json 2015-06-05 09:47:59 +02:00
findmnt.c findmnt: add --json 2015-06-05 09:47:59 +02:00
getopt-parse.bash getopt: use $(...) command substitution in example script [shellcheck] 2015-06-29 12:06:12 +02:00
getopt-parse.tcsh build-sys: move getopt to misc-utils/ 2012-06-26 20:48:23 +02:00
getopt.1 docs: don't use bold or italics for "[option]" in synopsis of man pages 2014-12-19 09:57:23 +01:00
getopt.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
kill.1 kill: Add verbose to man page. 2015-07-03 09:11:04 +05:30
kill.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
logger.1 logger: Add support to logger for RFC6587 octet counting 2015-07-29 10:33:25 +02:00
logger.c logger: Add support to logger for RFC6587 octet counting 2015-07-29 10:33:25 +02:00
look.1 docs: fix-up man-pages flaged by checkmans.sh 2015-01-13 11:43:46 -05:00
look.c look: remove dead code 2015-01-07 21:57:53 +00:00
lsblk.8 lsblk: add --json 2015-06-04 15:49:52 +02:00
lsblk.c lsblk: Display mountpoint even for top-level device 2015-07-31 10:44:57 +02:00
lslocks.8 lslocks: add --json 2015-06-05 10:45:15 +02:00
lslocks.c lslocks: add --json 2015-06-05 10:45:15 +02:00
mcookie.1 docs: adjust some formatting and wordings in a handful of man pages 2014-12-19 09:57:25 +01:00
mcookie.c mcookie: fix -f usage [clang analyze] 2015-07-29 14:59:56 +02:00
namei.1 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
namei.c textual: grammarize and harmonize the stat error message 2015-02-02 11:27:10 +01:00
rename.1 docs: adjust some formatting and wordings in a handful of man pages 2014-12-19 09:57:25 +01:00
rename.c rename: allow full-path renames 2015-06-25 12:01:36 +02:00
uuidd.8.in docs: sort the options in the man pages of hwclock and uuidd 2014-07-29 12:14:56 +02:00
uuidd.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
uuidd.rc.in uuidd: Fixed a typo in daemon logging message 2014-11-18 14:14:47 +01:00
uuidd.service.in uuidd: remove timeout from systemd service file 2014-04-29 10:37:26 +02:00
uuidd.socket.in build-sys: add missing files 2012-07-11 18:00:09 +02:00
uuidgen.1 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
uuidgen.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
whereis.1 whereis: trivial spelling and grammar fix 2015-04-07 10:44:50 +02:00
whereis.c libblkid/whereis: simplify some conditions [cppcheck] 2015-06-25 12:08:50 +02:00
wipefs.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
wipefs.c wipefs: fix FD leak on error [coverity scan] 2015-01-29 12:42:58 +01:00