2 # $FreeBSD: head/tools/regression/pjdfstest/tests/link/15.t 211352 2010-08-15 21:24:17Z pjd $
4 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"
9 [ "${os}:${fs}" = "FreeBSD:UFS" ] || quick_exit
17 expect 0 mkdir ${n0} 0755
18 n=`mdconfig -a -n -t malloc -s 512k` || exit
19 newfs /dev/md${n} >/dev/null || exit
20 mount /dev/md${n} ${n0} || exit
21 expect 0 create ${n0}/${n1} 0644
24 link ${n0}/${n1} ${n0}/${i} >/dev/null 2>&1
30 expect ENOSPC link ${n0}/${n1} ${n0}/${n2}
32 mdconfig -d -u ${n} || exit