4 desc="open returns EROFS when O_CREAT is specified and the named file would reside on a read-only file system"
9 [ "${os}:${fs}" = "FreeBSD:UFS" ] || quick_exit
16 expect 0 mkdir ${n0} 0755
17 n=`mdconfig -a -n -t malloc -s 1m`
18 newfs /dev/md${n} >/dev/null
19 mount /dev/md${n} ${n0}
20 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
21 expect 0 unlink ${n0}/${n1}
23 expect EROFS open ${n0}/${n1} O_RDONLY,O_CREAT 0644