Bug 63605

Summary: Can't unmount DVDRAM with write protect
Product: Base System Reporter: Jason Bacon <bacon>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.1-RELEASE   
Hardware: Any   
OS: Any   

Description Jason Bacon 2004-03-01 18:50:13 UTC
	If a DVDRAM is mounted with the write-protect enabled, attempts
	to unmount will produce the error:

	umount: umount of /dvdram failed: resource temporarily unavailable

	Presumably, there is some pending write operation that cannot be
	completed.  I think the system is missing the fact that the write
	protect is on, and mounting rw.  It should detect the write-protect
	upon mounting, and automatically mount read-only.

Fix: 

Workaround: camcontrol eject bus:target:lun will eject the disk,
	but will not update the mount table.
How-To-Repeat: 	Set write protect on a DVDRAM and mount it.
Comment 1 Kris Kennaway 2004-03-06 09:05:07 UTC
On Mon, Mar 01, 2004 at 12:40:51PM -0600, Jason Bacon wrote:

> 	If a DVDRAM is mounted with the write-protect enabled, attempts
> 	to unmount will produce the error:
> 
> 	umount: umount of /dvdram failed: resource temporarily unavailable
> 
> 	Presumably, there is some pending write operation that cannot be
> 	completed.  I think the system is missing the fact that the write
> 	protect is on, and mounting rw.  It should detect the write-protect
> 	upon mounting, and automatically mount read-only.
> 
> >How-To-Repeat:
> 	Set write protect on a DVDRAM and mount it.
> >Fix:
> 	Workaround: camcontrol eject bus:target:lun will eject the disk,
> 	but will not update the mount table.

How are you mounting the disk?  Read-only disks should be mounted
read-only; this may be the problem.

Kris
Comment 2 Kris Kennaway freebsd_committer freebsd_triage 2004-04-24 08:45:28 UTC
State Changed
From-To: open->closed

Feedback timeout.