CVSROOT:        /cvs
Module name:    src
Changes by:     k...@cvs.openbsd.org    2012/06/10 15:29:04

Modified files:
        sys/scsi       : sd.c 
        sys/ufs/ffs    : ffs_vfsops.c 

Log message:
Do NOT make all check condition results report EIO. Only use EIO
when b_error has not already been set to something more informative,
e.g. EROFS.

DO check the result of ffs_sbupdate() and error out of a mount()
call when ffs_sbupdate() reports EROFS while attempting a rw mount.

Letting RW mounts proceed regardless of EROFS led to crashes and
usb problems for Oliver Seufer while using the RW/RO switches on
some usb devices. Fix developed using devices kindly supplied by
Oliver & Co.

ok miod@

Reply via email to