1#!/bin/sh 2# $FreeBSD: src/tools/regression/fstest/tests/symlink/11.t,v 1.1 2007/01/17 01:42:11 pjd Exp $ 3 4desc="symlink returns ENOSPC if there are no free inodes on the file system on which the symbolic link is being created" 5 6n0=`namegen` 7n1=`namegen` 8 9expect 0 mkdir ${n0} 0755 10dd if=/dev/zero of=tmpdisk bs=1k count=256 2>/dev/null 11vnconfig svnd1 tmpdisk 12newfs /dev/rsvnd1c >/dev/null 13mount /dev/svnd1c ${n0} 14 15i=0 16while :; do 17 ln -s test ${n0}/${i} >/dev/null 2>&1 18 if [ $? -ne 0 ]; then 19 break 20 fi 21 i=`expr $i + 1` 22done 23expect ENOSPC symlink test ${n0}/${n1} 24umount /dev/svnd1c 25vnconfig -u svnd1 26rm tmpdisk 27expect 0 rmdir ${n0} 28