On Feb 1, 2008 12:58 PM, Dan Mick <[EMAIL PROTECTED]> wrote: > Richard Lowe wrote: > > "Garrett D'Amore" <[EMAIL PROTECTED]> writes: > > > >> Artem Kachitchkine wrote: > >>>> [EMAIL PROTECTED]> pfexec truss -f -t mount mount -F pcfs -o ro > >>>> /dev/dsk/c2t0d0p0:1 /mnt > >>>> 3708: mount("/dev/dsk/c2t0d0p0:1", "/mnt", MS_OPTIONSTR, "pcfs", > >>>> 0x00000000, 0, 0x08063240, 1024) Err#30 EROFS > >>>> mount: Read-only file system > >>> As another data point, submitter of 6642367 reports the same issue > >>> with USB-connected SD media on snv_79 and claims that it used to work > >>> on snv_64a. > >>> > >>> -Artem > >> Furthermore, I can now confirm *verified* with kmdb that sdopen() is > >> called with FWRITE. On the same call stack, the mount options is > >> verified to contain MS_RDONLY at the pcfs_mount() call site. So the > >> problem must lie within pcfs kernel code (and pcfs_vfsops.c most likley) > >> itself. > >> > >> I'll take a look at that bug and update it appropriately. > > > > It looks like a moderately recent change to pcfs splits out the mount > > option parsing into a separate routine (pcfs_parse_mntopts), which > > will set VFS_RDONLY if MS_RDONLY was passed down. > > > > This is called *AFTER* the device has been opened in pcfs_mount, > > however. So the device would get opened R/W even if you passed down > > readonly. > > sure sounds like a bug to me. I'm certain I've opened pcfs readonly in the > past.
I definitely have as well, but using "mount -f pcfs -o ro" and only on a drive; not with a sdcard, etc. -- Shawn Walker, Software and Systems Analyst http://binarycrusader.blogspot.com/ "To err is human -- and to blame it on a computer is even more so." - Robert Orben _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code