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