]> git.ipfire.org Git - thirdparty/util-linux.git/commit
findmnt: add --poll option
authorKarel Zak <kzak@redhat.com>
Wed, 27 Apr 2011 15:19:04 +0000 (17:19 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 27 Apr 2011 15:19:04 +0000 (17:19 +0200)
commit32e5466aa79fedaebf6e101fbfe22c0705805af9
tree8dfbed72092ee5b0cc6eeeb83ee9ad2aec35c62b
parent0983b5f7e67c23c553d7c14ac8d1788b1dc19890
findmnt: add --poll option

The --poll functionality is based on poll(/proc/self/mountinfo) and
mnt_tabdiff_* functions from libmount.

 $ findmnt --poll
 ACTION     TARGET    SOURCE    FSTYPE OPTIONS
 mount      /mnt/test /dev/sda1 ext3   rw,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered

... after "mount /dev/sda1 /mnt/test".

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