blob: 6bf2977f465a4ca73ae503778619fce49cf66215 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# 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
before=$(inum scratch/automnt)
bfs_diff scratch -inum "$before" -prune
ret=$?
after=$(inum scratch/automnt)
sudo systemd-umount scratch/automnt
((ret == 0 && before == after))
|