From mboxrd@z Thu Jan 1 00:00:00 1970 From: DervishD Date: Sun, 15 Jul 2007 20:53:43 +0000 Subject: Some sysfs attrs have vanished! Message-Id: <20070715205343.GA18557@DervishD> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Hi all :) I don't know if I screwed anything while compiling my 2.6.20.14 kernel, and I'm not sure how much time has this been happening because I removed one of the units and so I removed some bits from my rules file, so please tell me if I'm doing wrong anything obvious. Well, here is the story: I have two DVD recorders, and until I removed one of them (long story) I had my udev.rules configured to assign names to them based on $ATTRS{model}. And it worked, I swear. One of them reports something like "HL-DT-ST" and the other said "DUW1616/ARR", or something very similar. Today I've put again the second recorder and I did run "udevinfo" to get the model strings (I didn't remember them exactly) and to my surprise, there's no ATTRS{model}! This is what I get: $ udevinfo -a -n /dev/hdc Udevinfo starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be composed by the attributes of the device and the attributes from one single parent device. looking at device '/block/hdc': KERNEL=3D"hdc" SUBSYSTEM=3D"block" DRIVER=3D"" ATTR{stat}=3D" 0 0 0 0 0 0 = 0 0 0 0 0" ATTR{size}=3D"8388604" ATTR{removable}=3D"1" ATTR{range}=3D"1" ATTR{dev}=3D"22:0" looking at parent device '/devices/pci0000:00/0000:00:0f.1/ide1/1.0': KERNELS=3D"1.0" SUBSYSTEMS=3D"ide" DRIVERS=3D"ide-cdrom" ATTRS{modalias}=3D"ide:m-cdrom" ATTRS{drivename}=3D"hdc" ATTRS{media}=3D"cdrom" looking at parent device '/devices/pci0000:00/0000:00:0f.1/ide1': KERNELS=3D"ide1" SUBSYSTEMS=3D"" DRIVERS=3D"" looking at parent device '/devices/pci0000:00/0000:00:0f.1': KERNELS=3D"0000:00:0f.1" SUBSYSTEMS=3D"pci" DRIVERS=3D"VIA_IDE" ATTRS{msi_bus}=3D"" ATTRS{broken_parity_status}=3D"0" ATTRS{modalias}=3D"pci:v00001106d00000571sv0000147Bsd00001416bc01sc01i8= a" ATTRS{local_cpus}=3D"1" ATTRS{irq}=3D"0" ATTRS{class}=3D"0x01018a" ATTRS{subsystem_device}=3D"0x1416" ATTRS{subsystem_vendor}=3D"0x147b" ATTRS{device}=3D"0x0571" ATTRS{vendor}=3D"0x1106" looking at parent device '/devices/pci0000:00': KERNELS=3D"pci0000:00" SUBSYSTEMS=3D"" DRIVERS=3D"" ---------------------------------------------------------- Exactly the same happens to the other IDE devices, they have stopped telling $ATTRS{model}, and they did!. Is there anything in the kernel that I've turned off to suffer this problem? As far as I know, I haven't removed anything from my configuration in the last three kernel updates, if I recall correctly. I suspect I'm doing something very obvious and stupid here but I'm missing the point. Sorry for the stupid question, but I'm a bit lost O:) Thanks a lot in advance. Ra=FAl N=FA=F1ez de Arenas Coronado --=20 Linux Registered User 88736 | http://www.dervishd.net It's my PC and I'll cry if I want to... RAmen! ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel