udev rule creation failure on VmWare WorkStation -> Patch
Opened this issue · 0 comments
jmolivieri commented
Windows 7 Pro x64 SP1 RAM 24GB, HDD RAID 5 SAS : 4 TB, 8 logic CPUs
VmWare Workstation : 10.0.1 build-1379776
Virtual Machine : Debian 7.2.0 x64
Rule creation fails because Virtual disks don't have an ID_SERIAL => make_udev_match_expr returns nothing
Proposed patch ; filename = EnhanceIO-vwware.patch
diff -urx '*git' --suppress-blank-empty --ignore-tab-expansion --ignore-space-change orig/EnhanceIO/CLI/eio_cli new/EnhanceIO/CLI/eio_cli
--- orig/EnhanceIO/CLI/eio_cli 2013-11-30 00:25:16.611745223 +0100
+++ new/EnhanceIO/CLI/eio_cli 2013-11-30 02:05:27.939532438 +0100
@@ -193,6 +193,12 @@
'", ENV{DEVTYPE}=="'+ dict_udev["DEVTYPE"] +'"'
return match_expr
-
vmware disk
- if dict_udev["DEVTYPE"] == "disk" and dict_udev["ID_VENDOR_ENC"] == "VMware\x2c\x20" and "ID_PATH" in dict_udev :
-
match_expr='ENV{ID_PATH}=="'+ dict_udev["ID_PATH"] + \
-
'", ENV{DEVTYPE}=="'+ dict_udev["DEVTYPE"] +'"'
-
return match_expr
Partition or disk w/ filesystem
if "ID_FS_UUID" in dict_udev:
match_expr= 'ENV{DM_NAME}!="' + cache_name + \