• T
    ocfs2: Add xattr lookup code xattr btrees · 589dc260
    Tao Ma 提交于
    Add code to lookup a given extended attribute in the xattr btree. Lookup
    follows this general scheme:
    
    1. Use ocfs2_xattr_get_rec to find the xattr extent record
    
    2. Find the xattr bucket within the extent which may contain this xattr
    
    3. Iterate the bucket to find the xattr. In ocfs2_xattr_block_get(), we need
       to recalcuate the block offset and name offset for the right position of
       name/value.
    Signed-off-by: NTao Ma <tao.ma@oracle.com>
    Signed-off-by: NMark Fasheh <mfasheh@suse.com>
    589dc260
xattr.c 60.0 KB