Skip to content

Commit

Permalink
ocfs2: Add xattr lookup code xattr btrees
Browse files Browse the repository at this point in the history
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: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
  • Loading branch information
Tao Ma authored and Mark Fasheh committed Oct 13, 2008
1 parent 0c044f0 commit 589dc26
Showing 1 changed file with 328 additions and 23 deletions.
Loading

0 comments on commit 589dc26

Please sign in to comment.