FYI, I just added some basic LVM test cases (single LV/no RAID, and single LV/RAID-1) to the test suite (see bug 24446). This checks the "presentation hide" flag as well, so without the patch above (or the equivalent that was applied in Ubuntu), it fails:
======================================================================
FAIL: LVM: Single LV, RAID-1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/martin/dk-disks-test.py", line 1032, in test_single_lv_raid
o != real_lv_obj)
AssertionError: dbus.Boolean(False, variant_level=1) != True
(that's the DevicePresentationHide property).
So regardless how distros ship their udev rules right now, they can use this to test that they have a correct setup which probes the LVs and hides the shadow image LVs.
> Upstream lvm2 fixed that a while ago in its udev rules: sourceware. org/ml/ lvm2-cvs/ 2009-08/ msg00018. html
> http://
> +ENV{DM_ LV_NAME} =="?*_mlog" , GOTO="lvm_end" LV_NAME} =="?*_mimage_ [0-9]*" , GOTO="lvm_end"
> +ENV{DM_
FYI, I just added some basic LVM test cases (single LV/no RAID, and single LV/RAID-1) to the test suite (see bug 24446). This checks the "presentation hide" flag as well, so without the patch above (or the equivalent that was applied in Ubuntu), it fails:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- martin/ dk-disks- test.py" , line 1032, in test_single_lv_raid
FAIL: LVM: Single LV, RAID-1
-------
Traceback (most recent call last):
File "/home/
o != real_lv_obj)
AssertionError: dbus.Boolean(False, variant_level=1) != True
(that's the DevicePresentat ionHide property).
So regardless how distros ship their udev rules right now, they can use this to test that they have a correct setup which probes the LVs and hides the shadow image LVs.