[Ocfs2-tools-devel] [PATCH 03/11] ocfs2-tools: add xattr_uuid_hash in libocfs2
Joel Becker
Joel.Becker at oracle.com
Mon Mar 2 18:03:44 PST 2009
On Fri, Feb 27, 2009 at 03:52:27PM +0800, Tiger Yang wrote:
> this function use to calculate uuid hash, this hash value will be
> used as random seed to calculate xattr hash.
>
> Signed-off-by: Tiger Yang <tiger.yang at oracle.com>
> ---
> include/ocfs2/ocfs2.h | 2 ++
> libocfs2/Makefile | 3 ++-
> libocfs2/xattr.c | 34 ++++++++++++++++++++++++++++++++++
> 3 files changed, 38 insertions(+), 1 deletions(-)
> create mode 100644 libocfs2/xattr.c
>
> diff --git a/include/ocfs2/ocfs2.h b/include/ocfs2/ocfs2.h
> index 7f00786..7b7f91d 100644
> --- a/include/ocfs2/ocfs2.h
> +++ b/include/ocfs2/ocfs2.h
> @@ -1085,4 +1085,6 @@ errcode_t ocfs2_block_iterate_inode(ocfs2_filesys *fs,
> void *priv_data),
> void *priv_data);
>
> +uint32_t xattr_uuid_hash(unsigned char *uuid);
> +
> #endif /* _FILESYS_H */
This should be properly prefixed with ocfs2_, as in
"ocfs2_xattr_uuid_hash()".
Joel
--
f/8 and be there.
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