>Are there any reason device drivers do not check if thier devices are
>writable or not when they are opened ? I think returning an error
>value, like `od', is the easiest way to avoid this problem.

It is not necessarily sufficient since the media may be changed after
open on certain types of devices that don't have a media lock.  Some
devices will only tell you that they are write protected on the first
write, etc.  For the devices where we can tell, we should make the check
in open, but not rely on that catching all cases where a driver will
return EACCESS.

--
Justin



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to