agrover/rtslib-fb — Issue #7: load modules only when needed
Author: agrover
Created: 2012-02-06 09:55:39+00:00
State: open

Don't load all kernel modules when targetcli comes up, change class FabricModule to overload check_self, it loads the kmod and creates the cfs group.

def _check_self(self):
if not self._is_loaded:
self._load()
print "LOADED %s" % self.name
self._is_loaded = True
super(FabricModule, self)._check_self()