From nobody@FreeBSD.org  Fri Jul  5 01:57:07 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7744F37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Jul 2002 01:57:07 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3CD0343E09
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Jul 2002 01:57:07 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g658v7OT096599
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 5 Jul 2002 01:57:07 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g658v7hW096598;
	Fri, 5 Jul 2002 01:57:07 -0700 (PDT)
Message-Id: <200207050857.g658v7hW096598@www.freebsd.org>
Date: Fri, 5 Jul 2002 01:57:07 -0700 (PDT)
From: Igor Sobrado <sobrado@acm.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [apm] apm breaks removable media
X-Send-Pr-Version: www-1.0

>Number:         40219
>Category:       i386
>Synopsis:       [apm] apm breaks removable media
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 05 02:00:03 PDT 2002
>Closed-Date:    Sun Sep 10 11:49:02 GMT 2006
>Last-Modified:  Sun Sep 10 11:49:02 GMT 2006
>Originator:     Igor Sobrado
>Release:        4.6-RELEASE
>Organization:
University of Oviedo
>Environment:
FreeBSD localhost 4.6-RELEASE FreeBSD 4.6-RELEASE #2: Thu Jul  4 09:59:34 CEST 2002     sobrado@localhost:/usr/src/sys/compile/HP-OB4100  i386
>Description:
      When a laptop goes into suspend/standby/hibernate and returns to the normal state removable media seems umounted (for example it is possible to remove a cdrom from the drive) but mounting points are not cleared.
>How-To-Repeat:
      Mount a cdrom in the drive (mount /cdrom). Go into suspend state (Fn+S) and return to the working state again.  The cdrom is not mounted (it can be removed and files are not accesible) but the mounting point shows some files yet (/cdrom is not empty.)
>Fix:
      Umounting the removable media BEFORE going into suspend/standby/hibernate state is a fix for the problem. Perhaps those filesystems can be umounted before shutting down the computer (umounting the "noauto" devices before turning on the laptop???)
>Release-Note:
>Audit-Trail:

From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
To: Igor Sobrado <sobrado@acm.org>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/40219: [apm] apm breaks removable media
Date: Fri, 5 Jul 2002 12:23:24 +0200

 --=.Y1mK(VDBWA62dO
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 On Fri, 5 Jul 2002 01:57:07 -0700 (PDT) Igor Sobrado wrote:
 >       When a laptop goes into suspend/standby/hibernate and returns to
 >       the normal state removable media seems umounted (for example it
 >       is possible to remove a cdrom from the drive) but mounting
 >       points are not cleared.
 > >Fix:
 >       Umounting the removable media BEFORE going into
 >       suspend/standby/hibernate state is a fix for the problem.
 >       Perhaps those filesystems can be umounted before shutting down
 >       the computer (umounting the "noauto" devices before turning on
 >       the laptop???)
 
 don't you think locking these devices would be more intuitive and easy
 to implement?
 
 cheers
   simon
 
 -- 
 /"\   http://corecode.ath.cx/#donate
 \ /
  \     ASCII Ribbon Campaign
 / \  Against HTML Mail and News
 
 --=.Y1mK(VDBWA62dO
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.7 (FreeBSD)
 
 iD8DBQE9JXOhr5S+dk6z85oRAgtIAJ4uWD5PPxuehG9lsOr8WU5LjjkzcQCg9qx6
 4CVdLYnHMTHIeORMay14yHk=
 =cV8z
 -----END PGP SIGNATURE-----
 
 --=.Y1mK(VDBWA62dO--
 

From: Igor Sobrado <sobrado@string1.ciencias.uniovi.es>
To: Simon 'corecode' Schubert <corecode@corecode.ath.cx>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/40219: [apm] apm breaks removable media
Date: Fri, 05 Jul 2002 12:42:24 +0200

 > On Fri, 5 Jul 2002 01:57:07 -0700 (PDT) Igor Sobrado wrote:
 > >       When a laptop goes into suspend/standby/hibernate and returns to
 > >       the normal state removable media seems umounted (for example it
 > >       is possible to remove a cdrom from the drive) but mounting
 > >       points are not cleared.
 > > >Fix:
 > >       Umounting the removable media BEFORE going into
 > >       suspend/standby/hibernate state is a fix for the problem.
 > >       Perhaps those filesystems can be umounted before shutting down
 > >       the computer (umounting the "noauto" devices before turning on
 > >       the laptop???)
 > 
 > don't you think locking these devices would be more intuitive and easy
 > to implement?
 
 Sure! It is a very good point!
 
 It will be, at least, more intuitive (after all... why should a mounted
 filesystem disappear when the computer goes into suspend mode???).
 
 I did that proposal because umounting those filesystems marked as "noauto"
 in /etc/fstab seems easier to implement.  But locking these devices seems
 the right answer to the problem.  Obviously, I do not know a lot about
 FreeBSD.  If it is possible to lock those devices, great!  It is the
 right answer.  I supposed that there was a problem locking those devices.
 
 Cheers!
 
 Igor.
 
 -- 
 Igor Sobrado, UK34436 - sobrado@acm.org
 
 
Responsible-Changed-From-To: freebsd-bugs->freebsd-i386 
Responsible-Changed-By: arved 
Responsible-Changed-When: Thu May 20 04:36:31 PDT 2004 
Responsible-Changed-Why:  
APM is i386-specific 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40219 
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Sun Sep 3 09:49:25 UTC 2006 
State-Changed-Why:  
Is this problem still persisting? 


Responsible-Changed-From-To: freebsd-i386->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Sun Sep 3 09:49:25 UTC 2006 
Responsible-Changed-Why:  
Grab the PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40219 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Sun Sep 10 11:47:27 UTC 2006 
State-Changed-Why:  
The submitter can no longer verify this, I will close the 
PR for that reason, but if someone can verify this or 
has feedback, please report to me so that we can verify 
what needs to be done etc. 

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