linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problems using scsi_id with udevstart
@ 2004-10-05 23:33 Andrew Patterson
  2004-10-05 23:53 ` Patrick Mansfield
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Andrew Patterson @ 2004-10-05 23:33 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 1913 bytes --]

Hi,

I added the following udev rule to make human-readable device file names
for my SCSI disks:

BUS="scsi", KERNEL="sd*", PROGRAM="scsi_id", NAME="scsi_disks/%c-%b",
SYMLINK="%k"

When I run udevstart, I get the following errors in the logfile:

Oct  5 17:25:17 natasha udevstart: PROGRAM execution of 'scsi_id' failed
Oct  5 17:25:17 natasha udevstart: creating device node '/dev/sdy2'
Oct  5 17:25:17 natasha udevstart: PROGRAM execution of 'scsi_id' failed
Oct  5 17:25:17 natasha udevstart: creating device node '/dev/sdz'

scsi_id is failing because no parameters are being passed to it, and I
think DEVPATH is also not being set appropriately.  Here is debug
output:

get_sysfs_device: device 2:0:0:0 is registered with bus 'scsi'
namedev_name_device: sysfs_device-
>path='/sys/devices/pci0000:20/0000:20:01.0/host2/2:0:0:0'
namedev_name_device: sysfs_device->bus_id='2:0:0:0'
namedev_name_device: sysfs_device->bus='scsi'
wait_for_device_to_initialize: looking for file 'vendor' on bus 'scsi'
namedev_name_device: class_dev->name = 'sda'
namedev_name_device: udev->kernel_name = 'sda'
namedev_name_device: kernel_number=''
namedev_name_device: process rule
match_rule: check for BUS dev->bus='scsi' sysfs_device->bus='scsi'
match_rule: BUS matches
match_rule: check PROGRAM
execute_program: 

execute_program: result len 256 too short
execute_program: result is ' matching

Note: no args passed to scsi_id here.

I can get around this by writing a script the passes the appropriate -s
parameter to scsi_id, but I would hope that this sort of thing would
just work.  Is this sort of thing supposed to work with udevstart?  Note
that the Debian udev start-scripts run udevstart at boot.

Some configuration details.

Arch: IA-64
OS: Debian unstable
Udev version: 032
scsi_id version: 0.5

Andrew

-- 
Andrew Patterson                
Hewlett-Packard

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2004-10-06 23:19 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-05 23:33 Problems using scsi_id with udevstart Andrew Patterson
2004-10-05 23:53 ` Patrick Mansfield
2004-10-05 23:55 ` Kay Sievers
2004-10-06 16:20 ` Andrew Patterson
2004-10-06 16:26 ` Andrew Patterson
2004-10-06 16:44 ` Kay Sievers
2004-10-06 16:59 ` Patrick Mansfield
2004-10-06 17:33 ` Andrew Patterson
2004-10-06 18:07 ` Kay Sievers
2004-10-06 18:42 ` Andrew Patterson
2004-10-06 19:13 ` Kay Sievers
2004-10-06 21:22 ` Andrew Patterson
2004-10-06 21:39 ` Kay Sievers
2004-10-06 22:24 ` Greg KH
2004-10-06 22:28 ` Andrew Patterson
2004-10-06 23:08 ` Kay Sievers
2004-10-06 23:19 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).