[Ocfs2-tools-devel] [PATCH 6/9] ocfs2-tools: add xattr support in lib

Joel Becker Joel.Becker at oracle.com
Fri Dec 19 14:43:23 PST 2008


On Fri, Dec 19, 2008 at 05:41:38PM +0800, Tiger Yang wrote:
> +errcode_t ocfs2_xattr_get_rec(ocfs2_filesys *fs,
> +			      struct ocfs2_xattr_block *xb,
> +			      uint32_t name_hash,
> +			      uint64_t *p_blkno,
> +			      uint32_t *e_cpos,
> +			      uint32_t *num_clusters)
> +{
> +	int i;
> +	errcode_t ret = 0;
> +	char *eb_buf = NULL;
> +	struct ocfs2_extent_block *eb;
> +	struct ocfs2_extent_rec *rec = NULL;
> +	struct ocfs2_extent_list *el = &xb->xb_attrs.xb_root.xt_list;
> +	uint64_t e_blkno = 0;
> +

	Also, this function should return OCFS2_ET_INVALID_ARGUMENT if
the xattr block is not INDEXED.

Joel
 

-- 

"Hey mister if you're gonna walk on water,
 Could you drop a line my way?"

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-tools-devel mailing list