[Ocfs2-tools-devel] [PATCH 1/8] Ocfs2-tools: Add macro OCFS2_VOL_UUIDSTR_LEN in ocfs2_fs.h
Sunil Mushran
sunil.mushran at oracle.com
Tue Apr 20 14:06:10 PDT 2010
Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
Tristan Ye wrote:
> Since we've been using uuid_str in most of ocfs2 codes, adding
> such a macro would be helpful.
>
> Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
> ---
> include/ocfs2-kernel/ocfs2_fs.h | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/include/ocfs2-kernel/ocfs2_fs.h b/include/ocfs2-kernel/ocfs2_fs.h
> index 3fb0d6c..c3d699c 100644
> --- a/include/ocfs2-kernel/ocfs2_fs.h
> +++ b/include/ocfs2-kernel/ocfs2_fs.h
> @@ -271,6 +271,7 @@
>
> #define OCFS2_VOL_UUID_LEN 16
> #define OCFS2_MAX_VOL_LABEL_LEN 64
> +#define OCFS2_VOL_UUIDSTR_LEN (OCFS2_VOL_UUID_LEN * 2 + 1)
>
> /* The alternate, userspace stack fields */
> #define OCFS2_STACK_LABEL_LEN 4
>
More information about the Ocfs2-tools-devel
mailing list