From owner-freebsd-current Sun Feb 3 4: 8:55 2002 Delivered-To: freebsd-current@freebsd.org Received: from smtpzilla5.xs4all.nl (smtpzilla5.xs4all.nl [194.109.127.141]) by hub.freebsd.org (Postfix) with ESMTP id 9D42C37B405 for ; Sun, 3 Feb 2002 04:08:40 -0800 (PST) Received: from trantor.xs4all.nl (trantor.xs4all.nl [194.109.61.248]) by smtpzilla5.xs4all.nl (8.12.0/8.12.0) with ESMTP id g13C8c4q090818 for ; Sun, 3 Feb 2002 13:08:38 +0100 (CET) Received: from trantor.xs4all.nl (localhost [127.0.0.1]) by trantor.xs4all.nl (8.11.6/8.11.6) with ESMTP id g13C8cF49345 for ; Sun, 3 Feb 2002 13:08:38 +0100 (MET) (envelope-from paulz@trantor.xs4all.nl) Message-Id: <200202031208.g13C8cF49345@trantor.xs4all.nl> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: freebsd-current@freebsd.org Subject: usdb missing detaches ??? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 03 Feb 2002 13:08:38 +0100 From: Paul van der Zwan Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm experimenting with my Sony DSC S70 and USB. I can get -current to mount the stick in the camera but it won't umount the filesystem on detach. When I run usbd with -d -v it looks like usbd not even receives the detach event. It give the following output: usbd: opened /dev/usb0 usbd: opened /dev/usb1 usbd: opened /dev/usb2 usbd: reading configuration file /etc/usbd.conf usbd: opened /dev/usb usbd: device-attach event at 1012737567.535227000, Sony DSC, Sony: vndr=0x054c prdct=0x0010 rlse=0x0210 clss=0x0000 subclss=0x0000 prtcl=0x0000 device names: umass0 usbd: Found action 'Sony DSC S70 Camera' for Sony DSC, Sony at umass0 usbd: Executing 'sleep 5 ;mount /sony' usbd: device-attach event at 1012737599.549870000, Sony DSC, Sony: vndr=0x054c prdct=0x0010 rlse=0x0210 clss=0x0000 subclss=0x0000 prtcl=0x0000 device names: umass0 usbd: Found action 'Sony DSC S70 Camera' for Sony DSC, Sony at umass0 usbd: Executing 'sleep 5 ;mount /sony' msdosfs: /dev/da0s1: Device busy usbd: 'sleep 5 ;mount /sony' returned 71 The second attach happend when I switched the camera off and on again. Syslog shows the following: Feb 3 12:59:27 trantor kernel: umass0: Sony Sony DSC, rev 1.00/2.10, addr 2 Feb 3 12:59:27 trantor kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Feb 3 12:59:27 trantor kernel: da0: Removable Direct Access SCSI-0 device Feb 3 12:59:27 trantor kernel: da0: 150KB/s transfers Feb 3 12:59:27 trantor kernel: da0: 61MB (126848 512 byte sectors: 0H 0S/T 0C) Feb 3 12:59:42 trantor kernel: umass0: at uhub2 port 2 (addr 2) disconnected Feb 3 12:59:42 trantor kernel: (da0:umass-sim0:0:0:0): lost device Feb 3 12:59:42 trantor kernel: umass0: detached Feb 3 12:59:59 trantor kernel: umass0: Sony Sony DSC, rev 1.00/2.10, addr 2 So it looks like the kernel sees the detach but usbd does not. /etc/usbd.conf has the following entry for the camera: device "Sony DSC S70 Camera" vendor 0x054c product 0x0010 attach "sleep 5 ;mount /sony" detach "umount -f /sony" BTW This is on -current compiled and installed yesterday. Paul -- Paul van der Zwan paulz @ trantor.xs4all.nl "I think I'll move to theory, everything works in theory..." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message