]> sourceware.org Git - lvm2.git/commit
udev: proper reset of DM_UDEV_DISABLE_OTHER_RULES_FLAG and honour this flag in lvmeta...
authorPeter Rajnoha <prajnoha@redhat.com>
Tue, 29 Oct 2013 12:15:45 +0000 (13:15 +0100)
committerPeter Rajnoha <prajnoha@redhat.com>
Tue, 29 Oct 2013 12:31:00 +0000 (13:31 +0100)
commit9d0621267d644d21d3c1ad3a5268af0ef3d7eb9a
tree74b416de581cf5d5ebd8fe1249d19c46c045772b
parentf3a6f7073b4ca71dcc0360daa66a845490b76893
udev: proper reset of DM_UDEV_DISABLE_OTHER_RULES_FLAG and honour this flag in lvmetad rules

Reset the DM_UDEV_OTHER_RULES_FLAG to original value right at the
time of dropping the DM_NOSCAN flag.

When DM_NOSCAN is set, the DM_UDEV_DISABLE_OTHER_RULES_FLAG is also set
to avoid udev processing in "other/foreign" rules. If the noscan flag
is dropped, the DM_UDEV_DISABLE_OTHER_RULES_FLAG should be reset to
its original value.

Also, lvmetad should respect the DM_UDEV_DISABLE_OTHER_RULES_FLAG
because if the volume is set with this flag it:
  - definitely is not a top-level device (so makes no sense for lvmetad scanning)
  - is not supposed to be scanned further (for any stacking on top of
    it, including LVM stacking itself and any autoactivation of stacked LVs)
udev/11-dm-lvm.rules.in
udev/69-dm-lvm-metad.rules.in
This page took 0.041478 seconds and 5 git commands to generate.