• Nicholas Bellinger's avatar
    target: Add target_core_backend_configfs.h helper macros · 7a23f890
    Nicholas Bellinger authored
    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: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    7a23f890
target_core_backend_configfs.h 1.64 KB