From: Tao Ma Date: Mon, 18 Aug 2008 09:38:51 +0000 (+0800) Subject: ocfs2: Add xattr lookup code xattr btrees X-Git-Tag: v2.6.28-rc1~572^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=589dc2602f2a1b7fa5e59b90f548af189f128d77;p=pandora-kernel.git ocfs2: Add xattr lookup code xattr btrees 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 Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed