• Nicholas Bellinger's avatar
    target/user: Convert to external tcmu_backend_dev_attrs · e9f720d6
    Nicholas Bellinger authored
    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: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    e9f720d6
target_core_user.c 30 KB