Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Oct 2003 14:35:21 +0900
From:      Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
To:        dhelder@gizmolabs.org
Cc:        freebsd-firewire@freebsd.org
Subject:   Re: FreeBSD 4.8 and iPod remounting problems
Message-ID:  <ybsvfr1liee.wl@ett.sat.t.u-tokyo.ac.jp>
In-Reply-To: <ybswubhlkyl.wl@ett.sat.t.u-tokyo.ac.jp>
References:  <1065482801.350.55.camel@localhost> <1065383483.476.12.camel@localhost> <ybs1xtqnc7t.wl@ett.sat.t.u-tokyo.ac.jp> <ybswubhlkyl.wl@ett.sat.t.u-tokyo.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
At Tue, 07 Oct 2003 13:40:02 +0900,
Hidetoshi Shimokawa wrote:
> 
> At Mon, 06 Oct 2003 19:26:41 -0400,
> dhelder@gizmolabs.org wrote:
> > > > [root@sorrow] dhelder -: camcontrol devlist
> > > > <LITE-ON LTR-48246S SGS3>          at scbus1 target 0 lun 0 (pass0)
> > > > <Apple Co iPod 2700>               at scbus2 target 0 lun 0
> > > > (probe0,da0,pass1)
> > 
> > Yes, but it's not plugged in and fwcontrol doesn't show it.  It's a
> > ghost.
> 
> If it's not listed in 'fwcontrol' (not 'fwcontorl -t'), it must be
> detached. In that case, there might be some reason why CAM layer
> cannot detach the device. The output of dmesg might help.

Try this patch or 4.9-RC.

Index: sbp.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/firewire/sbp.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- sbp.c	29 Apr 2003 23:40:04 -0000	1.46
+++ sbp.c	30 Apr 2003 10:32:32 -0000	1.47
@@ -1982,6 +1982,9 @@
 			if (sdev->status == SBP_DEV_RESET)
 				continue;
 			if (sdev->path) {
+				xpt_release_devq(sdev->path,
+						 sdev->freeze, TRUE);
+				sdev->freeze = 0;
 				xpt_async(AC_LOST_DEVICE, sdev->path, NULL);
 				xpt_free_path(sdev->path);
 				sdev->path = NULL;

/\ Hidetoshi Shimokawa
\/  simokawa@sat.t.u-tokyo.ac.jp
PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ybsvfr1liee.wl>