linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Martin Hicks <mort@wildopensource.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev.rules.devfs patch
Date: Thu, 15 Jan 2004 15:00:55 +0000	[thread overview]
Message-ID: <20040115150055.GW27591@localhost> (raw)
In-Reply-To: <200401151523.58821.john-hotplug@fjellstad.org>



On Thu, Jan 15, 2004 at 03:49:10PM +0100, Kay Sievers wrote:
> On Thu, Jan 15, 2004 at 03:23:55PM +0100, John L. Fjellstad wrote:
> Content-Description: clearsigned data
> > Here is a patch for udev.rules.devfs to make it closer to devfs layout.
> > Basically, added discs/disc? directories, and the cdrom directory
> 
> > -BUS="ide", id="1.1", NAME="ide/host0/bus1/target1/lun0/%D"
> > +BUS="ide", id="0.0", NAME="ide/host0/bus0/target0/lun0/%D", SYMLINK="discs/disc0/%D"
> 
> How do you know, that the disc number you use is free?
> Did you try the ide-devfs.sh? We take care of it with the script.
> 
> Greg, I would be happy to remove the ugly %D at all.
> It's unable to handle cdroms, an the 'dis[ck]'/'partition' thing is easy done by two rules.
> Then the dis[ck] decision is also up to the user :)

Please don't get rid of %D.  I just started using it.  The problem that
I'm dealing with is that the directory where the devfs names are created
are unpredictable so my callout returns the directory that I'm to create
the devfs names in and I do something like:

BUS="scsi", CALLOUT="blah", ID="*", NAME="%c/%D", SYMLINK="%c/theAlias"

thanks
mh

-- 
Martin Hicks                Wild Open Source Inc.
mort@wildopensource.com     613-266-2296


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

  parent reply	other threads:[~2004-01-15 15:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-15 14:23 udev.rules.devfs patch John L. Fjellstad
2004-01-15 14:49 ` Kay Sievers
2004-01-15 15:00 ` Martin Hicks [this message]
2004-01-15 15:07 ` Kay Sievers
2004-01-15 21:43 ` 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=20040115150055.GW27591@localhost \
    --to=mort@wildopensource.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).