| 1 |
# the variables used in this rule are predefined and cached by |
| 2 |
# a dedicated service unit that runs (as root) before the dailyaidecheck |
| 3 |
# is started. The cache is read by an early rule. These definitions |
| 4 |
# here are the fallback just in case caching didnt work |
| 5 |
|
| 6 |
# we don't define the variables since we want a report when caching |
| 7 |
# doesn't work |
| 8 |
#@@if not defined DM_UUIDS_W_P |
| 9 |
#@@define DM_UUIDS_W_P (LVM-[[:alnum:]]{64}) |
| 10 |
#@@endif |
| 11 |
#@@if not defined DM_UUIDS_WO_P |
| 12 |
#@@define DM_UUIDS_WO_P ([[:alnum:]]{64}) |
| 13 |
#@@endif |
| 14 |
#@@if not defined LVM_PV_UUIDS |
| 15 |
#@@define LVM_PV_UUIDS ([[:alnum:]]{6}(-[[:alnum:]]{4}){5}-[[:alnum:]]{6}) |
| 16 |
#@@endif |
| 17 |
#@@if not defined LVM_PV_UUIDS_NODASH |
| 18 |
#@@define LVM_PV_UUIDS_NODASH ([[:alnum:]]{32}) |
| 19 |
#@@endif |
| 20 |
#@@if not defined LVM_VGS |
| 21 |
#@@define LVM_VGS ([[:alnum:]-]+) |
| 22 |
#@@endif |
| 23 |
#@@if not defined LVM_LVS |
| 24 |
#@@define LVM_LVS ([[:alnum:]-]+) |
| 25 |
#@@endif |
| 26 |
|
| 27 |
/@@{RUNLOCK}/lvm$ d RecreatedDir |
| 28 |
/@@{RUN}/lvm(/((lvs|pvs)_online|pvs_lookup))?$ d RecreatedDir |
| 29 |
!/@@{RUN}/lvm/(new)?hints$ f |
| 30 |
!/@@{RUN}/lvm/lvm(etad|polld)\\.socket$ s |
| 31 |
/@@{RUN}/lvmetad\\.pid$ f PidFile |
| 32 |
/@@{RUN}/lvm/vgs_online$ d RecreatedDir |
| 33 |
|
| 34 |
@@if defined LVM_VGS |
| 35 |
/@@{RUN}/lvm/vgs_online/@@{LVM_VGS}$ f VarFile |
| 36 |
@@endif |
| 37 |
@@if defined LVM_VGS_EXTRA |
| 38 |
/@@{RUN}/lvm/vgs_online/@@{LVM_VGS_EXTRA}$ f VarFile |
| 39 |
@@if defined LVM_LVS_EXTRA |
| 40 |
!/dev/@@{LVM_VGS_EXTRA}/@@{LVM_LVS_EXTRA}$ l |
| 41 |
@@endif |
| 42 |
@@endif |
| 43 |
|
| 44 |
@@if defined LVM_PV_UUIDS_NODASH |
| 45 |
/@@{RUN}/lvm/pvs_online/@@{LVM_PV_UUIDS_NODASH}$ f VarFile |
| 46 |
@@endif |
| 47 |
@@if defined LVM_PV_UUIDS_NODASH_EXTRA |
| 48 |
/@@{RUN}/lvm/pvs_online/@@{LVM_PV_UUIDS_NODASH_EXTRA}$ f VarFile |
| 49 |
@@endif |
| 50 |
|
| 51 |
@@if defined LVM_VGS |
| 52 |
@@if defined LVM_LVS |
| 53 |
!/dev/@@{LVM_VGS}/@@{LVM_LVS}$ l |
| 54 |
!/dev/mapper/@@{LVM_VGS}-@@{LVM_LVS}$ l |
| 55 |
@@endif |
| 56 |
@@endif |
| 57 |
|
| 58 |
@@if defined DM_UUIDS_W_P |
| 59 |
!/dev/disk/by-id/(dm-uuid-@@{DM_UUIDS_W_P})$ l |
| 60 |
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fdm-uuid-@@{DM_UUIDS_W_P}$ d |
| 61 |
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fdm-uuid-@@{DM_UUIDS_W_P}/b25[34]:[[:digit:]]{1,2}$ f |
| 62 |
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fdm-uuid-@@{DM_UUIDS_W_P}/b25[34]:[[:digit:]]{1,2}$ l |
| 63 |
@@endif |
| 64 |
|
| 65 |
@@if defined DM_NAMES |
| 66 |
!/@@{RUN}/udev/links/mapper\\\\x2f@@{DM_NAMES}$ d |
| 67 |
!/@@{RUN}/udev/links/mapper\\\\x2f@@{DM_NAMES}/b25[34]:[[:digit:]]{1,2}$ l |
| 68 |
!/@@{RUN}/udev/links/@@{DM_NAMES_WO_D}$ d |
| 69 |
!/@@{RUN}/udev/links/@@{DM_NAMES_WO_D}/b25[34]:[[:digit:]]{1,2}$ l |
| 70 |
@@endif |
| 71 |
|
| 72 |
@@if defined LVM_PV_UUIDS |
| 73 |
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2flvm-pv-uuid-@@{LVM_PV_UUIDS}$ d |
| 74 |
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2flvm-pv-uuid-@@{LVM_PV_UUIDS}/b([89]|25[34]):([0123]|19|127)$ f |
| 75 |
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2flvm-pv-uuid-@@{LVM_PV_UUIDS}/b([89]|25[34]):([0123]|19|127)$ l |
| 76 |
@@endif |
| 77 |
|