summaryrefslogtreecommitdiffstats
path: root/xlators/nfs
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2018-01-05 13:51:18 +0530
committerAmar Tumballi <amarts@redhat.com>2018-01-17 00:00:11 +0000
commit9404b0de3fd8ab5adc3a531d4cb37b56e1e3908f (patch)
treeb01d08009acb12182f411a4d0edb5b70b15a5cd4 /xlators/nfs
parent7ba7a4b27d124f4ee16fe4776a4670cd5b0160c4 (diff)
core: fix some of the dict_{get,set} with proper APIs
updates #220 Change-Id: I6e25dbb69b2c7021e00073e8f025d212db7de0be Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/nfs')
-rw-r--r--xlators/nfs/server/src/nfs-fops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/nfs/server/src/nfs-fops.c b/xlators/nfs/server/src/nfs-fops.c
index f3741a40998..601f29fcef9 100644
--- a/xlators/nfs/server/src/nfs-fops.c
+++ b/xlators/nfs/server/src/nfs-fops.c
@@ -328,7 +328,7 @@ dict_t *
nfs_gfid_dict (inode_t *inode)
{
uuid_t newgfid = {0, };
- char *dyngfid = NULL;
+ unsigned char *dyngfid = NULL;
dict_t *dictgfid = NULL;
int ret = -1;
uuid_t rootgfid = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1};
@@ -353,7 +353,7 @@ nfs_gfid_dict (inode_t *inode)
return (NULL);
}
- ret = dict_set_bin (dictgfid, "gfid-req", dyngfid, sizeof (uuid_t));
+ ret = dict_set_gfuuid (dictgfid, "gfid-req", dyngfid, false);
if (ret < 0) {
GF_FREE (dyngfid);
dict_unref (dictgfid);