diff options
author | Anand Avati <avati@redhat.com> | 2012-07-16 14:03:06 -0700 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-07-17 12:29:36 -0700 |
commit | ea0a0937a0524b8a449e470fbaea772a349d40fb (patch) | |
tree | 66ed7cbc48ec80633cecaa5740f53985499871b8 /libglusterfs/src/common-utils.h | |
parent | 24717f14fa9e409f01f89c0905163b0db1e40729 (diff) |
common-utils: implement generate_glusterfs_ctx_id()
This patch creates a common and shared version of the often copy/
pasted generate_uuid() function, which is used to create an ID string
to uniquely identify an instance of a glusterfs process/glusterfs_ctx_t.
Change-Id: Ie4e697ae28b6e954c5c261c69e37738f289d77e4
BUG: 839950
Signed-off-by: Anand Avati <avati@redhat.com>
Reviewed-on: http://review.gluster.com/3677
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'libglusterfs/src/common-utils.h')
-rw-r--r-- | libglusterfs/src/common-utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index 26af45fcc7b..f21ade40b8f 100644 --- a/libglusterfs/src/common-utils.h +++ b/libglusterfs/src/common-utils.h @@ -552,4 +552,6 @@ void gf_path_strip_trailing_slashes (char *path); uint64_t get_mem_size (); int gf_strip_whitespace (char *str, int len); int gf_canonicalize_path (char *path); +char *generate_glusterfs_ctx_id (void); + #endif /* _COMMON_UTILS_H */ |