[sisyphus] Нумерация сетевых интерфейсов и udev

Valery V. Inozemtsev =?iso-8859-1?q?shrek_=CE=C1_rescom=2Eru?=
Чт Мар 8 13:40:11 MSK 2007


> > > SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:04:76:13:f8:36",
> > > NAME="eth0" # PCI device 0x1186:0x1300 (8139too)
> > > SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0d:88:41:dc:36",
> > > NAME="eth1"
>
> А какие претензии есть к такому варианту, кроме опасений по поводу
> смены формата в очередной версии udev?

слишком много непонятных слов

>
> Вот у той схемы, которая есть сейчас (вызов ifrename через net.agent и
> скрипты etcnet), действительно есть серьёзная проблема - если
> интерфейсы действительно переименовываются, udevd этого не замечает, в
> результате hal получает неверную информацию.
> http://permalink.gmane.org/gmane.linux.hotplug.devel/11089

где? ткни носом, пожалуйста

$ hal-device /org/freedesktop/Hal/devices/net_00_02_8a_21_5e_ef
udi = '/org/freedesktop/Hal/devices/net_00_02_8a_21_5e_ef'
  net.arp_proto_hw_id = 1  (0x1)  (int)
  net.80203.mac_address = 10907377391  (0x28a215eef)  (uint64)
  net.physical_device = '/org/freedesktop/Hal/devices/pci_8086_1031'  (string)
  net.address = '00:02:8a:21:5e:ef'  (string)
  info.capabilities = { 'net', 'net.80203' } (string list)
  info.udi = '/org/freedesktop/Hal/devices/net_00_02_8a_21_5e_ef'  (string)
  linux.subsystem = 'net'  (string)
  net.originating_device = '/org/freedesktop/Hal/devices/pci_8086_1031'  
(string)
  net.linux.ifindex = 2  (0x2)  (int)
  info.product = 'Networking Interface'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.sysfs_path = '/sys/class/net/ether'  (string)
  info.category = 'net.80203'  (string)
  info.parent = '/org/freedesktop/Hal/devices/pci_8086_1031'  (string)
  net.interface = 'ether'  (string)


а вот второй девайс
$ hal-device /org/freedesktop/Hal/devices/pci_1260_3890
udi = '/org/freedesktop/Hal/devices/pci_1260_3890'
  pci.product = 'ISL3890 [Prism GT/Prism Duette]/ISL3886 [Prism Javelin/Prism 
Xbow]'  (string)
  pci.subsys_vendor = 'Allied Telesyn International'  (string)
  info.bus = 'pci'  (string)
  pci.device_protocol = 0  (0x0)  (int)
  info.udi = '/org/freedesktop/Hal/devices/pci_1260_3890'  (string)
  pci.linux.sysfs_path 
= '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:03.0/0000:03:00.0'  (string)
  pci.subsys_product_id = 49412  (0xc104)  (int)
  linux.subsystem = 'pci'  (string)
  info.vendor = 'Intersil Corporation'  (string)
  info.subsystem = 'pci'  (string)
  pci.product_id = 14480  (0x3890)  (int)
  pci.vendor = 'Intersil Corporation'  (string)
  info.product = 'ISL3890 [Prism GT/Prism Duette]/ISL3886 [Prism Javelin/Prism 
Xbow]'  (string)
  pci.subsys_product = 'CG-WLCB54GT Wireless Adapter'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.sysfs_path 
= '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:03.0/0000:03:00.0'  (string)
  pci.vendor_id = 4704  (0x1260)  (int)
  info.parent = '/org/freedesktop/Hal/devices/pci_1180_476'  (string)
  info.linux.driver = 'prism54'  (string)
  pci.subsys_vendor_id = 4697  (0x1259)  (int)
  pci.device_class = 2  (0x2)  (int)
  pci.device_subclass = 128  (0x80)  (int)

он же с
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0A:79:2D:95:6B", 
NAME="wifi"
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:30:B4:00:00:00", 
NAME="wifi"

$ hal-device /org/freedesktop/Hal/devices/pci_1260_3890
udi = '/org/freedesktop/Hal/devices/pci_1260_3890'
  pci.product = 'ISL3890 [Prism GT/Prism Duette]/ISL3886 [Prism Javelin/Prism 
Xbow]'  (string)
  pci.subsys_vendor = 'Allied Telesyn International'  (string)
  info.bus = 'pci'  (string)
  pci.device_protocol = 0  (0x0)  (int)
  info.udi = '/org/freedesktop/Hal/devices/pci_1260_3890'  (string)
  pci.linux.sysfs_path 
= '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:03.0/0000:03:00.0'  (string)
  pci.subsys_product_id = 49412  (0xc104)  (int)
  linux.subsystem = 'pci'  (string)
  info.vendor = 'Intersil Corporation'  (string)
  info.subsystem = 'pci'  (string)
  pci.product_id = 14480  (0x3890)  (int)
  pci.vendor = 'Intersil Corporation'  (string)
  info.product = 'ISL3890 [Prism GT/Prism Duette]/ISL3886 [Prism Javelin/Prism 
Xbow]'  (string)
  pci.subsys_product = 'CG-WLCB54GT Wireless Adapter'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.sysfs_path 
= '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:03.0/0000:03:00.0'  (string)
  pci.vendor_id = 4704  (0x1260)  (int)
  info.parent = '/org/freedesktop/Hal/devices/pci_1180_476'  (string)
  info.linux.driver = 'prism54'  (string)
  pci.subsys_vendor_id = 4697  (0x1259)  (int)
  pci.device_class = 2  (0x2)  (int)
  pci.device_subclass = 128  (0x80)  (int)


-- 
Valery V. Inozemtsev
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 189 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url     : <http://lists.altlinux.org/pipermail/sisyphus/attachments/20070308/58f3e8a9/attachment-0003.bin>


Подробная информация о списке рассылки Sisyphus