€•)fŒ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ŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/pt_BR/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&]”uh1jhjubj)”}”(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.”…””}”(hj2h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khj.ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubj)”}”(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.”…””}”(hjJh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KhjFubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubj)”}”(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”…””}”(hjbh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khj^ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ)”uh1jhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1j 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:”…””}”(hj‡h²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”…””}”hj•sbah}”(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:”…””}”(hj£h²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/”…””}”hj±sbah}”(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²hubj)”}”(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:”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KFhjubhê)”}”(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´KHhjubeh}”(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:”…””}”(hj.h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K_hj*ubhê)”}”(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´Kbhj*ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjÛh²hh³hÊh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j|j}j~hjj€uh1jhh·h²hh³hÊh´KBubhŒ transition”“”)”}”(hŒF----------------------------------------------------------------------”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1jVh³hÊh´K‰hh·h²hubh¶)”}”(hhh]”(h»)”}”(hŒFuture TODO items”h]”hŒFuture TODO items”…””}”(hjeh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjbh²hh³hÊh´KŒubj )”}”(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]”j)”}”(hhh]”(j)”}”(hŒAdd more T10 proto_idents”h]”hÌ)”}”(hj|h]”hŒAdd more T10 proto_idents”…””}”(hj~h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KŽhjzubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjwubj)”}”(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.”…””}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khj‘ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjwubeh}”(h]”h ]”h"]”h$]”h&]”j|j}j~hjj€uh1jhjsubah}”(h]”h ]”h"]”h$]”h&]”uh1j h³hÊh´KŽhjbh²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“hjbh²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•hjbh²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éjbuŒ 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.