4 desc="link returns EXDEV if the source and the destination files 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}
21 expect 0 create ${n0}/${n1} 0644
22 expect EXDEV link ${n0}/${n1} ${n2}
23 expect 0 unlink ${n0}/${n1}
24 expect 0 create ${n1} 0644
25 expect EXDEV link ${n1} ${n0}/${n2}