target: Add target_core_backend_configfs.h helper macros
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 28 Nov 2014 02:57:27 +0000 (18:57 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 2 Dec 2014 05:35:40 +0000 (21:35 -0800)
commit7a23f890b7c11b63dfc2a6c7ae1f0a631ed84865
tree0146bf041a4ab32fccf639be9ead638d2b41ea72
parentd23ab570bcb1de0256f1dcea0b8ad3af8e534e40
target: Add target_core_backend_configfs.h helper macros

This patch adds a number of configfs e-attr macros following
what existing target_core_configfs.c code does for internal
target_backend_dev_attrib setup, and similar to how target
fabric drivers allow for external config_item_type + cit->ct_attrs.
assignment.

This is useful for backend drivers like PSCSI who need to only
expose a small subset of device attributes, while still retaining
a default list of attributes for other backend drivers like
IBLOCK, FILEIO, RAMDISK, and TCMU.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
include/target/target_core_backend_configfs.h [new file with mode: 0644]