4 desc
="rename returns EXDEV if the link named by 'to' and the file named by 'from' are on different file systems"
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}