2 # vim: filetype=sh noexpandtab ts=8 sw=8
3 # $FreeBSD: head/tools/regression/pjdfstest/tests/link/15.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="link returns ENOSPC if the directory in which the entry for the new link is being placed cannot be extended because there is no space left on the file system containing the directory"
10 [ "${os}:${fs}" = "FreeBSD:UFS" ] || quick_exit
18 expect 0 mkdir ${n0} 0755
19 n=`mdconfig -a -n -t malloc -s 512k` || exit
20 newfs /dev/md${n} >/dev/null || exit
21 mount /dev/md${n} ${n0} || exit
22 expect 0 create ${n0}/${n1} 0644
25 link ${n0}/${n1} ${n0}/${i} >/dev/null 2>&1
31 expect ENOSPC link ${n0}/${n1} ${n0}/${n2}
33 mdconfig -d -u ${n} || exit