hal truncating block.device on freebsd-8.0rc1

J.R. Oldroyd fbsd at opal.com
Fri Oct 23 01:54:47 UTC 2009


Attached USB camera in umass mode.  Doesn't automount.

Running hald --verbose shows:

...
21:02:23.301 [W] hf-block.c:49: unable to stat /dev/msdosfs/NIKON: No such file or directory
Run started hald-probe-volume (60000) (0) 
!  full path is '/usr/local/libexec/hald-probe-volume', program_dir is '/usr/local/libexec'
pid 6469: rc=1 signaled=0: /usr/local/libexec/hald-probe-volume
21:02:23.313 [I] hald.c:108: Added device to GDL; udi=/org/freedesktop/Hal/devices/volume_part2_size_4095705600_block
21:02:23.322 [I] hf-devd.c:316: received devd event: !system=DEVFS subsystem=CDEV type=CREATE cdev=pass1
21:02:23.330 [I] hf-devd.c:316: received devd event: !system=DEVFS subsystem=CDEV type=CREATE cdev=da1
21:02:23.331 [I] hf-devd.c:316: received devd event: !system=DEVFS subsystem=CDEV type=CREATE cdev=da1s1
21:02:23.331 [I] hf-devd.c:316: received devd event: !system=DEVFS subsystem=CDEV type=CREATE cdev=msdosfs/NIKON D300
...

# ls -l /dev/msdosfs
total 0
crw-r-----  1 root  operator    0, 110 Oct 22 21:02 NIKON D300

# lshal
...
udi = '/org/freedesktop/Hal/devices/volume_part2_size_4095705600_block'
  block.device = '/dev/msdosfs/NIKON'  (string)
  block.is_volume = false  (bool)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_model_D300'  (string)
  info.capabilities = {'block'} (string list)
  info.category = 'block'  (string)
  info.parent = '/org/freedesktop/Hal/devices/volume_part2_size_4095705600'  (string)
  info.product = 'Block Device'  (string)
  info.subsystem = 'block'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_part2_size_4095705600_block'  (string)
...

Looks like hal is truncating the device name from "NIKON D300" to
just "NIKON" so the mount is failing.

	-jr


More information about the freebsd-gnome mailing list