summaryrefslogtreecommitdiffstats
path: root/tests/gnu/inum_automount.sh
blob: 261a4beefe07cbc4e67702db0c9c1570ce1903af (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

clean_scratch
mkdir scratch/{foo,automnt}

bfs_sudo systemd-mount -A -o bind basic scratch/automnt || skip
defer bfs_sudo systemd-umount scratch/automnt

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