2 # vim: filetype=sh noexpandtab ts=8 sw=8
3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/19.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open returns ENOSPC when O_CREAT is specified, the file does not exist, and there are no free inodes on the file system on which the file is being created"
10 [ "${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
23 touch ${n0}/${i} >/dev/null 2>&1
29 expect ENOSPC open ${n0}/${i} O_RDONLY,O_CREAT 0644
31 mdconfig -d -u ${n} || exit