]> git.ipfire.org Git - thirdparty/util-linux.git/commit
findmnt: add TID column
authorKarel Zak <kzak@redhat.com>
Thu, 28 Jun 2012 13:42:06 +0000 (15:42 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 28 Jun 2012 13:46:38 +0000 (15:46 +0200)
commit7d8f4e0c4ba9b1feed4e0eadd17dd709ad45c838
treeae94886cdf1f19aa7e342260b661b454886198b3
parentf7f29b564073831c9d1a8cdf9deaf039c0bcb1b6
findmnt: add TID column

just in case we read from more mountinfo files.

For example get mountpoint from the current namespace which is invisible
for initd (PID=1):

 # unsahre -m bash
 # mount /dev/sdb /mnt/test
 # echo $$
 30070

 # findmnt -n -o TARGET,TID,SOURCE --task 1 --task $$ | \
      sort -u --key=1,1 | awk ' ($2 != 1) { print $0 }'

 /mnt/test                  30070 /dev/sdb

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/findmnt.c