]> git.baikalelectronics.ru Git - kernel.git/commit
target/user: Convert to external tcmu_backend_dev_attrs
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 28 Nov 2014 05:11:24 +0000 (05:11 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 2 Dec 2014 05:36:03 +0000 (21:36 -0800)
commitcae55272e67e96d6e39d9357571ae3ad543d2301
tree24acc76cf082f15bdc7bd34aac80cecdcdeab9cf
parent4e75dfd99850820eef0f552bc6d4ccd773da8f52
target/user: Convert to external tcmu_backend_dev_attrs

This patch converts TCM-USER 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(tcmu) populates tcmu_backend_dev_attrs[]

It introduces no function change for existing TCMU device attributes.

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