1. 10 1月, 2015 1 次提交
  2. 02 12月, 2014 2 次提交
    • N
      target: Add DEF_TB_DEFAULT_ATTRIBS macro for virtual device attrs · e6c39f70
      Nicholas Bellinger 提交于
      This helper macro adds the default set of 30 device attributes for
      virtual devices from existing target_core_configfs.c code, and moves
      the definitions into a single macro to create the structs necessary
      for backend drivers.
      
      It allows them to populate their own external struct configfs_attribute
      for se_subsystem_api->tb_cits.tb_dev_attrib_cit.ct_attrs.
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      e6c39f70
    • N
      target: Add target_core_backend_configfs.h helper macros · 7a23f890
      Nicholas Bellinger 提交于
      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: NNicholas Bellinger <nab@linux-iscsi.org>
      7a23f890