turns printfs back on
[freebsd-src/fkvm-freebsd.git] / tools / regression / fstest / tests / rename / 15.t
blob0ef6cc306800619ad00f1f2ed5ffeabba31b4e70
1 #!/bin/sh
2 # $FreeBSD$
4 desc="rename returns EXDEV if the link named by 'to' and the file named by 'from' are on different file systems"
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
9 case "${os}" in
10 FreeBSD)
11 echo "1..14"
13 n0=`namegen`
14 n1=`namegen`
15 n2=`namegen`
17 expect 0 mkdir ${n0} 0755
18 n=`mdconfig -a -n -t malloc -s 1m`
19 newfs /dev/md${n} >/dev/null
20 mount /dev/md${n} ${n0}
22 expect 0 create ${n0}/${n1} 0644
23 expect EXDEV rename ${n0}/${n1} ${n2}
24 expect 0 unlink ${n0}/${n1}
26 expect 0 mkdir ${n0}/${n1} 0755
27 expect EXDEV rename ${n0}/${n1} ${n2}
28 expect 0 rmdir ${n0}/${n1}
30 expect 0 mkfifo ${n0}/${n1} 0644
31 expect EXDEV rename ${n0}/${n1} ${n2}
32 expect 0 unlink ${n0}/${n1}
34 expect 0 symlink test ${n0}/${n1}
35 expect EXDEV rename ${n0}/${n1} ${n2}
36 expect 0 unlink ${n0}/${n1}
38 umount /dev/md${n}
39 mdconfig -d -u ${n}
40 expect 0 rmdir ${n0}
43 quick_exit
45 esac