From bacon@smithers.neuro.mcw.edu  Mon Mar  1 10:40:53 2004
Return-Path: <bacon@smithers.neuro.mcw.edu>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B604516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  1 Mar 2004 10:40:53 -0800 (PST)
Received: from smithers.neuro.mcw.edu (smithers.neuro.mcw.edu [141.106.106.66])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6B50243D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  1 Mar 2004 10:40:53 -0800 (PST)
	(envelope-from bacon@smithers.neuro.mcw.edu)
Received: from smithers.neuro.mcw.edu (localhost [127.0.0.1])
	by smithers.neuro.mcw.edu (8.12.9/8.12.9) with ESMTP id i21Ieqa8046992
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 1 Mar 2004 12:40:52 -0600 (CST)
	(envelope-from bacon@smithers.neuro.mcw.edu)
Received: (from bacon@localhost)
	by smithers.neuro.mcw.edu (8.12.9/8.12.9/Submit) id i21Iepqt046991;
	Mon, 1 Mar 2004 12:40:51 -0600 (CST)
Message-Id: <200403011840.i21Iepqt046991@smithers.neuro.mcw.edu>
Date: Mon, 1 Mar 2004 12:40:51 -0600 (CST)
From: Jason Bacon <bacon@smithers.neuro.mcw.edu>
Reply-To: Jason Bacon <bacon@smithers.neuro.mcw.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Can't unmount DVDRAM with write protect
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         63605
>Category:       kern
>Synopsis:       Can't unmount DVDRAM with write protect
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 01 10:50:13 PST 2004
>Closed-Date:    Sat Apr 24 00:45:47 PDT 2004
>Last-Modified:  Sat Apr 24 00:45:47 PDT 2004
>Originator:     Jason Bacon
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
Medical College of Wisconsin
>Environment:
System: FreeBSD smithers.neuro.mcw.edu 5.1-RELEASE FreeBSD 5.1-RELEASE #1: Thu Feb 19 13:09:05 CST 2004 bacon@smithers.neuro.mcw.edu:/usr/obj/usr/src/sys/smithers i386


>Description:
	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.
>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@obsecurity.org>
To: Jason Bacon <bacon@smithers.neuro.mcw.edu>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/63605: Can't unmount DVDRAM with write protect
Date: Sat, 6 Mar 2004 01:05:07 -0800

 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
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Sat Apr 24 00:45:28 PDT 2004 
State-Changed-Why:  
Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63605 
>Unformatted:
