Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Feb 2002 13:08:38 +0100
From:      Paul van der Zwan <paulz@trantor.xs4all.nl>
To:        freebsd-current@freebsd.org
Subject:   usdb missing detaches ???
Message-ID:  <200202031208.g13C8cF49345@trantor.xs4all.nl>

next in thread | raw e-mail | index | archive | help

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 <kern.crit> trantor kernel: umass0: Sony Sony DSC, rev 1.00/2.10, addr 2
Feb  3 12:59:27 <kern.crit> trantor kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Feb  3 12:59:27 <kern.crit> trantor kernel: da0: <Sony Sony DSC 2.10> Removable Direct Access SCSI-0 device 
Feb  3 12:59:27 <kern.crit> trantor kernel: da0: 150KB/s transfers
Feb  3 12:59:27 <kern.crit> trantor kernel: da0: 61MB (126848 512 byte sectors: 0H 0S/T 0C)
Feb  3 12:59:42 <kern.crit> trantor kernel: umass0: at uhub2 port 2 (addr 2) disconnected
Feb  3 12:59:42 <kern.crit> trantor kernel: (da0:umass-sim0:0:0:0): lost device
Feb  3 12:59:42 <kern.crit> trantor kernel: umass0: detached
Feb  3 12:59:59 <kern.crit> 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




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