€•,eŒsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ*/translations/zh_CN/target/tcm_mod_builder”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/zh_TW/target/tcm_mod_builder”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/it_IT/target/tcm_mod_builder”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/ja_JP/target/tcm_mod_builder”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/ko_KR/target/tcm_mod_builder”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/sp_SP/target/tcm_mod_builder”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ)The TCM v4 fabric module script generator”h]”hŒ)The TCM v4 fabric module script generator”…””}”(hh¨hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hh£hžhhŸŒD/var/lib/git/docbuild/linux/Documentation/target/tcm_mod_builder.rst”h KubhŒ paragraph”“”)”}”(hŒGreetings all,”h]”hŒGreetings all,”…””}”(hh¹hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khh£hžhubh¸)”}”(hXThis document is intended to be a mini-HOWTO for using the tcm_mod_builder.py script to generate a brand new functional TCM v4 fabric .ko module of your very own, that once built can be immediately be loaded to start access the new TCM/ConfigFS fabric skeleton, by simply using::”h]”hXThis document is intended to be a mini-HOWTO for using the tcm_mod_builder.py script to generate a brand new functional TCM v4 fabric .ko module of your very own, that once built can be immediately be loaded to start access the new TCM/ConfigFS fabric skeleton, by simply using:”…””}”(hhÇhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khh£hžhubhŒ literal_block”“”)”}”(hŒEmodprobe $TCM_NEW_MOD mkdir -p /sys/kernel/config/target/$TCM_NEW_MOD”h]”hŒEmodprobe $TCM_NEW_MOD mkdir -p /sys/kernel/config/target/$TCM_NEW_MOD”…””}”hh×sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hÕhŸh¶h K hh£hžhubh¸)”}”(hŒUThis script will create a new drivers/target/$TCM_NEW_MOD/, and will do the following”h]”hŒUThis script will create a new drivers/target/$TCM_NEW_MOD/, and will do the following”…””}”(hhçhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khh£hžhubhŒ block_quote”“”)”}”(hX1) Generate new API callers for drivers/target/target_core_fabric_configs.c logic ->make_tpg(), ->drop_tpg(), ->make_wwn(), ->drop_wwn(). These are created into $TCM_NEW_MOD/$TCM_NEW_MOD_configfs.c 2) Generate basic infrastructure for loading/unloading LKMs and TCM/ConfigFS fabric module using a skeleton struct target_core_fabric_ops API template. 3) Based on user defined T10 Proto_Ident for the new fabric module being built, the TransportID / Initiator and Target WWPN related handlers for SPC-3 persistent reservation are automatically generated in $TCM_NEW_MOD/$TCM_NEW_MOD_fabric.c using drivers/target/target_core_fabric_lib.c logic. 4) NOP API calls for all other Data I/O path and fabric dependent attribute logic in $TCM_NEW_MOD/$TCM_NEW_MOD_fabric.c ”h]”hŒenumerated_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒÃGenerate new API callers for drivers/target/target_core_fabric_configs.c logic ->make_tpg(), ->drop_tpg(), ->make_wwn(), ->drop_wwn(). These are created into $TCM_NEW_MOD/$TCM_NEW_MOD_configfs.c”h]”h¸)”}”(hŒÃGenerate new API callers for drivers/target/target_core_fabric_configs.c logic ->make_tpg(), ->drop_tpg(), ->make_wwn(), ->drop_wwn(). These are created into $TCM_NEW_MOD/$TCM_NEW_MOD_configfs.c”h]”hŒÃGenerate new API callers for drivers/target/target_core_fabric_configs.c logic ->make_tpg(), ->drop_tpg(), ->make_wwn(), ->drop_wwn(). These are created into $TCM_NEW_MOD/$TCM_NEW_MOD_configfs.c”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhhýubj)”}”(hŒ”Generate basic infrastructure for loading/unloading LKMs and TCM/ConfigFS fabric module using a skeleton struct target_core_fabric_ops API template.”h]”h¸)”}”(hŒ”Generate basic infrastructure for loading/unloading LKMs and TCM/ConfigFS fabric module using a skeleton struct target_core_fabric_ops API template.”h]”hŒ”Generate basic infrastructure for loading/unloading LKMs and TCM/ConfigFS fabric module using a skeleton struct target_core_fabric_ops API template.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhhýubj)”}”(hX!Based on user defined T10 Proto_Ident for the new fabric module being built, the TransportID / Initiator and Target WWPN related handlers for SPC-3 persistent reservation are automatically generated in $TCM_NEW_MOD/$TCM_NEW_MOD_fabric.c using drivers/target/target_core_fabric_lib.c logic.”h]”h¸)”}”(hX!Based on user defined T10 Proto_Ident for the new fabric module being built, the TransportID / Initiator and Target WWPN related handlers for SPC-3 persistent reservation are automatically generated in $TCM_NEW_MOD/$TCM_NEW_MOD_fabric.c using drivers/target/target_core_fabric_lib.c logic.”h]”hX!Based on user defined T10 Proto_Ident for the new fabric module being built, the TransportID / Initiator and Target WWPN related handlers for SPC-3 persistent reservation are automatically generated in $TCM_NEW_MOD/$TCM_NEW_MOD_fabric.c using drivers/target/target_core_fabric_lib.c logic.”…””}”(hj6hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khj2ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhhýubj)”}”(hŒuNOP API calls for all other Data I/O path and fabric dependent attribute logic in $TCM_NEW_MOD/$TCM_NEW_MOD_fabric.c ”h]”h¸)”}”(hŒtNOP API calls for all other Data I/O path and fabric dependent attribute logic in $TCM_NEW_MOD/$TCM_NEW_MOD_fabric.c”h]”hŒtNOP API calls for all other Data I/O path and fabric dependent attribute logic in $TCM_NEW_MOD/$TCM_NEW_MOD_fabric.c”…””}”(hjNhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KhjJubah}”(h]”h ]”h"]”h$]”h&]”uh1jhhýubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ)”uh1hûhh÷ubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhŸh¶h Khh£hžhubh¸)”}”(hŒ’tcm_mod_builder.py depends upon the mandatory '-p $PROTO_IDENT' and '-m $FABRIC_MOD_name' parameters, and actually running the script looks like::”h]”hŒ™tcm_mod_builder.py depends upon the mandatory ‘-p $PROTO_IDENT’ and ‘-m $FABRIC_MOD_name’ parameters, and actually running the script looks like:”…””}”(hjshžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khh£hžhubhÖ)”}”(hXXtarget:/mnt/sdb/lio-core-2.6.git/Documentation/target# python tcm_mod_builder.py -p iSCSI -m tcm_nab5000 tcm_dir: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../ Set fabric_mod_name: tcm_nab5000 Set fabric_mod_dir: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000 Using proto_ident: iSCSI Creating fabric_mod_dir: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000 Writing file: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_base.h Using tcm_mod_scan_fabric_ops: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../include/target/target_core_fabric_ops.h Writing file: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_fabric.c Writing file: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_fabric.h Writing file: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_configfs.c Writing file: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/Kbuild Writing file: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/Kconfig Would you like to add tcm_nab5000to drivers/target/Kbuild..? [yes,no]: yes Would you like to add tcm_nab5000to drivers/target/Kconfig..? [yes,no]: yes”h]”hXXtarget:/mnt/sdb/lio-core-2.6.git/Documentation/target# python tcm_mod_builder.py -p iSCSI -m tcm_nab5000 tcm_dir: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../ Set fabric_mod_name: tcm_nab5000 Set fabric_mod_dir: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000 Using proto_ident: iSCSI Creating fabric_mod_dir: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000 Writing file: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_base.h Using tcm_mod_scan_fabric_ops: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../include/target/target_core_fabric_ops.h Writing file: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_fabric.c Writing file: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_fabric.h Writing file: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_configfs.c Writing file: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/Kbuild Writing file: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/Kconfig Would you like to add tcm_nab5000to drivers/target/Kbuild..? [yes,no]: yes Would you like to add tcm_nab5000to drivers/target/Kconfig..? [yes,no]: yes”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”håhæuh1hÕhŸh¶h K hh£hžhubh¸)”}”(hŒjAt the end of tcm_mod_builder.py. the script will ask to add the following line to drivers/target/Kbuild::”h]”hŒiAt the end of tcm_mod_builder.py. the script will ask to add the following line to drivers/target/Kbuild:”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K9hh£hžhubhÖ)”}”(hŒ/obj-$(CONFIG_TCM_NAB5000) += tcm_nab5000/”h]”hŒ/obj-$(CONFIG_TCM_NAB5000) += tcm_nab5000/”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”håhæuh1hÕhŸh¶h Khh£hžhubhÖ)”}”(hŒ+source "drivers/target/tcm_nab5000/Kconfig"”h]”hŒ+source "drivers/target/tcm_nab5000/Kconfig"”…””}”hj¹sbah}”(h]”h ]”h"]”h$]”h&]”håhæuh1hÕhŸh¶h K@hh£hžhubhü)”}”(hhh]”(j)”}”(hŒiRun 'make menuconfig' and select the new CONFIG_TCM_NAB5000 item:: TCM_NAB5000 fabric module ”h]”(h¸)”}”(hŒBRun 'make menuconfig' and select the new CONFIG_TCM_NAB5000 item::”h]”hŒERun ‘make menuconfig’ and select the new CONFIG_TCM_NAB5000 item:”…””}”(hjÎhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KBhjÊubhÖ)”}”(hŒ TCM_NAB5000 fabric module”h]”hŒ TCM_NAB5000 fabric module”…””}”hjÜsbah}”(h]”h ]”h"]”h$]”h&]”håhæuh1hÕhŸh¶h KDhjÊubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjÇhžhhŸh¶h Nubj)”}”(hX¥Build using 'make modules', once completed you will have:: target:/mnt/sdb/lio-core-2.6.git# ls -la drivers/target/tcm_nab5000/ total 1348 drwxr-xr-x 2 root root 4096 2010-10-05 03:23 . drwxr-xr-x 9 root root 4096 2010-10-05 03:22 .. -rw-r--r-- 1 root root 282 2010-10-05 03:22 Kbuild -rw-r--r-- 1 root root 171 2010-10-05 03:22 Kconfig -rw-r--r-- 1 root root 49 2010-10-05 03:23 modules.order -rw-r--r-- 1 root root 738 2010-10-05 03:22 tcm_nab5000_base.h -rw-r--r-- 1 root root 9096 2010-10-05 03:22 tcm_nab5000_configfs.c -rw-r--r-- 1 root root 191200 2010-10-05 03:23 tcm_nab5000_configfs.o -rw-r--r-- 1 root root 40504 2010-10-05 03:23 .tcm_nab5000_configfs.o.cmd -rw-r--r-- 1 root root 5414 2010-10-05 03:22 tcm_nab5000_fabric.c -rw-r--r-- 1 root root 2016 2010-10-05 03:22 tcm_nab5000_fabric.h -rw-r--r-- 1 root root 190932 2010-10-05 03:23 tcm_nab5000_fabric.o -rw-r--r-- 1 root root 40713 2010-10-05 03:23 .tcm_nab5000_fabric.o.cmd -rw-r--r-- 1 root root 401861 2010-10-05 03:23 tcm_nab5000.ko -rw-r--r-- 1 root root 265 2010-10-05 03:23 .tcm_nab5000.ko.cmd -rw-r--r-- 1 root root 459 2010-10-05 03:23 tcm_nab5000.mod.c -rw-r--r-- 1 root root 23896 2010-10-05 03:23 tcm_nab5000.mod.o -rw-r--r-- 1 root root 22655 2010-10-05 03:23 .tcm_nab5000.mod.o.cmd -rw-r--r-- 1 root root 379022 2010-10-05 03:23 tcm_nab5000.o -rw-r--r-- 1 root root 211 2010-10-05 03:23 .tcm_nab5000.o.cmd ”h]”(h¸)”}”(hŒ:Build using 'make modules', once completed you will have::”h]”hŒ=Build using ‘make modules’, once completed you will have:”…””}”(hjôhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KFhjðubhÖ)”}”(hXRtarget:/mnt/sdb/lio-core-2.6.git# ls -la drivers/target/tcm_nab5000/ total 1348 drwxr-xr-x 2 root root 4096 2010-10-05 03:23 . drwxr-xr-x 9 root root 4096 2010-10-05 03:22 .. -rw-r--r-- 1 root root 282 2010-10-05 03:22 Kbuild -rw-r--r-- 1 root root 171 2010-10-05 03:22 Kconfig -rw-r--r-- 1 root root 49 2010-10-05 03:23 modules.order -rw-r--r-- 1 root root 738 2010-10-05 03:22 tcm_nab5000_base.h -rw-r--r-- 1 root root 9096 2010-10-05 03:22 tcm_nab5000_configfs.c -rw-r--r-- 1 root root 191200 2010-10-05 03:23 tcm_nab5000_configfs.o -rw-r--r-- 1 root root 40504 2010-10-05 03:23 .tcm_nab5000_configfs.o.cmd -rw-r--r-- 1 root root 5414 2010-10-05 03:22 tcm_nab5000_fabric.c -rw-r--r-- 1 root root 2016 2010-10-05 03:22 tcm_nab5000_fabric.h -rw-r--r-- 1 root root 190932 2010-10-05 03:23 tcm_nab5000_fabric.o -rw-r--r-- 1 root root 40713 2010-10-05 03:23 .tcm_nab5000_fabric.o.cmd -rw-r--r-- 1 root root 401861 2010-10-05 03:23 tcm_nab5000.ko -rw-r--r-- 1 root root 265 2010-10-05 03:23 .tcm_nab5000.ko.cmd -rw-r--r-- 1 root root 459 2010-10-05 03:23 tcm_nab5000.mod.c -rw-r--r-- 1 root root 23896 2010-10-05 03:23 tcm_nab5000.mod.o -rw-r--r-- 1 root root 22655 2010-10-05 03:23 .tcm_nab5000.mod.o.cmd -rw-r--r-- 1 root root 379022 2010-10-05 03:23 tcm_nab5000.o -rw-r--r-- 1 root root 211 2010-10-05 03:23 .tcm_nab5000.o.cmd”h]”hXRtarget:/mnt/sdb/lio-core-2.6.git# ls -la drivers/target/tcm_nab5000/ total 1348 drwxr-xr-x 2 root root 4096 2010-10-05 03:23 . drwxr-xr-x 9 root root 4096 2010-10-05 03:22 .. -rw-r--r-- 1 root root 282 2010-10-05 03:22 Kbuild -rw-r--r-- 1 root root 171 2010-10-05 03:22 Kconfig -rw-r--r-- 1 root root 49 2010-10-05 03:23 modules.order -rw-r--r-- 1 root root 738 2010-10-05 03:22 tcm_nab5000_base.h -rw-r--r-- 1 root root 9096 2010-10-05 03:22 tcm_nab5000_configfs.c -rw-r--r-- 1 root root 191200 2010-10-05 03:23 tcm_nab5000_configfs.o -rw-r--r-- 1 root root 40504 2010-10-05 03:23 .tcm_nab5000_configfs.o.cmd -rw-r--r-- 1 root root 5414 2010-10-05 03:22 tcm_nab5000_fabric.c -rw-r--r-- 1 root root 2016 2010-10-05 03:22 tcm_nab5000_fabric.h -rw-r--r-- 1 root root 190932 2010-10-05 03:23 tcm_nab5000_fabric.o -rw-r--r-- 1 root root 40713 2010-10-05 03:23 .tcm_nab5000_fabric.o.cmd -rw-r--r-- 1 root root 401861 2010-10-05 03:23 tcm_nab5000.ko -rw-r--r-- 1 root root 265 2010-10-05 03:23 .tcm_nab5000.ko.cmd -rw-r--r-- 1 root root 459 2010-10-05 03:23 tcm_nab5000.mod.c -rw-r--r-- 1 root root 23896 2010-10-05 03:23 tcm_nab5000.mod.o -rw-r--r-- 1 root root 22655 2010-10-05 03:23 .tcm_nab5000.mod.o.cmd -rw-r--r-- 1 root root 379022 2010-10-05 03:23 tcm_nab5000.o -rw-r--r-- 1 root root 211 2010-10-05 03:23 .tcm_nab5000.o.cmd”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”håhæuh1hÕhŸh¶h KHhjðubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjÇhžhhŸh¶h Nubj)”}”(hXŸLoad the new module, create a lun_0 configfs group, and add new TCM Core IBLOCK backstore symlink to port:: target:/mnt/sdb/lio-core-2.6.git# insmod drivers/target/tcm_nab5000.ko target:/mnt/sdb/lio-core-2.6.git# mkdir -p /sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0 target:/mnt/sdb/lio-core-2.6.git# cd /sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0/ target:/sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0# ln -s /sys/kernel/config/target/core/iblock_0/lvm_test0 nab5000_port target:/sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0# cd - target:/mnt/sdb/lio-core-2.6.git# tree /sys/kernel/config/target/nab5000/ /sys/kernel/config/target/nab5000/ |-- discovery_auth |-- iqn.foo | `-- tpgt_1 | |-- acls | |-- attrib | |-- lun | | `-- lun_0 | | |-- alua_tg_pt_gp | | |-- alua_tg_pt_offline | | |-- alua_tg_pt_status | | |-- alua_tg_pt_write_md | | `-- nab5000_port -> ../../../../../../target/core/iblock_0/lvm_test0 | |-- np | `-- param `-- version target:/mnt/sdb/lio-core-2.6.git# lsmod Module Size Used by tcm_nab5000 3935 4 iscsi_target_mod 193211 0 target_core_stgt 8090 0 target_core_pscsi 11122 1 target_core_file 9172 2 target_core_iblock 9280 1 target_core_mod 228575 31 tcm_nab5000,iscsi_target_mod,target_core_stgt,target_core_pscsi,target_core_file,target_core_iblock libfc 73681 0 scsi_debug 56265 0 scsi_tgt 8666 1 target_core_stgt configfs 20644 2 target_core_mod ”h]”(h¸)”}”(hŒkLoad the new module, create a lun_0 configfs group, and add new TCM Core IBLOCK backstore symlink to port::”h]”hŒjLoad the new module, create a lun_0 configfs group, and add new TCM Core IBLOCK backstore symlink to port:”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K_hjubhÖ)”}”(hX target:/mnt/sdb/lio-core-2.6.git# insmod drivers/target/tcm_nab5000.ko target:/mnt/sdb/lio-core-2.6.git# mkdir -p /sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0 target:/mnt/sdb/lio-core-2.6.git# cd /sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0/ target:/sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0# ln -s /sys/kernel/config/target/core/iblock_0/lvm_test0 nab5000_port target:/sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0# cd - target:/mnt/sdb/lio-core-2.6.git# tree /sys/kernel/config/target/nab5000/ /sys/kernel/config/target/nab5000/ |-- discovery_auth |-- iqn.foo | `-- tpgt_1 | |-- acls | |-- attrib | |-- lun | | `-- lun_0 | | |-- alua_tg_pt_gp | | |-- alua_tg_pt_offline | | |-- alua_tg_pt_status | | |-- alua_tg_pt_write_md | | `-- nab5000_port -> ../../../../../../target/core/iblock_0/lvm_test0 | |-- np | `-- param `-- version target:/mnt/sdb/lio-core-2.6.git# lsmod Module Size Used by tcm_nab5000 3935 4 iscsi_target_mod 193211 0 target_core_stgt 8090 0 target_core_pscsi 11122 1 target_core_file 9172 2 target_core_iblock 9280 1 target_core_mod 228575 31 tcm_nab5000,iscsi_target_mod,target_core_stgt,target_core_pscsi,target_core_file,target_core_iblock libfc 73681 0 scsi_debug 56265 0 scsi_tgt 8666 1 target_core_stgt configfs 20644 2 target_core_mod”h]”hX target:/mnt/sdb/lio-core-2.6.git# insmod drivers/target/tcm_nab5000.ko target:/mnt/sdb/lio-core-2.6.git# mkdir -p /sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0 target:/mnt/sdb/lio-core-2.6.git# cd /sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0/ target:/sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0# ln -s /sys/kernel/config/target/core/iblock_0/lvm_test0 nab5000_port target:/sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0# cd - target:/mnt/sdb/lio-core-2.6.git# tree /sys/kernel/config/target/nab5000/ /sys/kernel/config/target/nab5000/ |-- discovery_auth |-- iqn.foo | `-- tpgt_1 | |-- acls | |-- attrib | |-- lun | | `-- lun_0 | | |-- alua_tg_pt_gp | | |-- alua_tg_pt_offline | | |-- alua_tg_pt_status | | |-- alua_tg_pt_write_md | | `-- nab5000_port -> ../../../../../../target/core/iblock_0/lvm_test0 | |-- np | `-- param `-- version target:/mnt/sdb/lio-core-2.6.git# lsmod Module Size Used by tcm_nab5000 3935 4 iscsi_target_mod 193211 0 target_core_stgt 8090 0 target_core_pscsi 11122 1 target_core_file 9172 2 target_core_iblock 9280 1 target_core_mod 228575 31 tcm_nab5000,iscsi_target_mod,target_core_stgt,target_core_pscsi,target_core_file,target_core_iblock libfc 73681 0 scsi_debug 56265 0 scsi_tgt 8666 1 target_core_stgt configfs 20644 2 target_core_mod”…””}”hj(sbah}”(h]”h ]”h"]”h$]”h&]”håhæuh1hÕhŸh¶h Kbhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjÇhžhhŸh¶h Nubeh}”(h]”h ]”h"]”h$]”h&]”jhjijjhjkjluh1hûhh£hžhhŸh¶h KBubhŒ transition”“”)”}”(hŒF----------------------------------------------------------------------”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1jBhŸh¶h K‰hh£hžhubh¢)”}”(hhh]”(h§)”}”(hŒFuture TODO items”h]”hŒFuture TODO items”…””}”(hjQhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hjNhžhhŸh¶h KŒubhö)”}”(hŒ×1) Add more T10 proto_idents 2) Make tcm_mod_dump_fabric_ops() smarter and generate function pointer defs directly from include/target/target_core_fabric_ops.h:struct target_core_fabric_ops structure members. ”h]”hü)”}”(hhh]”(j)”}”(hŒAdd more T10 proto_idents”h]”h¸)”}”(hjhh]”hŒAdd more T10 proto_idents”…””}”(hjjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KŽhjfubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjcubj)”}”(hŒ±Make tcm_mod_dump_fabric_ops() smarter and generate function pointer defs directly from include/target/target_core_fabric_ops.h:struct target_core_fabric_ops structure members. ”h]”h¸)”}”(hŒ°Make tcm_mod_dump_fabric_ops() smarter and generate function pointer defs directly from include/target/target_core_fabric_ops.h:struct target_core_fabric_ops structure members.”h]”hŒ°Make tcm_mod_dump_fabric_ops() smarter and generate function pointer defs directly from include/target/target_core_fabric_ops.h:struct target_core_fabric_ops structure members.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khj}ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjcubeh}”(h]”h ]”h"]”h$]”h&]”jhjijjhjkjluh1hûhj_ubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhŸh¶h KŽhjNhžhubh¸)”}”(hŒOctober 5th, 2010”h]”hŒOctober 5th, 2010”…””}”(hj¡hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K“hjNhžhubh¸)”}”(hŒ+Nicholas A. Bellinger ”h]”(hŒNicholas A. Bellinger <”…””}”(hj¯hžhhŸNh NubhŒ reference”“”)”}”(hŒnab@linux-iscsi.org”h]”hŒnab@linux-iscsi.org”…””}”(hj¹hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:nab@linux-iscsi.org”uh1j·hj¯ubhŒ>”…””}”(hj¯hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K•hjNhžhubeh}”(h]”Œfuture-todo-items”ah ]”h"]”Œfuture todo items”ah$]”h&]”uh1h¡hh£hžhhŸh¶h KŒubeh}”(h]”Œ)the-tcm-v4-fabric-module-script-generator”ah ]”h"]”Œ)the tcm v4 fabric module script generator”ah$]”h&]”uh1h¡hhhžhhŸh¶h Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”h¶uh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(h¦NŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”h¶Œ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jàjÝjØjÕuŒ nametypes”}”(jà‰j؉uh}”(jÝh£jÕjNuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nhžhub.