Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
lio-utils.216
0031-lio_node-create-sys-kernel-config-target-i...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0031-lio_node-create-sys-kernel-config-target-iscsi-on-st.patch of Package lio-utils.216
From 1740f62939b36c9cd8f3549a63886500cb930f2a Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Thu, 15 May 2014 12:02:37 +0200 Subject: [PATCH] lio_node: create /sys/kernel/config/target/iscsi on startup We should attempt to create /sys/kernel/config/target/iscsi upon startup to trigger a module load here. References: bnc#877731 Signed-off-by: Hannes Reinecke <hare@suse.de> --- lio-py/lio_node.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lio-py/lio_node.py b/lio-py/lio_node.py index 51faef6..d69487f 100755 --- a/lio-py/lio_node.py +++ b/lio-py/lio_node.py @@ -1300,8 +1300,13 @@ def lio_target_enable_debug(option, opt_str, value, parser): return def main(): + if not os.path.isdir(tcm_root): + lio_err("target_core_mod module not loaded"); if not os.path.isdir(lio_root): - lio_err("iscsi_target_mod is not loaded") + mkdir_op = "mkdir -p " + lio_root + ret = os.system(mkdir_op) + if ret: + lio_err("Unable to load iscsi_target_mod") parser = OptionParser() parser.add_option("--addlunacl", action="callback", callback=lio_target_add_lunacl, nargs=5, -- 1.7.12.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor