]> git.ipfire.org Git - thirdparty/util-linux.git/commit - misc-utils/findmnt.c
findmnt: make --target usable with bind mounts
authorKarel Zak <kzak@redhat.com>
Mon, 14 Jan 2013 13:50:50 +0000 (14:50 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 14 Jan 2013 13:50:50 +0000 (14:50 +0100)
commit3e373967ec06d246ffede78fd78d078df3b770ff
treef52e479fbddd1d930830ea21f682dedb59760179
parent624f2b47c39256ce1bddb23d53df612dbf2fe65e
findmnt: make --target usable with bind mounts

The --target <non-mount-point> functionality should be enabled only if
previous regular search found nothing to avoid collisions with bind
mounts, because to detect mountpoint we use traditional child / parent
stat.st_dev comparison which does not work for bind mounts (--bind /A
/A).

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