]> git.baikalelectronics.ru Git - kernel.git/commit
target/iblock: Convert to external iblock_backend_dev_attrs
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 28 Nov 2014 03:53:28 +0000 (19:53 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 2 Dec 2014 05:36:02 +0000 (21:36 -0800)
commit8d33dd95ce266303a359ff54a52bf688d0f7606b
treeee3ef21c295d8a66c4e36a41019f068df8bd5b71
parentf3496de809ac909bc2ee0b47f209642b85098ec2
target/iblock: Convert to external iblock_backend_dev_attrs

This patch converts IBLOCK to use an external set of device attributes,
and utilizes target_core_backend_configfs.h macros to generate a default
set of configfs extended-attr handlers.

It calls target_core_setup_sub_cits() to setup the initial config_item_type
based on existing target_core_configfs.c defaults, and using configfs_attribute
generated by DEF_TB_DEFAULT_ATTRIBS(iblock) populates iblock_backend_dev_attrs[]

It introduces no functional change for existing IBLOCK device attributes.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_iblock.c