From: "Kenneth D. Merry" <[EMAIL PROTECTED]>
Subject: Re: od driver for -CURRENT
> > By the way, in Japanese users mailing list, some said that `da' does
> > not check whether a medium is writerable or not (write
> > protected). If you mount a write protected medium with -rw, it will
> > lead bad condition when you do umount.
>
> Hmm, can you demonstrate the problem? The write-protect check in the od
> driver is one of the things that the da driver doesn't have. I figured it
> wouldn't really be necessary, since any attempted writes would be returned
> with errors.
The problem is you cannot unmount after -rw mount with a write-protected
medium.
Below has been done also in 4.2-RELEASE with GENERIC kernel,
1. Insert a write protected medium,
2. mount /dev/da0s1c /mnt,
cel# mount /dev/da0s1c /mnt
3. umount /mnt
cel# umount /mnt
umount: unmount of /mnt failed: Input/output error
cel# umount /mnt
umount: unmount of /mnt failed: Input/output error
Umount does not success and `Write protected' messages continue to appear
4. reboot (umount fails)
In /var/log/mesages,
Feb 9 21:10:28 cel /kernel: (da0:ahc0:0:3:0): WRITE(06). CDB: a 0 7 c9 2 0
Feb 9 21:10:28 cel /kernel: (da0:ahc0:0:3:0): DATA PROTECT asc:27,0
Feb 9 21:10:28 cel /kernel: (da0:ahc0:0:3:0): Write protected
Feb 9 21:10:35 cel /kernel: (da0:ahc0:0:3:0): WRITE(06). CDB: a 0 7 c9 2 0
Feb 9 21:10:35 cel /kernel: (da0:ahc0:0:3:0): DATA PROTECT asc:27,0
Feb 9 21:10:35 cel /kernel: (da0:ahc0:0:3:0): Write protected
Feb 9 21:10:35 cel /kernel: (da0:ahc0:0:3:0): WRITE(06). CDB: a 0 7 c9 2 0
Feb 9 21:10:35 cel /kernel: (da0:ahc0:0:3:0): DATA PROTECT asc:27,0
Feb 9 21:10:35 cel /kernel: (da0:ahc0:0:3:0): Write protected
Feb 9 21:10:40 cel /kernel: (da0:ahc0:0:3:0): WRITE(06). CDB: a 0 0 49 4 0
Feb 9 21:10:40 cel /kernel: (da0:ahc0:0:3:0): DATA PROTECT asc:27,0
Feb 9 21:10:40 cel /kernel: (da0:ahc0:0:3:0): Write protected
Feb 9 21:11:09 cel /kernel: (da0:ahc0:0:3:0): WRITE(06). CDB: a 0 0 49 4 0
Feb 9 21:11:09 cel /kernel: (da0:ahc0:0:3:0): DATA PROTECT asc:27,0
Feb 9 21:11:09 cel /kernel: (da0:ahc0:0:3:0): Write protected
Feb 9 21:11:38 cel /kernel: (da0:ahc0:0:3:0): WRITE(06). CDB: a 0 0 49 4 0
Feb 9 21:11:38 cel /kernel: (da0:ahc0:0:3:0): DATA PROTECT asc:27,0
Feb 9 21:11:38 cel /kernel: (da0:ahc0:0:3:0): Write protected
Hope this helps.
// Noriaki Mitsunaga //
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message