From: "Surekha.PC" <surekhap@cisco.com>
To: linux-hotplug@vger.kernel.org
Subject: RE: udev naming for scsi disk partitions
Date: Fri, 07 Nov 2003 06:35:29 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-106818706820411@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-106792310406865@msgid-missing>
Please find my comments interspersed below with "=>" mark.
> In sysfs the scsi device path looks as shown below.
>
> The sysfs's "block" device path lists the block devices detected on
> the system. Here "sdc" is the iSCSI device and "sdc1" and "sdc2" are
> listed as 2 partitions on the iSCSI disk.
>
> The device field below is pointing to the iSCSI host/bus/tgt/lun path.
>
> #ls -l /sys/block/sdc
> total 0
> -r--r--r-- 1 root root 4096 Nov 7 08:25 dev
> lrwxrwxrwx 1 root root 35 Nov 7 08:25 device ->
> ../../devices/legacy/host6/6:0:69:0
Hm, yeah that rule should have worked. Mind enabling debugging in
namedev.c by uncommenting the line: //#define DEBUG_PARSER
at the top of the file? If you rebuild udev, and then send me the
syslog debug messages when you plug the device in, I'd really apreciate
it.
=> I have enabled the debug as mentioned above. Could you pls tell me
where the messages are logged, "/var/log/messages" file doesn't have any
?
> I think the sysfs file "/sys/block/sdc/sdc1" should be ideal to use
> for setting the LABEL rule as you have mentioned.
Hm, if it's always sdc1, why not just use a simple REPLACE rule?
Something like the following rules should work for you:
REPLACE, KERNEL="sdc1", NAME="c6b0t69l01"
REPLACE, KERNEL="sdc2", NAME="c6b0t69l02"
Will that work?
=> But it need not be sdc1 always, a disk can have any number of
partitions, then the config file will need to be changed always :(
Thanks,
surekha
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
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
next prev parent reply other threads:[~2003-11-07 6:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-04 5:27 udev naming for scsi disk partitions Surekha.PC
2003-11-04 7:13 ` Surekha.PC
2003-11-06 23:53 ` Greg KH
2003-11-07 4:49 ` Surekha.PC
2003-11-07 6:07 ` Greg KH
2003-11-07 6:35 ` Surekha.PC [this message]
2003-11-07 19:32 ` Greg KH
2003-11-10 9:59 ` Surekha.PC
2003-11-10 10:00 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-106818706820411@msgid-missing \
--to=surekhap@cisco.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).