2 # vim: filetype=sh noexpandtab ts=8 sw=8
3 # $FreeBSD: head/tools/regression/pjdfstest/tests/rmdir/13.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="rmdir returns EBUSY if the directory to be removed is the mount point for a mounted file system"
10 [ "${os}" = "FreeBSD" ] || quick_exit
16 expect 0 mkdir ${n0} 0755
17 n=`mdconfig -a -n -t malloc -s 1m` || exit
18 newfs /dev/md${n} >/dev/null || exit
19 mount /dev/md${n} ${n0} || exit
20 expect EBUSY rmdir ${n0}
22 mdconfig -d -u ${n} || exit