All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Rajnoha <prajnoha@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH] Udev integration: udev rules 2/3
Date: Mon, 20 Apr 2009 12:07:25 +0200	[thread overview]
Message-ID: <49EC495D.5030702@redhat.com> (raw)
In-Reply-To: <20090415181253.GK7843@agk.fab.redhat.com>

On 04/15/2009 08:12 PM, Alasdair G Kergon wrote:
> On Wed, Apr 08, 2009 at 02:35:35PM +0200, Peter Rajnoha wrote:
>> # udev rules for LVM 
>> # This will create LVM symlinks in /dev directory.
>  
> Again, describe in more detail what the script is doing.
> Needs (C) notices too.

ok, I'll add that...

>> SUBSYSTEM!="block", GOTO="lvm_end"
>> KERNEL!="dm-[0-9]*", GOTO="lvm_end"
>> ACTION!="change|remove", GOTO="lvm_end"
>>
>> ACTION=="change", IMPORT{PROGRAM}="/sbin/dmsetup info -j %M -m %m -c --nameprefixes --noheadings --rows -o name,uuid,subsystem,vg_name,lv_name,lv_layer"
> 
> If we already have the name (e.g. from sysfs), I think we talked about adding
> a 'split up this name' command to dmsetup which does not perform any ioctls.
> 
>> ENV{DM_UUID}!="LVM-?*", GOTO="lvm_end"
> 
> Seems to be some repetition here.  Does udev support including files inline
> within other files?

Unfortunately not (or I haven't found it documented). The only thing we can do
about including files is IMPORT{FILE} rule, but this is restricted to KEY=VALUE
pairs only...

Peter



  reply	other threads:[~2009-04-20 10:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-08 12:35 [PATCH] Udev integration: udev rules 2/3 Peter Rajnoha
2009-04-15 18:12 ` Alasdair G Kergon
2009-04-20 10:07   ` Peter Rajnoha [this message]
2009-04-20 10:15   ` Peter Rajnoha

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=49EC495D.5030702@redhat.com \
    --to=prajnoha@redhat.com \
    --cc=lvm-devel@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.