usb floppy delays in /sys

Luke Kenneth Casson Leighton lkcl at lkcl.net
Thu Sep 16 08:31:00 PDT 2004


On Thu, Sep 16, 2004 at 04:41:05PM +0200, David Zeuthen wrote:
> On Thu, 2004-09-16 at 15:39 +0100, Luke Kenneth Casson Leighton wrote:
> > here y'go.
> > 
> > HAL_INFO (("%s, SEQNUM=%d subsystem=%s sysfs_path=%s",
> > (is_add ? "add" : "rem"), seqnum, subsystem,
> > sysfs_path_full));
> > 
> > 	if (is_add) {
> > 		int count = 5;
> > 		do {
> > 			d = add_device (sysfs_path_full, subsystem);
> > 			if (d == NULL)
> > 				sleep(1);
> > 		} while (d == NULL && count-- > 0);
> > 
> > 
> 
> Thanks, but this is probably not the right fix IMO; instead you should
> be extending the list of sysfs file we wait for in tools/hal_hotplug.c.
> Will that work? 

 ... i imagine so: it's the same desired effect (i'm pleased to note
 you've catered for this!)

 so, lshal output attached... minus irrelevant stuff.

 l.

-------------- next part --------------

Dumping 36 device(s) from the Global Device List:
-------------------------------------------------
udi = '/org/freedesktop/Hal/devices/block_8_0'
  info.udi = '/org/freedesktop/Hal/devices/block_8_0'  (string)
  storage.hotpluggable = true  (bool)
  storage.removable = false  (bool)
  info.product = 'USB-FDU'  (string)
  info.vendor = 'Y-E DATA'  (string)
  storage.drive_type = 'floppy'  (string)
  block.storage_device = '/org/freedesktop/Hal/devices/block_8_0'  (string)
  storage.physical_device = '/org/freedesktop/Hal/devices/usb_usb_device_57b_0_501_-1_noserial_0'  (string)
  storage.vendor = 'Y-E DATA'  (string)
  storage.model = 'USB-FDU'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.no_partitions_hint = true  (bool)
  storage.media_check_enabled = true  (bool)
  storage.bus = 'usb'  (string)
  block.minor = 0  (0x0)  (int)
  block.major = 8  (0x8)  (int)
  info.capabilities = 'block storage'  (string)
  info.category = 'storage'  (string)
  block.device = '/dev/sda'  (string)
  info.parent = '/org/freedesktop/Hal/devices/scsi_0_0_0_0'  (string)
  block.is_volume = false  (bool)
  block.have_scanned = false  (bool)
  block.no_partitions = true  (bool)
  linux.sysfs_path_device = '/sys/block/sda'  (string)
  linux.sysfs_path = '/sys/block/sda'  (string)
  info.bus = 'block'  (string)

udi = '/org/freedesktop/Hal/devices/scsi_0_0_0_0'
  info.capabilities = 'scsi_generic'  (string)
  scsi.generic_device = '/dev/sg0'  (string)
  info.udi = '/org/freedesktop/Hal/devices/scsi_0_0_0_0'  (string)
  info.product = 'SCSI Device'  (string)
  scsi.lun = 0  (0x0)  (int)
  scsi.target = 0  (0x0)  (int)
  scsi.bus = 0  (0x0)  (int)
  scsi.host = 0  (0x0)  (int)
  info.parent = '/org/freedesktop/Hal/devices/scsi_host_0'  (string)
  scsi.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/host0/0:0:0:0'  (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/host0/0:0:0:0'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/host0/0:0:0:0'  (string)
  info.bus = 'scsi'  (string)

udi = '/org/freedesktop/Hal/devices/scsi_host_0'
  info.udi = '/org/freedesktop/Hal/devices/scsi_host_0'  (string)
  info.capabilities = 'scsi_host'  (string)
  info.product = 'SCSI Host Interface'  (string)
  scsi_host.host = 0  (0x0)  (int)
  info.parent = '/org/freedesktop/Hal/devices/usb_usb_device_57b_0_501_-1_noserial_0'  (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/host0'  (string)
  linux.sysfs_path = '/sys/class/scsi_host/host0'  (string)
  info.bus = 'scsi_host'  (string)

udi = '/org/freedesktop/Hal/devices/usb_usb_device_57b_0_501_-1_noserial_0'
  info.udi = '/org/freedesktop/Hal/devices/usb_usb_device_57b_0_501_-1_noserial_0'  (string)
  info.product = 'USB Mass Storage Interface'  (string)
  usb.interface.subclass = 4  (0x4)  (int)
  usb.interface.protocol = 0  (0x0)  (int)
  usb.interface.number = 0  (0x0)  (int)
  usb.interface.class = 8  (0x8)  (int)
  usb.configuration_value = 1  (0x1)  (int)
  usb.device_class = 0  (0x0)  (int)
  usb.device_protocol = 0  (0x0)  (int)
  usb.device_subclass = 0  (0x0)  (int)
  usb.max_power = 500  (0x1f4)  (int)
  usb.num_configurations = 1  (0x1)  (int)
  usb.num_interfaces = 1  (0x1)  (int)
  usb.device_revision_bcd = 1281  (0x501)  (int)
  usb.is_self_powered = false  (bool)
  usb.can_wake_up = false  (bool)
  usb.product_id = 0  (0x0)  (int)
  usb.vendor_id = 1403  (0x57b)  (int)
  usb.vendor = 'Y-E Data, Inc.'  (string)
  usb.product = 'USB Floppy Drive'  (string)
  usb.bus_number = 1  (0x1)  (int)
  usb.port_number = 1  (0x1)  (int)
  usb.level_number = 1  (0x1)  (int)
  usb.linux.device_number = 4  (0x4)  (int)
  usb.linux.parent_number = 4  (0x4)  (int)
  usb.num_ports = 0  (0x0)  (int)
  usb.speed_bcd = 4608  (0x1200)  (int)
  usb.version_bcd = 272  (0x110)  (int)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_57b_0_501_-1_noserial'  (string)
  usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0'  (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0'  (string)
  info.bus = 'usb'  (string)

udi = '/org/freedesktop/Hal/devices/usb_device_57b_0_501_-1_noserial'
  info.udi = '/org/freedesktop/Hal/devices/usb_device_57b_0_501_-1_noserial'  (string)
  linux.kernel_devname = 'usb-0000:00:07.2-1'  (string)
  usb_device.version_bcd = 272  (0x110)  (int)
  usb_device.speed_bcd = 4608  (0x1200)  (int)
  usb_device.num_ports = 0  (0x0)  (int)
  usb_device.linux.parent_number = 4  (0x4)  (int)
  usb_device.linux.device_number = 4  (0x4)  (int)
  usb_device.level_number = 1  (0x1)  (int)
  usb_device.port_number = 1  (0x1)  (int)
  usb_device.bus_number = 1  (0x1)  (int)
  info.product = 'USB Floppy Drive'  (string)
  usb_device.product = 'USB Floppy Drive'  (string)
  info.vendor = 'Y-E Data, Inc.'  (string)
  usb_device.vendor = 'Y-E Data, Inc.'  (string)
  usb_device.vendor_id = 1403  (0x57b)  (int)
  usb_device.product_id = 0  (0x0)  (int)
  usb_device.can_wake_up = false  (bool)
  usb_device.is_self_powered = false  (bool)
  usb_device.device_revision_bcd = 1281  (0x501)  (int)
  usb_device.num_interfaces = 1  (0x1)  (int)
  usb_device.num_configurations = 1  (0x1)  (int)
  usb_device.max_power = 500  (0x1f4)  (int)
  usb_device.device_subclass = 0  (0x0)  (int)
  usb_device.device_protocol = 0  (0x0)  (int)
  usb_device.device_class = 0  (0x0)  (int)
  usb_device.configuration_value = 1  (0x1)  (int)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_0_0_206_-1_0000:00:07.2'  (string)
  usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:07.2/usb1/1-1'  (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:07.2/usb1/1-1'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:07.2/usb1/1-1'  (string)
  info.bus = 'usb_device'  (string)



Dumped 36 device(s) from the Global Device List:
------------------------------------------------

-------------- next part --------------
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal


More information about the Hal mailing list