Try to load devices on change udev event
This fixes CAS-on-LVM scenario. Currently how CAS works: 1. LVM instantinates device nodes (not usable at this point) 2. CAS tries to add cores (fails) 3. LVM ends device configuration and issues change uevent 4. We ignore change uevents so we do nothing This patch makes sure we don't ignore change uevents. Still, some messages about not being able to open core device can show up in syslog - there's room for improvement. Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
parent
cccb69dc91
commit
c4e15a1af7
@ -1,4 +1,4 @@
|
|||||||
ACTION!="add", GOTO="cas_loader_end"
|
ACTION=="remove", GOTO="cas_loader_end"
|
||||||
SUBSYSTEM!="block", GOTO="cas_loader_end"
|
SUBSYSTEM!="block", GOTO="cas_loader_end"
|
||||||
|
|
||||||
RUN+="/lib/opencas/open-cas-loader /dev/$name"
|
RUN+="/lib/opencas/open-cas-loader /dev/$name"
|
||||||
|
Loading…
Reference in New Issue
Block a user