From: Peter Rajnoha <prajnoha@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH] Disable udev rules on change event with DISK_RO=1
Date: Mon, 07 Dec 2009 13:24:08 +0100 [thread overview]
Message-ID: <4B1CF3E8.7010509@redhat.com> (raw)
In-Reply-To: <4B152425.4090506@redhat.com>
On 12/01/2009 03:11 PM, Peter Rajnoha wrote:
> We need to detect this and disable the rule application so the
> meaning of this change event is not interchanged with the regular
> change event used while resuming/renaming DM devices.
Just for the record so we know about this...
Disabling the rules is not quite without any consequences. When we skip the rules for
symlink creation then udevd removes existing ones by default. That's very similar to a
problem with running "udevadm trigger" which generates ADD events and we suppress
the rules for this event unless ENV{STARTUP}=1 is defined.
But for now, we're OK in the situation with DISK_RO change event - this one is always
followed by regular change event (do_resume fn in kernel - we call set_disk_ro which
generates this DISK_RO change event and then we generate our own regular change event
afterwards). So we always have our nodes/symlinks in place as a result of such action.
If such events (events not originated in device-mapper code) were used anytime then
we would have a problem and that would need a fix from udev side as well.
(I think udev should not remove those nodes/events even when the rules are skipped on
add/change events - it should remove them on regular remove events only. That's exactly
what I tried to ask udev people about two months ago - whether this default behaviour
could be changed but I did not get any clear answer till now :) )
Peter
prev parent reply other threads:[~2009-12-07 12:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-01 14:11 [PATCH] Disable udev rules on change event with DISK_RO=1 Peter Rajnoha
2009-12-03 0:58 ` Alasdair G Kergon
2009-12-07 12:24 ` Peter Rajnoha [this message]
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=4B1CF3E8.7010509@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.