summaryrefslogtreecommitdiffstats
path: root/tests/gnu/inum_automount.sh
blob: 86b23e16e2b074788e53ca04f2ffedc1df62599c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# bfs shouldn't trigger automounts unless it descends into them

command -v systemd-mount &>/dev/null || skip

cd "$TEST"
mkdir foo automnt

bfs_sudo systemd-mount -A -o bind "$TMP/basic" automnt || skip
defer bfs_sudo systemd-umount automnt

before=$(inum automnt)
bfs_diff . -inum "$before" -prune
after=$(inum automnt)
((before == after))