4 desc="rename returns EXDEV if the link named by 'to' and the file named by 'from' are on different file systems"
9 [ "${os}" = "FreeBSD" ] || quick_exit
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 for type in regular dir fifo block char socket symlink; do
23 create_file ${type} ${n0}/${n1}
24 expect EXDEV rename ${n0}/${n1} ${n2}
25 if [ "${type}" = "dir" ]; then
26 expect 0 rmdir ${n0}/${n1}
28 expect 0 unlink ${n0}/${n1}