Skip to content
  • Christoph Hellwig's avatar
    target: simplify backend attribute implementation · 3effdb90
    Christoph Hellwig authored
    
    
    Consolidate the implementation of the backend attributes in a single file
    and single function per attribute show/store function instead of splitting
    it into multiple functions in multiple files.
    
    Also use the proper strto* helpers for exposed data types, add macros to
    implement the store methods for the most common data types and share the
    show methods between the two different attribute implementations.
    
    (Fix bogus store_pi_prot_format flag=0 return value - nab)
    
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    3effdb90