ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Q: Определение имени подключаемого устройства по данным dbus
@ 2008-09-07 23:19 Michael Pozhidaev
  2008-09-08  4:50 ` Ildar Mulyukov
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Pozhidaev @ 2008-09-07 23:19 UTC (permalink / raw)
  To: sisyphus

Привет всем!

Подскажите, кто-нибудь, пожалуйста, как по данным, которые hal транслирует 
в dbus при подключении флешки определить положение нового устройства в /dev?

В мониторе видны такие сигналы. По этим 
данным, как я понял, можно определить, что 2da6c875f5b1fb -- это серийный номер устройства.
Но как узнать, где оно в /dev?
   string "/org/freedesktop/Hal/devices/usb_device_1307_163_2da6c875f5b1fb"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/Manager; interface=org.freedesktop.Hal.Manager; member=DeviceAdded
   string "/org/freedesktop/Hal/devices/usb_device_1307_163_2da6c875f5b1fb_if0"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/Manager; interface=org.freedesktop.Hal.Manager; member=DeviceAdded
   string "/org/freedesktop/Hal/devices/usb_device_1307_163_2da6c875f5b1fb_usbraw"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/Manager; interface=org.freedesktop.Hal.Manager; member=DeviceAdded
   string "/org/freedesktop/Hal/devices/usb_device_1307_163_2da6c875f5b1fb_if0_scsi_host"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/Manager; interface=org.freedesktop.Hal.Manager; member=DeviceAdded
   string "/org/freedesktop/Hal/devices/usb_device_1307_163_2da6c875f5b1fb_if0_scsi_host_scsi_device_lun0"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/Manager; interface=org.freedesktop.Hal.Manager; member=DeviceAdded
   string "/org/freedesktop/Hal/devices/usb_device_1307_163_2da6c875f5b1fb_if0_scsi_host_scsi_device_lun0_scsi_generic"
signal sender=org.freedesktop.DBus -> dest=(null destination) path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.8"
   string ""
   string ":1.8"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/Manager; interface=org.freedesktop.Hal.Manager; member=DeviceAdded
   string "/org/freedesktop/Hal/devices/storage_serial_USB_2_0_Flash_Disk_2da6c875f5b1fb_0_0"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/devices/storage_serial_USB_2_0_Flash_Disk_2da6c875f5b1fb_0_0; interface=org.freedesktop.Hal.Device; member=PropertyModified
   int32 1
   array [
      struct {
         string "info.interfaces"
         boolean false
         boolean true
      }
   ]
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/Manager; interface=org.freedesktop.Hal.Manager; member=DeviceAdded
   string "/org/freedesktop/Hal/devices/volume_uuid_2009_14CE"

-- 
С уважением и наилучшими пожеланиями, Михаил Пожидаев. E-mail: msp@altlinux.ru.
Томский государственный университет. Факультет информатики. http://www.csd.tsu.ru
ALT Linux Team. http://www.altlinux.ru



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-09-08  7:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-07 23:19 [sisyphus] Q: Определение имени подключаемого устройства по данным dbus Michael Pozhidaev
2008-09-08  4:50 ` Ildar Mulyukov
2008-09-08  5:50   ` Michael Pozhidaev
2008-09-08  5:54     ` Ildar Mulyukov
2008-09-08  7:36       ` Michael Pozhidaev

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git