diff options
| author | Gaurav <gaurav@gluster.com> | 2011-01-31 04:25:38 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2011-02-04 00:39:26 -0800 | 
| commit | 5f8e2cab86eab7f5ee5b4bb9b649376e476c740c (patch) | |
| tree | 2a40f4806584dbafe1e0c2d44dbb509de28cbeb4 /xlators/nfs/server/src/mount3.c | |
| parent | f3648c88ebc6d58a10854d564d3fc2c82290ce13 (diff) | |
Logging : Use of uuid_utoa and uuid_utoa_r.
Signed-off-by: Gaurav <gaurav@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2308 (Threadsafe uuid to string conversion function)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2308
Diffstat (limited to 'xlators/nfs/server/src/mount3.c')
| -rw-r--r-- | xlators/nfs/server/src/mount3.c | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/xlators/nfs/server/src/mount3.c b/xlators/nfs/server/src/mount3.c index 5f3a0a1a6..53282d9a1 100644 --- a/xlators/nfs/server/src/mount3.c +++ b/xlators/nfs/server/src/mount3.c @@ -38,6 +38,7 @@  #include "iatt.h"  #include "nfs-mem-types.h"  #include "nfs.h" +#include "common-utils.h"  #include <errno.h> @@ -485,7 +486,6 @@ __mnt3_resolve_export_subdir_comp (mnt3_resolve_t *mres)          char            *nextcomp = NULL;          int             ret = -EFAULT;          nfs_user_t      nfu = {0, }; -        char            gfidstr[512];          uuid_t          gfid = {0, };          if (!mres) @@ -501,9 +501,8 @@ __mnt3_resolve_export_subdir_comp (mnt3_resolve_t *mres)          ret = nfs_entry_loc_fill (mres->exp->vol->itable, gfid, nextcomp,                                    &mres->resolveloc, NFS_RESOLVE_CREATE);          if ((ret < 0) && (ret != -2)) { -                uuid_unparse (mres->resolveloc.inode->gfid, gfidstr);                  gf_log (GF_MNT, GF_LOG_ERROR, "Failed to resolve and create " -                        "inode: parent gfid %s, entry %s", gfidstr, nextcomp); +                        "inode: parent gfid %s, entry %s", uuid_utoa (mres->resolveloc.inode->gfid), nextcomp);                  ret = -EFAULT;                  goto err;          }  | 
