summaryrefslogtreecommitdiffstats
path: root/tests/gnu/inum_automount.sh
blob: c4450efe93e3f5fe47d47a18ebb36bcadecdfe3b (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
trap "bfs_sudo systemd-umount scratch/automnt" EXIT

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