Re: How to add/drop SCSI drives from within the driver?

From: 'Patrick Mansfield' (patmans_at_us.ibm.com)
Date: 01/27/05

  • Next message: cranium2003: "dmesg command output"
    Date:	Wed, 26 Jan 2005 23:05:50 -0800
    To: "Mukker, Atul" <Atulm@lsil.com>
    
    

    [moving to hotplug list ...]

    On Wed, Jan 26, 2005 at 06:23:16PM -0500, Mukker, Atul wrote:

    > Or more likely, by placing our agent in /etc/dev.d directory. Unfortunately,
    > there seems be not a consensus here as well. On system has "default" and
    > "net" directories and other has "block", "input", "net", "tty"?

    Those are all kernel subsystem names, and as such all are supported
    directory structures for udev, the part that is distro specific is that
    they supply different scripts.

    There won't be any "scsi" devices since they have no dev (the upper level
    drivers have them); sg shows up as scsi_generic. sd is block.

    You will still have to figure out via sysfs if you want to run your agent
    even for subsystem block (i.e. figure out the host/driver type, I assume
    you don't want to run it on hd or standard scsi disk drives).

    I don't know why this is an issue for "new" devices, this should be a
    problem for you when they first show up; existing and new devs should be
    handled the same way.

    -- Patrick Mansfield
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: cranium2003: "dmesg command output"