dev-next - lvmdbusd: Use ID_FS_TYPE UDev property in udevwatch
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=2801b7a9b2faf08183685a79ec1dcee42d333541 Commit: 2801b7a9b2faf08183685a79ec1dcee42d333541 Parent: c53bb2b5ea5e5a985e32235515ad21fff62e3b5b Author: Vojtech Trefny <[email protected]> AuthorDate: Wed Jun 2 17:17:40 2021 +0200 Committer: David Teigland <[email protected]> CommitterDate: Wed Jun 2 11:40:01 2021 -0500
lvmdbusd: Use ID_FS_TYPE UDev property in udevwatch
'.ID_FS_TYPE_NEW' is a custom property added by an LVM UDev rule which is now being removed and 'ID_FS_TYPE' has the same value.
Signed-off-by Vojtech Trefny <[email protected]>
--- daemons/lvmdbusd/udevwatch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
daemons/lvmdbusd/udevwatch.py +2 -2
@@ -52,8 +52,8 @@ def filter_event(action, device): # when appropriate. refresh = False - if '.ID_FS_TYPE_NEW' in device: - fs_type_new = device['.ID_FS_TYPE_NEW'] + if 'ID_FS_TYPE' in device: + fs_type_new = device['ID_FS_TYPE'] if 'LVM' in fs_type_new: refresh = True