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

test "$SUDO" || skip
command -v systemd-mount &>/dev/null || skip

clean_scratch
mkdir scratch/{foo,automnt}

sudo systemd-mount -A -o bind basic scratch/automnt || skip
trap "sudo systemd-umount scratch/automnt" EXIT

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