linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev tells me to contact greg@kroah.com (known problem ?)
@ 2004-01-08 16:59 Remco
  2004-01-09 20:13 ` Greg KH
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Remco @ 2004-01-08 16:59 UTC (permalink / raw)
  To: linux-hotplug

I'm seeing a problem which I found already mentioned in the archives in a thread named:
"Re: libsysfs update for refresh + namedev.c changes".

Whether this is a clue or a coincidence, I don't know, but I can add the following behaviour:
When I add my USB storage it pops up wiht ID "0:0:0:0".
As far as I recall this never causes a problem, both disc and partition rules are applied.

Any subsequent unplug/plug will increase the host number, like "1:0:0:0", "2:0:0:0", etc.
From then on the disc rule does NOT get applied while the partition rule does.
(At this point I can get both rules applied by doing => rmmod sd_mod => modprobe sd_mod,
 but this is off course not desired)

So for me there only seems to be a problem when the host number is > 0.



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
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

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

* Re: udev tells me to contact greg@kroah.com (known problem ?)
  2004-01-08 16:59 udev tells me to contact greg@kroah.com (known problem ?) Remco
@ 2004-01-09 20:13 ` Greg KH
  2004-01-13 16:06 ` Remco
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2004-01-09 20:13 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Jan 08, 2004 at 05:59:29PM +0100, Remco wrote:
> I'm seeing a problem which I found already mentioned in the archives
> in a thread named: "Re: libsysfs update for refresh + namedev.c
> changes".
> 
> Whether this is a clue or a coincidence, I don't know, but I can add
> the following behaviour: When I add my USB storage it pops up wiht ID
> "0:0:0:0".  As far as I recall this never causes a problem, both disc
> and partition rules are applied.
> 
> Any subsequent unplug/plug will increase the host number, like
> "1:0:0:0", "2:0:0:0", etc.  From then on the disc rule does NOT get
> applied while the partition rule does.  (At this point I can get both
> rules applied by doing => rmmod sd_mod => modprobe sd_mod, but this is
> off course not desired)

The SCSI host number is incremented for every new device it sees.  It is
not reused, so you probably can't use it in a rule successfully.

What is the rule that you are trying to use?

thanks,

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
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

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

* Re: udev tells me to contact greg@kroah.com (known problem ?)
  2004-01-08 16:59 udev tells me to contact greg@kroah.com (known problem ?) Remco
  2004-01-09 20:13 ` Greg KH
@ 2004-01-13 16:06 ` Remco
  2004-01-28 18:57 ` Greg KH
  2004-01-29  8:59 ` Remco
  3 siblings, 0 replies; 5+ messages in thread
From: Remco @ 2004-01-13 16:06 UTC (permalink / raw)
  To: linux-hotplug

I think I have to rephrase my previous post a little.
I'll try to summarise the things I see first, more information can be found in "attached" logs.


I use a home made script "scsi-devfs.sh" to get my USB storage device/partition in a tree structure.
It's pretty much like "ide-devfs.sh" and can be found at the bottom of this mail.
The rule used is:
  CALLOUT, BUS="scsi", PROGRAM="/home/remco/udev/scsi-devfs.sh %k %b %n", ID="s[dgrt]*", NAME="%2c"

A simple replace rule does not show the described behaviour:
  REPLACE, KERNEL="sda*", NAME="scsi/sda%n"
It creates the nodes correctly.
  

It seems to me that device node creation/removal is triggered by the "sd_mod" module.


1.  The very first time the USB storage is plugged everything's fine.
(no matter which host it is connected to, host0, host1, ...)
Both the main device and its partition are created in the designated place.
e.g. /udev/scsi/host0/bus0/target0/lun0/disc
     /udev/scsi/host0/bus0/target0/lun0/part1
(DEBUG log is "attached" under "==> first time plugin")


2.  Unplug the storage, the device and partition are removed as it should.
(DEBUG log is "attached" under "==> unplug")


3.  Plug the device back in. A new host will be created (no problem).
However, the main device ends up in the root of udev.
Only the partition is created correctly.
e.g. /udev/sda
     /udev/scsi/host1/bus0/target0/lun0/part1
(DEBUG log is "attached" under "==> replug")

In this case the log shows a message to contact greg@kroah.com.


4.  Every subsequent unplug/plug sequence shows the behaviour described under 2 and 3.

After a replug the udev tree can be populated correctly by either,
 a stop/start sequence of the udev init script, or
 unload and reload of the "sd_mod" module (in my case with only one storage device and no mounts).

Unplug/plug actions after a repopulation will return to the behaviour as described under 2 and 3.


5.  Exceptions:
- While the system is put under 100% (processor) load, (compiling a kernel)
the rules are sometimes applied correctly and sometimes they're not.
Normally not much more than a KDE session is running.
- When the drive is unplugged and plugged back in very fast, 
(I think the drive does not spin down fully) the nodes might be created correctly.



==> System


Dual Pentium III
USB 1.1 Controller VIA686B
- attached to VIA686B - Logitech keyboard/mouse (USB 1.1)
- attached to VIA686B - storage (USB 2.0) - Hard disc enclosure using Genesyslogic chip
  (mounting the storage doesn't work under USB 2.0, probably lack of (external) power)
USB 2.0 Controller NEC (EHCI 1.0)
- attached to NEC - nothing
Linux 2.6.1
hotplug 2004_01_05
udev 012


Also checked biefly on a:
Pentium II
USB 1 Controller Intel PIIX4
- attached to PIIX4 - storage (USB 2.0) - Hard disc enclosure using Genesyslogic chip
Same behaviour applied except that step 5 wasn't tried.



==> first time plugin


Jan 13 16:07:55 vp6 udev[1986]: main: version 012
Jan 13 16:07:55 vp6 udev[1986]: get_dirs: sysfs_path='/sys'
Jan 13 16:07:55 vp6 udev[1986]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:07:55 vp6 udev[1986]: main: called by hotplug
Jan 13 16:07:55 vp6 udev[1986]: udev_hotplug: looking at '/devices/pci0000:00/0000:00:07.2/usb4/4-2'
Jan 13 16:07:55 vp6 udev[1986]: udev_hotplug: not a block or class device
Jan 13 16:07:56 vp6 udev[2012]: main: version 012
Jan 13 16:07:56 vp6 udev[2012]: get_dirs: sysfs_path='/sys'
Jan 13 16:07:56 vp6 udev[2012]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:07:56 vp6 udev[2012]: main: called by hotplug
Jan 13 16:07:56 vp6 udev[2012]: udev_hotplug: looking at '/class/scsi_host/host0'
Jan 13 16:07:56 vp6 udev[2012]: namedev_init_rules: reading '/home/remco/udev/udev.rules.d-compu' as rules file
Jan 13 16:07:56 vp6 udev[2012]: namedev_init_permissions: reading '/home/remco/udev/udev.permissions.d-compu' as permissions file
Jan 13 16:07:56 vp6 udev[2012]: sleep_for_dev: looking for '/sys/class/scsi_host/host0/dev'
Jan 13 16:07:56 vp6 udev[2025]: main: version 012
Jan 13 16:07:56 vp6 udev[2025]: get_dirs: sysfs_path='/sys'
Jan 13 16:07:56 vp6 udev[2025]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:07:56 vp6 udev[2025]: main: called by hotplug
Jan 13 16:07:56 vp6 udev[2025]: udev_hotplug: looking at '/class/scsi_device/0:0:0:0'
Jan 13 16:07:56 vp6 udev[2025]: namedev_init_rules: reading '/home/remco/udev/udev.rules.d-compu' as rules file
Jan 13 16:07:56 vp6 udev[2025]: namedev_init_permissions: reading '/home/remco/udev/udev.permissions.d-compu' as permissions file
Jan 13 16:07:56 vp6 udev[2025]: sleep_for_dev: looking for '/sys/class/scsi_device/0:0:0:0/dev'
Jan 13 16:07:56 vp6 udev[2033]: main: version 012
Jan 13 16:07:56 vp6 udev[2033]: get_dirs: sysfs_path='/sys'
Jan 13 16:07:56 vp6 udev[2033]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:07:56 vp6 udev[2033]: main: called by hotplug
Jan 13 16:07:56 vp6 udev[2033]: udev_hotplug: looking at '/devices/pci0000:00/0000:00:07.2/usb4/4-2/4-2:1.0'
Jan 13 16:07:56 vp6 udev[2033]: udev_hotplug: not a block or class device
Jan 13 16:07:56 vp6 udev[2050]: main: version 012
Jan 13 16:07:56 vp6 udev[2050]: get_dirs: sysfs_path='/sys'
Jan 13 16:07:56 vp6 udev[2050]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:07:56 vp6 udev[2050]: main: called by hotplug
Jan 13 16:07:56 vp6 udev[2050]: udev_hotplug: looking at '/block/sda'
Jan 13 16:07:56 vp6 udev[2050]: namedev_init_rules: reading '/home/remco/udev/udev.rules.d-compu' as rules file
Jan 13 16:07:56 vp6 udev[2050]: namedev_init_permissions: reading '/home/remco/udev/udev.permissions.d-compu' as permissions file
Jan 13 16:07:56 vp6 udev[2050]: sleep_for_dev: looking for '/sys/block/sda/dev'
Jan 13 16:07:56 vp6 udev[2050]: get_class_dev: looking at '/sys/block/sda'
Jan 13 16:07:56 vp6 udev[2050]: get_class_dev: class_dev->name='sda'
Jan 13 16:07:56 vp6 udev[2050]: get_major_minor: dev='8:0 '
Jan 13 16:07:56 vp6 udev[2050]: get_major_minor: found major=8, minor=0
Jan 13 16:07:56 vp6 udev[2050]: get_sysfs_device: filename = /sys/block/sda
Jan 13 16:07:56 vp6 udev[2050]: get_sysfs_device: looking for '/sys/block/sda/device'
Jan 13 16:07:56 vp6 udev[2050]: namedev_name_device: sysfs_device->path='/sys/devices/pci0000:00/0000:00:07.2/usb4/4-2/4-2:1.0/host0/0:0:0:0'
Jan 13 16:07:56 vp6 udev[2050]: namedev_name_device: sysfs_device->bus_id='0:0:0:0'
Jan 13 16:07:56 vp6 udev[2050]: namedev_name_device: sysfs_device->bus='scsi'
Jan 13 16:07:56 vp6 udev[2050]: wait_for_device_to_initialize: looking for file 'vendor' on bus 'scsi'
Jan 13 16:07:56 vp6 udev[2050]: namedev_name_device: kernel_number=''
Jan 13 16:07:56 vp6 udev[2050]: do_callout: dev->bus='ide' sysfs_device->bus='scsi'
Jan 13 16:07:56 vp6 udev[2050]: do_callout: dev->bus='scsi' sysfs_device->bus='scsi'
Jan 13 16:07:56 vp6 udev[2050]: apply_format: substitute kernel name 'sda'
Jan 13 16:07:56 vp6 udev[2050]: apply_format: substitute bus_id '0:0:0:0'
Jan 13 16:07:56 vp6 udev[2050]: exec_callout: callout to '/home/remco/udev/scsi-devfs.sh sda 0:0:0:0 '
Jan 13 16:07:56 vp6 udev[2062]: main: version 012
Jan 13 16:07:56 vp6 udev[2062]: get_dirs: sysfs_path='/sys'
Jan 13 16:07:56 vp6 udev[2062]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:07:56 vp6 udev[2062]: main: called by hotplug
Jan 13 16:07:56 vp6 udev[2062]: udev_hotplug: looking at '/devices/pci0000:00/0000:00:07.2/usb4/4-2/4-2:1.0/host0/0:0:0:0'
Jan 13 16:07:56 vp6 udev[2062]: udev_hotplug: not a block or class device
Jan 13 16:07:56 vp6 udev[2050]: exec_callout: callout returned 'sda scsi/host0/bus0/target0/lun0/disc'
Jan 13 16:07:56 vp6 udev[2050]: do_callout: dev->bus='scsi' sysfs_device->bus='scsi'
Jan 13 16:07:56 vp6 udev[2050]: apply_format: substitute kernel name 'sda'
Jan 13 16:07:56 vp6 udev[2050]: apply_format: substitute bus_id '0:0:0:0'
Jan 13 16:07:56 vp6 udev[2050]: exec_callout: callout to '/home/remco/udev/scsi-devfs.sh sda 0:0:0:0 '
Jan 13 16:07:56 vp6 udev[2050]: exec_callout: callout returned 'sda scsi/host0/bus0/target0/lun0/disc'
Jan 13 16:07:56 vp6 udev[2050]: do_callout: dev->bus='scsi' sysfs_device->bus='scsi'
Jan 13 16:07:56 vp6 udev[2050]: apply_format: substitute kernel name 'sda'
Jan 13 16:07:56 vp6 udev[2050]: apply_format: substitute bus_id '0:0:0:0'
Jan 13 16:07:56 vp6 udev[2050]: exec_callout: callout to '/home/remco/udev/scsi-devfs.sh sda 0:0:0:0 '
Jan 13 16:07:56 vp6 udev[2050]: exec_callout: callout returned 'sda scsi/host0/bus0/target0/lun0/disc'
Jan 13 16:07:56 vp6 udev[2050]: do_callout: callout returned matching value 's[dgrt]*', 'sda' becomes '%2c'
Jan 13 16:07:56 vp6 udev[2050]: apply_format: substitute partial callout output 'scsi/host0/bus0/target0/lun0/disc'
Jan 13 16:07:56 vp6 udev[2050]: namedev_name_device: name, 'scsi/host0/bus0/target0/lun0/disc' is going to have owner='', group='', mode = 0600
Jan 13 16:07:56 vp6 udev[2050]: udev_add_device: name='scsi/host0/bus0/target0/lun0/disc'
Jan 13 16:07:56 vp6 udev[2050]: create_path: created '/udev/scsi'
Jan 13 16:07:56 vp6 udev[2050]: create_path: created '/udev/scsi/host0'
Jan 13 16:07:56 vp6 udev[2050]: create_path: created '/udev/scsi/host0/bus0'
Jan 13 16:07:56 vp6 udev[2050]: create_path: created '/udev/scsi/host0/bus0/target0'
Jan 13 16:07:56 vp6 udev[2050]: create_path: created '/udev/scsi/host0/bus0/target0/lun0'
Jan 13 16:07:56 vp6 udev[2050]: create_node: mknod(/udev/scsi/host0/bus0/target0/lun0/disc, 060600, 8, 0)
Jan 13 16:07:56 vp6 udev[2050]: create_node: chmod(/udev/scsi/host0/bus0/target0/lun0/disc, 060600)
Jan 13 16:07:56 vp6 udev[2069]: main: version 012
Jan 13 16:07:56 vp6 udev[2069]: get_dirs: sysfs_path='/sys'
Jan 13 16:07:56 vp6 udev[2069]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:07:56 vp6 udev[2069]: main: called by hotplug
Jan 13 16:07:56 vp6 udev[2069]: udev_hotplug: looking at '/block/sda/sda1'
Jan 13 16:07:56 vp6 udev[2069]: namedev_init_rules: reading '/home/remco/udev/udev.rules.d-compu' as rules file
Jan 13 16:07:56 vp6 udev[2069]: namedev_init_permissions: reading '/home/remco/udev/udev.permissions.d-compu' as permissions file
Jan 13 16:07:56 vp6 udev[2069]: sleep_for_dev: looking for '/sys/block/sda/sda1/dev'
Jan 13 16:07:56 vp6 udev[2069]: get_class_dev: looking at '/sys/block/sda/sda1'
Jan 13 16:07:56 vp6 udev[2069]: get_class_dev: class_dev->name='sda1'
Jan 13 16:07:56 vp6 udev[2069]: get_major_minor: dev='8:1 '
Jan 13 16:07:56 vp6 udev[2069]: get_major_minor: found major=8, minor=1
Jan 13 16:07:56 vp6 udev[2069]: get_sysfs_device: filename = /sys/block/sda/sda1
Jan 13 16:07:56 vp6 udev[2069]: get_sysfs_device: temp2 = 
Jan 13 16:07:56 vp6 udev[2069]: get_sysfs_device: looking for '/sys/block/sda/device'
Jan 13 16:07:57 vp6 udev[2012]: sleep_for_dev: looking for '/sys/class/scsi_host/host0/dev'
Jan 13 16:07:57 vp6 udev[2025]: sleep_for_dev: looking for '/sys/class/scsi_device/0:0:0:0/dev'
Jan 13 16:07:57 vp6 udev[2069]: get_sysfs_device: really is a partition
Jan 13 16:07:57 vp6 udev[2069]: get_sysfs_device: class_dev_parent->name='sda'
Jan 13 16:07:57 vp6 udev[2069]: namedev_name_device: sysfs_device->path='/sys/devices/pci0000:00/0000:00:07.2/usb4/4-2/4-2:1.0/host0/0:0:0:0'
Jan 13 16:07:57 vp6 udev[2069]: namedev_name_device: sysfs_device->bus_id='0:0:0:0'
Jan 13 16:07:57 vp6 udev[2069]: namedev_name_device: sysfs_device->bus='scsi'
Jan 13 16:07:57 vp6 udev[2069]: wait_for_device_to_initialize: looking for file 'vendor' on bus 'scsi'
Jan 13 16:07:57 vp6 udev[2069]: namedev_name_device: kernel_number='1'
Jan 13 16:07:57 vp6 udev[2069]: do_callout: dev->bus='ide' sysfs_device->bus='scsi'
Jan 13 16:07:57 vp6 udev[2069]: do_callout: dev->bus='scsi' sysfs_device->bus='scsi'
Jan 13 16:07:57 vp6 udev[2069]: apply_format: substitute kernel name 'sda1'
Jan 13 16:07:57 vp6 udev[2069]: apply_format: substitute bus_id '0:0:0:0'
Jan 13 16:07:57 vp6 udev[2069]: apply_format: substitute kernel number '1'
Jan 13 16:07:57 vp6 udev[2069]: exec_callout: callout to '/home/remco/udev/scsi-devfs.sh sda1 0:0:0:0 1'
Jan 13 16:07:57 vp6 udev[2069]: exec_callout: callout returned 'sda1 scsi/host0/bus0/target0/lun0/part1'
Jan 13 16:07:57 vp6 udev[2069]: do_callout: dev->bus='scsi' sysfs_device->bus='scsi'
Jan 13 16:07:57 vp6 udev[2069]: apply_format: substitute kernel name 'sda1'
Jan 13 16:07:57 vp6 udev[2069]: apply_format: substitute bus_id '0:0:0:0'
Jan 13 16:07:57 vp6 udev[2069]: apply_format: substitute kernel number '1'
Jan 13 16:07:57 vp6 udev[2069]: exec_callout: callout to '/home/remco/udev/scsi-devfs.sh sda1 0:0:0:0 1'
Jan 13 16:07:57 vp6 udev[2069]: exec_callout: callout returned 'sda1 scsi/host0/bus0/target0/lun0/part1'
Jan 13 16:07:57 vp6 udev[2069]: do_callout: dev->bus='scsi' sysfs_device->bus='scsi'
Jan 13 16:07:57 vp6 udev[2069]: apply_format: substitute kernel name 'sda1'
Jan 13 16:07:57 vp6 udev[2069]: apply_format: substitute bus_id '0:0:0:0'
Jan 13 16:07:57 vp6 udev[2069]: apply_format: substitute kernel number '1'
Jan 13 16:07:57 vp6 udev[2069]: exec_callout: callout to '/home/remco/udev/scsi-devfs.sh sda1 0:0:0:0 1'
Jan 13 16:07:57 vp6 udev[2069]: exec_callout: callout returned 'sda1 scsi/host0/bus0/target0/lun0/part1'
Jan 13 16:07:57 vp6 udev[2069]: do_callout: callout returned matching value 's[dgrt]*', 'sda1' becomes '%2c'
Jan 13 16:07:57 vp6 udev[2069]: apply_format: substitute partial callout output 'scsi/host0/bus0/target0/lun0/part1'
Jan 13 16:07:57 vp6 udev[2069]: namedev_name_device: name, 'scsi/host0/bus0/target0/lun0/part1' is going to have owner='', group='', mode = 0600
Jan 13 16:07:57 vp6 udev[2069]: udev_add_device: name='scsi/host0/bus0/target0/lun0/part1'
Jan 13 16:07:57 vp6 udev[2069]: create_node: mknod(/udev/scsi/host0/bus0/target0/lun0/part1, 060600, 8, 1)
Jan 13 16:07:57 vp6 udev[2069]: create_node: chmod(/udev/scsi/host0/bus0/target0/lun0/part1, 060600)
Jan 13 16:07:58 vp6 udev[2012]: sleep_for_dev: looking for '/sys/class/scsi_host/host0/dev'
Jan 13 16:07:58 vp6 udev[2025]: sleep_for_dev: looking for '/sys/class/scsi_device/0:0:0:0/dev'
Jan 13 16:07:59 vp6 udev[2012]: sleep_for_dev: looking for '/sys/class/scsi_host/host0/dev'
Jan 13 16:07:59 vp6 udev[2025]: sleep_for_dev: looking for '/sys/class/scsi_device/0:0:0:0/dev'
Jan 13 16:08:00 vp6 udev[2012]: sleep_for_dev: looking for '/sys/class/scsi_host/host0/dev'
Jan 13 16:08:00 vp6 udev[2025]: sleep_for_dev: looking for '/sys/class/scsi_device/0:0:0:0/dev'
Jan 13 16:08:01 vp6 udev[2012]: sleep_for_dev: looking for '/sys/class/scsi_host/host0/dev'
Jan 13 16:08:01 vp6 udev[2025]: sleep_for_dev: looking for '/sys/class/scsi_device/0:0:0:0/dev'
Jan 13 16:08:02 vp6 udev[2012]: sleep_for_dev: looking for '/sys/class/scsi_host/host0/dev'
Jan 13 16:08:02 vp6 udev[2025]: sleep_for_dev: looking for '/sys/class/scsi_device/0:0:0:0/dev'
Jan 13 16:08:03 vp6 udev[2012]: sleep_for_dev: looking for '/sys/class/scsi_host/host0/dev'
Jan 13 16:08:03 vp6 udev[2025]: sleep_for_dev: looking for '/sys/class/scsi_device/0:0:0:0/dev'
Jan 13 16:08:04 vp6 udev[2012]: sleep_for_dev: looking for '/sys/class/scsi_host/host0/dev'
Jan 13 16:08:04 vp6 udev[2025]: sleep_for_dev: looking for '/sys/class/scsi_device/0:0:0:0/dev'
Jan 13 16:08:05 vp6 udev[2012]: sleep_for_dev: looking for '/sys/class/scsi_host/host0/dev'
Jan 13 16:08:05 vp6 udev[2025]: sleep_for_dev: looking for '/sys/class/scsi_device/0:0:0:0/dev'



==> unplug


Jan 13 16:09:41 vp6 udev[2116]: main: version 012
Jan 13 16:09:41 vp6 udev[2116]: get_dirs: sysfs_path='/sys'
Jan 13 16:09:41 vp6 udev[2116]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:09:41 vp6 udev[2116]: main: called by hotplug
Jan 13 16:09:41 vp6 udev[2116]: udev_hotplug: looking at '/class/scsi_device/0:0:0:0'
Jan 13 16:09:41 vp6 udev[2116]: namedev_init_rules: reading '/home/remco/udev/udev.rules.d-compu' as rules file
Jan 13 16:09:41 vp6 udev[2116]: namedev_init_permissions: reading '/home/remco/udev/udev.permissions.d-compu' as permissions file
Jan 13 16:09:41 vp6 udev[2116]: udev_remove_device: '/class/scsi_device/0:0:0:0' not found in database, falling back on default name
Jan 13 16:09:41 vp6 udev[2116]: udev_remove_device: name is '0:0:0:0'
Jan 13 16:09:41 vp6 udev[2116]: delete_node: unlinking node '/udev/0:0:0:0'
Jan 13 16:09:41 vp6 udev[2116]: delete_node: unlink(/udev/0:0:0:0) failed with error 'No such file or directory'
Jan 13 16:09:41 vp6 udev[2139]: main: version 012
Jan 13 16:09:41 vp6 udev[2139]: get_dirs: sysfs_path='/sys'
Jan 13 16:09:41 vp6 udev[2139]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:09:41 vp6 udev[2139]: main: called by hotplug
Jan 13 16:09:41 vp6 udev[2139]: udev_hotplug: looking at '/devices/pci0000:00/0000:00:07.2/usb4/4-2/4-2:1.0/host0/0:0:0:0'
Jan 13 16:09:41 vp6 udev[2139]: udev_hotplug: not a block or class device
Jan 13 16:09:41 vp6 udev[2142]: main: version 012
Jan 13 16:09:41 vp6 udev[2142]: get_dirs: sysfs_path='/sys'
Jan 13 16:09:41 vp6 udev[2142]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:09:41 vp6 udev[2142]: main: called by hotplug
Jan 13 16:09:41 vp6 udev[2157]: main: version 012
Jan 13 16:09:41 vp6 udev[2158]: main: version 012
Jan 13 16:09:41 vp6 udev[2142]: udev_hotplug: looking at '/block/sda'
Jan 13 16:09:41 vp6 udev[2157]: get_dirs: sysfs_path='/sys'
Jan 13 16:09:41 vp6 udev[2142]: namedev_init_rules: reading '/home/remco/udev/udev.rules.d-compu' as rules file
Jan 13 16:09:41 vp6 udev[2158]: get_dirs: sysfs_path='/sys'
Jan 13 16:09:41 vp6 udev[2157]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:09:41 vp6 udev[2142]: namedev_init_permissions: reading '/home/remco/udev/udev.permissions.d-compu' as permissions file
Jan 13 16:09:41 vp6 udev[2158]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:09:41 vp6 udev[2157]: main: called by hotplug
Jan 13 16:09:41 vp6 udev[2142]: udev_remove_device: name is 'scsi/host0/bus0/target0/lun0/disc'
Jan 13 16:09:41 vp6 udev[2157]: udev_hotplug: looking at '/block/sda/sda1'
Jan 13 16:09:41 vp6 udev[2157]: namedev_init_rules: reading '/home/remco/udev/udev.rules.d-compu' as rules file
Jan 13 16:09:41 vp6 udev[2142]: delete_node: unlinking node '/udev/scsi/host0/bus0/target0/lun0/disc'
Jan 13 16:09:41 vp6 udev[2157]: namedev_init_permissions: reading '/home/remco/udev/udev.permissions.d-compu' as permissions file
Jan 13 16:09:41 vp6 udev[2157]: udev_remove_device: name is 'scsi/host0/bus0/target0/lun0/part1'
Jan 13 16:09:41 vp6 udev[2157]: delete_node: unlinking node '/udev/scsi/host0/bus0/target0/lun0/part1'
Jan 13 16:09:41 vp6 udev[2157]: delete_path: removed '/udev/scsi/host0/bus0/target0/lun0'
Jan 13 16:09:41 vp6 udev[2157]: delete_path: removed '/udev/scsi/host0/bus0/target0'
Jan 13 16:09:41 vp6 udev[2157]: delete_path: removed '/udev/scsi/host0/bus0'
Jan 13 16:09:41 vp6 udev[2157]: delete_path: removed '/udev/scsi/host0'
Jan 13 16:09:41 vp6 udev[2157]: delete_path: removed '/udev/scsi'
Jan 13 16:09:41 vp6 udev[2158]: main: called by hotplug
Jan 13 16:09:41 vp6 udev[2158]: udev_hotplug: looking at '/class/scsi_host/host0'
Jan 13 16:09:41 vp6 udev[2158]: namedev_init_rules: reading '/home/remco/udev/udev.rules.d-compu' as rules file
Jan 13 16:09:41 vp6 udev[2158]: namedev_init_permissions: reading '/home/remco/udev/udev.permissions.d-compu' as permissions file
Jan 13 16:09:41 vp6 udev[2158]: udev_remove_device: '/class/scsi_host/host0' not found in database, falling back on default name
Jan 13 16:09:41 vp6 udev[2158]: udev_remove_device: name is 'host0'
Jan 13 16:09:41 vp6 udev[2158]: delete_node: unlinking node '/udev/host0'
Jan 13 16:09:41 vp6 udev[2158]: delete_node: unlink(/udev/host0) failed with error 'No such file or directory'
Jan 13 16:09:41 vp6 udev[2179]: main: version 012
Jan 13 16:09:41 vp6 udev[2179]: get_dirs: sysfs_path='/sys'
Jan 13 16:09:41 vp6 udev[2179]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:09:41 vp6 udev[2179]: main: called by hotplug
Jan 13 16:09:41 vp6 udev[2179]: udev_hotplug: looking at '/devices/pci0000:00/0000:00:07.2/usb4/4-2/4-2:1.0'
Jan 13 16:09:41 vp6 udev[2179]: udev_hotplug: not a block or class device
Jan 13 16:09:41 vp6 udev[2182]: main: version 012
Jan 13 16:09:41 vp6 udev[2182]: get_dirs: sysfs_path='/sys'
Jan 13 16:09:41 vp6 udev[2182]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:09:41 vp6 udev[2182]: main: called by hotplug
Jan 13 16:09:41 vp6 udev[2182]: udev_hotplug: looking at '/devices/pci0000:00/0000:00:07.2/usb4/4-2'
Jan 13 16:09:41 vp6 udev[2182]: udev_hotplug: not a block or class device



==> replug


Jan 13 16:10:39 vp6 udev[2219]: main: version 012
Jan 13 16:10:39 vp6 udev[2219]: get_dirs: sysfs_path='/sys'
Jan 13 16:10:39 vp6 udev[2219]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:10:39 vp6 udev[2219]: main: called by hotplug
Jan 13 16:10:39 vp6 udev[2219]: udev_hotplug: looking at '/devices/pci0000:00/0000:00:07.2/usb4/4-2'
Jan 13 16:10:39 vp6 udev[2219]: udev_hotplug: not a block or class device
Jan 13 16:10:39 vp6 udev[2237]: main: version 012
Jan 13 16:10:39 vp6 udev[2237]: get_dirs: sysfs_path='/sys'
Jan 13 16:10:39 vp6 udev[2237]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:10:39 vp6 udev[2237]: main: called by hotplug
Jan 13 16:10:39 vp6 udev[2237]: udev_hotplug: looking at '/class/scsi_host/host1'
Jan 13 16:10:39 vp6 udev[2237]: namedev_init_rules: reading '/home/remco/udev/udev.rules.d-compu' as rules file
Jan 13 16:10:39 vp6 udev[2237]: namedev_init_permissions: reading '/home/remco/udev/udev.permissions.d-compu' as permissions file
Jan 13 16:10:39 vp6 udev[2237]: sleep_for_dev: looking for '/sys/class/scsi_host/host1/dev'
Jan 13 16:10:39 vp6 udev[2250]: main: version 012
Jan 13 16:10:39 vp6 udev[2250]: get_dirs: sysfs_path='/sys'
Jan 13 16:10:39 vp6 udev[2250]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:10:39 vp6 udev[2250]: main: called by hotplug
Jan 13 16:10:39 vp6 udev[2250]: udev_hotplug: looking at '/devices/pci0000:00/0000:00:07.2/usb4/4-2/4-2:1.0/host1/1:0:0:0'
Jan 13 16:10:39 vp6 udev[2250]: udev_hotplug: not a block or class device
Jan 13 16:10:40 vp6 udev[2265]: main: version 012
Jan 13 16:10:40 vp6 udev[2265]: get_dirs: sysfs_path='/sys'
Jan 13 16:10:40 vp6 udev[2265]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:10:40 vp6 udev[2265]: main: called by hotplug
Jan 13 16:10:40 vp6 udev[2265]: udev_hotplug: looking at '/block/sda'
Jan 13 16:10:40 vp6 udev[2265]: namedev_init_rules: reading '/home/remco/udev/udev.rules.d-compu' as rules file
Jan 13 16:10:40 vp6 udev[2265]: namedev_init_permissions: reading '/home/remco/udev/udev.permissions.d-compu' as permissions file
Jan 13 16:10:40 vp6 udev[2265]: sleep_for_dev: looking for '/sys/block/sda/dev'
Jan 13 16:10:40 vp6 udev[2265]: get_class_dev: looking at '/sys/block/sda'
Jan 13 16:10:40 vp6 udev[2265]: get_class_dev: class_dev->name='sda'
Jan 13 16:10:40 vp6 udev[2265]: get_major_minor: dev='8:0 '
Jan 13 16:10:40 vp6 udev[2265]: get_major_minor: found major=8, minor=0
Jan 13 16:10:40 vp6 udev[2265]: get_sysfs_device: filename = /sys/block/sda
Jan 13 16:10:40 vp6 udev[2265]: get_sysfs_device: looking for '/sys/block/sda/device'
Jan 13 16:10:40 vp6 udev[2265]: sysfs_path_is_link: stat() failed 
Jan 13 16:10:40 vp6 last message repeated 6 times
Jan 13 16:10:40 vp6 udev[2265]: namedev_name_device: sysfs_device->path='/sys/devices/pci0000:00/0000:00:07.2/usb4/4-2/4-2:1.0/host1/1:0:0:0'
Jan 13 16:10:40 vp6 udev[2265]: namedev_name_device: sysfs_device->bus_id='1:0:0:0'
Jan 13 16:10:40 vp6 udev[2265]: namedev_name_device: sysfs_device->bus='unknown'
Jan 13 16:10:40 vp6 udev[2265]: wait_for_device_to_initialize: Did not find bus type 'unknown' on list of bus_id_files, contact greg@kroah.com
Jan 13 16:10:40 vp6 udev[2265]: namedev_name_device: kernel_number=''
Jan 13 16:10:40 vp6 udev[2265]: do_callout: dev->bus='ide' sysfs_device->bus='unknown'
Jan 13 16:10:40 vp6 udev[2265]: do_callout: dev->bus='scsi' sysfs_device->bus='unknown'
Jan 13 16:10:40 vp6 last message repeated 2 times
Jan 13 16:10:40 vp6 udev[2265]: do_replace: compare name 'dio*' with 'sda'
Jan 13 16:10:40 vp6 udev[2265]: do_replace: compare name 'igorplug*' with 'sda'
Jan 13 16:10:40 vp6 udev[2265]: do_replace: compare name 'ircomm*' with 'sda'
Jan 13 16:10:40 vp6 udev[2265]: do_replace: compare name 'md[0-9]*' with 'sda'
Jan 13 16:10:40 vp6 udev[2265]: do_replace: compare name 'ttyS[0-9]*' with 'sda'
Jan 13 16:10:40 vp6 udev[2265]: do_replace: compare name 'ttyUSB[0-9]*' with 'sda'
Jan 13 16:10:40 vp6 udev[2265]: do_replace: compare name 'tty[0-9]*' with 'sda'
Jan 13 16:10:40 vp6 udev[2265]: do_replace: compare name 'vcs[0-9]*' with 'sda'
Jan 13 16:10:40 vp6 udev[2265]: do_replace: compare name 'vcsa[0-9]*' with 'sda'
Jan 13 16:10:40 vp6 udev[2265]: do_replace: compare name 'video[0-9]*' with 'sda'
Jan 13 16:10:40 vp6 udev[2265]: do_replace: compare name 'radio[0-9]*' with 'sda'
Jan 13 16:10:40 vp6 udev[2265]: do_replace: compare name 'vbi[0-9]*' with 'sda'
Jan 13 16:10:40 vp6 udev[2265]: do_replace: compare name 'vtx[0-9]*' with 'sda'
Jan 13 16:10:40 vp6 udev[2265]: namedev_name_device: name, 'sda' is going to have owner='', group='', mode = 0600
Jan 13 16:10:40 vp6 udev[2265]: udev_add_device: name='sda'
Jan 13 16:10:40 vp6 udev[2265]: create_node: mknod(/udev/sda, 060600, 8, 0)
Jan 13 16:10:40 vp6 udev[2265]: create_node: chmod(/udev/sda, 060600)
Jan 13 16:10:40 vp6 modprobe: FATAL: Module usb_storage already in kernel. 
Jan 13 16:10:40 vp6 udev[2276]: main: version 012
Jan 13 16:10:40 vp6 udev[2276]: get_dirs: sysfs_path='/sys'
Jan 13 16:10:40 vp6 udev[2276]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:10:40 vp6 udev[2276]: main: called by hotplug
Jan 13 16:10:40 vp6 udev[2276]: udev_hotplug: looking at '/devices/pci0000:00/0000:00:07.2/usb4/4-2/4-2:1.0'
Jan 13 16:10:40 vp6 udev[2276]: udev_hotplug: not a block or class device
Jan 13 16:10:40 vp6 udev[2293]: main: version 012
Jan 13 16:10:40 vp6 udev[2293]: get_dirs: sysfs_path='/sys'
Jan 13 16:10:40 vp6 udev[2293]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:10:40 vp6 udev[2293]: main: called by hotplug
Jan 13 16:10:40 vp6 udev[2293]: udev_hotplug: looking at '/block/sda/sda1'
Jan 13 16:10:40 vp6 udev[2293]: namedev_init_rules: reading '/home/remco/udev/udev.rules.d-compu' as rules file
Jan 13 16:10:40 vp6 udev[2293]: namedev_init_permissions: reading '/home/remco/udev/udev.permissions.d-compu' as permissions file
Jan 13 16:10:40 vp6 udev[2293]: sleep_for_dev: looking for '/sys/block/sda/sda1/dev'
Jan 13 16:10:40 vp6 udev[2293]: get_class_dev: looking at '/sys/block/sda/sda1'
Jan 13 16:10:40 vp6 udev[2293]: get_class_dev: class_dev->name='sda1'
Jan 13 16:10:40 vp6 udev[2293]: get_major_minor: dev='8:1 '
Jan 13 16:10:40 vp6 udev[2293]: get_major_minor: found major=8, minor=1
Jan 13 16:10:40 vp6 udev[2293]: get_sysfs_device: filename = /sys/block/sda/sda1
Jan 13 16:10:40 vp6 udev[2293]: get_sysfs_device: temp2 = 
Jan 13 16:10:40 vp6 udev[2293]: get_sysfs_device: looking for '/sys/block/sda/device'
Jan 13 16:10:40 vp6 udev[2296]: main: version 012
Jan 13 16:10:40 vp6 udev[2296]: get_dirs: sysfs_path='/sys'
Jan 13 16:10:40 vp6 udev[2296]: parse_config_file: reading '/etc/udev/udev.conf' as config file
Jan 13 16:10:40 vp6 udev[2296]: main: called by hotplug
Jan 13 16:10:40 vp6 udev[2296]: udev_hotplug: looking at '/class/scsi_device/1:0:0:0'
Jan 13 16:10:40 vp6 udev[2296]: namedev_init_rules: reading '/home/remco/udev/udev.rules.d-compu' as rules file
Jan 13 16:10:40 vp6 udev[2296]: namedev_init_permissions: reading '/home/remco/udev/udev.permissions.d-compu' as permissions file
Jan 13 16:10:40 vp6 udev[2296]: sleep_for_dev: looking for '/sys/class/scsi_device/1:0:0:0/dev'
Jan 13 16:10:40 vp6 udev[2237]: sleep_for_dev: looking for '/sys/class/scsi_host/host1/dev'
Jan 13 16:10:41 vp6 udev[2293]: get_sysfs_device: really is a partition
Jan 13 16:10:41 vp6 udev[2293]: get_sysfs_device: class_dev_parent->name='sda'
Jan 13 16:10:41 vp6 udev[2293]: namedev_name_device: sysfs_device->path='/sys/devices/pci0000:00/0000:00:07.2/usb4/4-2/4-2:1.0/host1/1:0:0:0'
Jan 13 16:10:41 vp6 udev[2293]: namedev_name_device: sysfs_device->bus_id='1:0:0:0'
Jan 13 16:10:41 vp6 udev[2293]: namedev_name_device: sysfs_device->bus='scsi'
Jan 13 16:10:41 vp6 udev[2293]: wait_for_device_to_initialize: looking for file 'vendor' on bus 'scsi'
Jan 13 16:10:41 vp6 udev[2293]: namedev_name_device: kernel_number='1'
Jan 13 16:10:41 vp6 udev[2293]: do_callout: dev->bus='ide' sysfs_device->bus='scsi'
Jan 13 16:10:41 vp6 udev[2293]: do_callout: dev->bus='scsi' sysfs_device->bus='scsi'
Jan 13 16:10:41 vp6 udev[2293]: apply_format: substitute kernel name 'sda1'
Jan 13 16:10:41 vp6 udev[2293]: apply_format: substitute bus_id '1:0:0:0'
Jan 13 16:10:41 vp6 udev[2293]: apply_format: substitute kernel number '1'
Jan 13 16:10:41 vp6 udev[2293]: exec_callout: callout to '/home/remco/udev/scsi-devfs.sh sda1 1:0:0:0 1'
Jan 13 16:10:41 vp6 udev[2296]: sleep_for_dev: looking for '/sys/class/scsi_device/1:0:0:0/dev'
Jan 13 16:10:41 vp6 udev[2293]: exec_callout: callout returned 'sda1 scsi/host1/bus0/target0/lun0/part1'
Jan 13 16:10:41 vp6 udev[2293]: do_callout: dev->bus='scsi' sysfs_device->bus='scsi'
Jan 13 16:10:41 vp6 udev[2293]: apply_format: substitute kernel name 'sda1'
Jan 13 16:10:41 vp6 udev[2293]: apply_format: substitute bus_id '1:0:0:0'
Jan 13 16:10:41 vp6 udev[2293]: apply_format: substitute kernel number '1'
Jan 13 16:10:41 vp6 udev[2293]: exec_callout: callout to '/home/remco/udev/scsi-devfs.sh sda1 1:0:0:0 1'
Jan 13 16:10:41 vp6 udev[2293]: exec_callout: callout returned 'sda1 scsi/host1/bus0/target0/lun0/part1'
Jan 13 16:10:41 vp6 udev[2293]: do_callout: dev->bus='scsi' sysfs_device->bus='scsi'
Jan 13 16:10:41 vp6 udev[2293]: apply_format: substitute kernel name 'sda1'
Jan 13 16:10:41 vp6 udev[2293]: apply_format: substitute bus_id '1:0:0:0'
Jan 13 16:10:41 vp6 udev[2293]: apply_format: substitute kernel number '1'
Jan 13 16:10:41 vp6 udev[2293]: exec_callout: callout to '/home/remco/udev/scsi-devfs.sh sda1 1:0:0:0 1'
Jan 13 16:10:41 vp6 udev[2293]: exec_callout: callout returned 'sda1 scsi/host1/bus0/target0/lun0/part1'
Jan 13 16:10:41 vp6 udev[2293]: do_callout: callout returned matching value 's[dgrt]*', 'sda1' becomes '%2c'
Jan 13 16:10:41 vp6 udev[2293]: apply_format: substitute partial callout output 'scsi/host1/bus0/target0/lun0/part1'
Jan 13 16:10:41 vp6 udev[2293]: namedev_name_device: name, 'scsi/host1/bus0/target0/lun0/part1' is going to have owner='', group='', mode = 0600
Jan 13 16:10:41 vp6 udev[2293]: udev_add_device: name='scsi/host1/bus0/target0/lun0/part1'
Jan 13 16:10:41 vp6 udev[2293]: create_path: created '/udev/scsi'
Jan 13 16:10:41 vp6 udev[2293]: create_path: created '/udev/scsi/host1'
Jan 13 16:10:41 vp6 udev[2293]: create_path: created '/udev/scsi/host1/bus0'
Jan 13 16:10:41 vp6 udev[2293]: create_path: created '/udev/scsi/host1/bus0/target0'
Jan 13 16:10:41 vp6 udev[2293]: create_path: created '/udev/scsi/host1/bus0/target0/lun0'
Jan 13 16:10:41 vp6 udev[2293]: create_node: mknod(/udev/scsi/host1/bus0/target0/lun0/part1, 060600, 8, 1)
Jan 13 16:10:41 vp6 udev[2293]: create_node: chmod(/udev/scsi/host1/bus0/target0/lun0/part1, 060600)
Jan 13 16:10:41 vp6 udev[2237]: sleep_for_dev: looking for '/sys/class/scsi_host/host1/dev'
Jan 13 16:10:42 vp6 udev[2296]: sleep_for_dev: looking for '/sys/class/scsi_device/1:0:0:0/dev'
Jan 13 16:10:42 vp6 udev[2237]: sleep_for_dev: looking for '/sys/class/scsi_host/host1/dev'
Jan 13 16:10:43 vp6 udev[2296]: sleep_for_dev: looking for '/sys/class/scsi_device/1:0:0:0/dev'
Jan 13 16:10:43 vp6 udev[2237]: sleep_for_dev: looking for '/sys/class/scsi_host/host1/dev'
Jan 13 16:10:44 vp6 udev[2296]: sleep_for_dev: looking for '/sys/class/scsi_device/1:0:0:0/dev'
Jan 13 16:10:44 vp6 udev[2237]: sleep_for_dev: looking for '/sys/class/scsi_host/host1/dev'
Jan 13 16:10:45 vp6 udev[2296]: sleep_for_dev: looking for '/sys/class/scsi_device/1:0:0:0/dev'
Jan 13 16:10:45 vp6 udev[2237]: sleep_for_dev: looking for '/sys/class/scsi_host/host1/dev'
Jan 13 16:10:46 vp6 udev[2296]: sleep_for_dev: looking for '/sys/class/scsi_device/1:0:0:0/dev'
Jan 13 16:10:46 vp6 udev[2237]: sleep_for_dev: looking for '/sys/class/scsi_host/host1/dev'
Jan 13 16:10:47 vp6 udev[2296]: sleep_for_dev: looking for '/sys/class/scsi_device/1:0:0:0/dev'
Jan 13 16:10:47 vp6 udev[2237]: sleep_for_dev: looking for '/sys/class/scsi_host/host1/dev'
Jan 13 16:10:48 vp6 udev[2296]: sleep_for_dev: looking for '/sys/class/scsi_device/1:0:0:0/dev'
Jan 13 16:10:48 vp6 udev[2237]: sleep_for_dev: looking for '/sys/class/scsi_host/host1/dev'
Jan 13 16:10:49 vp6 udev[2296]: sleep_for_dev: looking for '/sys/class/scsi_device/1:0:0:0/dev'



==> callout script "scsi-devfs.sh"


#!/bin/sh

# udev CALLOUT script
# return devfs-like-names for scsi-devices
# CALLOUT, BUS="scsi", PROGRAM="/etc/udev/scsi-devfs.sh %k %b %n", ID="nst*", NAME="%1c", SYMLINK="%2c"
# CALLOUT, BUS="scsi", PROGRAM="/etc/udev/scsi-devfs.sh %k %b %n", ID="scd*", NAME="%1c", SYMLINK="%2c"
# CALLOUT, BUS="scsi", PROGRAM="/etc/udev/scsi-devfs.sh %k %b %n", ID="s[dgrt]*", NAME="%1c", SYMLINK="%2c"

SCSI_ID=$2	# format is straight forward "n1:n2:n3:n4" => "HOST:BUS:TARGET:LUN"
# Get host id (n1)
HOST=${SCSI_ID%%\:*}; 
# Shift to the next id (n2) and discard n1
SCSI_ID=${SCSI_ID#*\:}; 
# Get the bus id
BUS=${SCSI_ID%%\:*}; 
# Shift to the next id (n3) and discard n2
SCSI_ID=${SCSI_ID#*\:}; 
# Get target id
TARGET=${SCSI_ID%%\:*}; 
# Shift to the next id (n4) and discard n3
SCSI_ID=${SCSI_ID#*\:}; 
# Get lun id
LUN=$SCSI_ID; 

# Determine medium name and type 
# Kernel device name/type combinations were extracted from "The Linux 2.4 SCSI subsystem HOWTO"
if [ -z "$3" ]; then
	case "$1" in
	scd* | sr*)
		# CDROM
		DEVICE=scsi/host$HOST/bus$BUS/target$TARGET/lun$LUN/cd
		;;
	sd*)
		# Hard disc
		DEVICE=scsi/host$HOST/bus$BUS/target$TARGET/lun$LUN/disc
		;;
	nst*)
		# Tape without rewind
		DEVICE=scsi/host$HOST/bus$BUS/target$TARGET/lun$LUN/mtan
		;;
	st*)
		# Tape with rewind
		DEVICE=scsi/host$HOST/bus$BUS/target$TARGET/lun$LUN/mt
		;;
	sg* | *)
		# Generic / all left-overs
		DEVICE=scsi/host$HOST/bus$BUS/target$TARGET/lun$LUN/generic
		;;
	esac
else
	# Partitions
	DEVICE=scsi/host$HOST/bus$BUS/target$TARGET/lun$LUN/part$3
fi
# Return DEVICE to udev
echo $1 $DEVICE

exit 0



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
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

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

* Re: udev tells me to contact greg@kroah.com (known problem ?)
  2004-01-08 16:59 udev tells me to contact greg@kroah.com (known problem ?) Remco
  2004-01-09 20:13 ` Greg KH
  2004-01-13 16:06 ` Remco
@ 2004-01-28 18:57 ` Greg KH
  2004-01-29  8:59 ` Remco
  3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2004-01-28 18:57 UTC (permalink / raw)
  To: linux-hotplug

On Tue, Jan 13, 2004 at 05:06:40PM +0100, Remco wrote:
> I think I have to rephrase my previous post a little.
> I'll try to summarise the things I see first, more information can be
> found in "attached" logs.

Oops, forgot to respond to this.

Your problem should be fixed in the 015 release of udev.  If you still
have problems, please let us know.

thanks,

greg k-h


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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

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

* Re: udev tells me to contact greg@kroah.com (known problem ?)
  2004-01-08 16:59 udev tells me to contact greg@kroah.com (known problem ?) Remco
                   ` (2 preceding siblings ...)
  2004-01-28 18:57 ` Greg KH
@ 2004-01-29  8:59 ` Remco
  3 siblings, 0 replies; 5+ messages in thread
From: Remco @ 2004-01-29  8:59 UTC (permalink / raw)
  To: linux-hotplug

On Wednesday 28 January 2004 19:57, you wrote:
> On Tue, Jan 13, 2004 at 05:06:40PM +0100, Remco wrote:
> > I think I have to rephrase my previous post a little.
> > I'll try to summarise the things I see first, more information can be
> > found in "attached" logs.
>
> Oops, forgot to respond to this.
>
> Your problem should be fixed in the 015 release of udev.  If you still
> have problems, please let us know.
>
> thanks,
>
> greg k-h

Running 014 at the moment, I think the problem was already solved in this 
release. Anyway, udev seems to behave well in 014.

Thanks for your response



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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

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

end of thread, other threads:[~2004-01-29  8:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-08 16:59 udev tells me to contact greg@kroah.com (known problem ?) Remco
2004-01-09 20:13 ` Greg KH
2004-01-13 16:06 ` Remco
2004-01-28 18:57 ` Greg KH
2004-01-29  8:59 ` Remco

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).