retry mounting with ro when rw fails
    Andriy Gapon 
    avg at FreeBSD.org
       
    Fri Apr  8 15:23:43 UTC 2011
    
    
  
on 08/04/2011 15:36 Andrew Duane said the following:
> What I was hoping to do was design a better mechanism for passing that R/O
> detection from the device to the filesystem code. Our implementation uses a
> platform sysctl that checks the incoming device name against some hardware or
> software settings. Ick. I don't know enough about device/GEOM calls to do it
> better though.
I am actually not aware of any way to inquiry write-protection status from
hardware.  There are distinct SCSI sense codes for that, but you get them only
after a failed write attempt.
But there are many things that I don't know about...
-- 
Andriy Gapon
    
    
More information about the freebsd-fs
mailing list