diff options
author | Amar Tumballi <amarts@redhat.com> | 2018-01-05 13:51:18 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-01-17 00:00:11 +0000 |
commit | 9404b0de3fd8ab5adc3a531d4cb37b56e1e3908f (patch) | |
tree | b01d08009acb12182f411a4d0edb5b70b15a5cd4 /api/src/glfs-fops.c | |
parent | 7ba7a4b27d124f4ee16fe4776a4670cd5b0160c4 (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 'api/src/glfs-fops.c')
-rw-r--r-- | api/src/glfs-fops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c index 78ff335d0a5..287326c4e4a 100644 --- a/api/src/glfs-fops.c +++ b/api/src/glfs-fops.c @@ -450,7 +450,7 @@ pub_glfs_creat (struct glfs *fs, const char *path, int flags, mode_t mode) } gf_uuid_generate (gfid); - ret = dict_set_static_bin (xattr_req, "gfid-req", gfid, 16); + ret = dict_set_gfuuid (xattr_req, "gfid-req", gfid, true); if (ret) { ret = -1; errno = ENOMEM; @@ -1790,7 +1790,7 @@ pub_glfs_symlink (struct glfs *fs, const char *data, const char *path) } gf_uuid_generate (gfid); - ret = dict_set_static_bin (xattr_req, "gfid-req", gfid, 16); + ret = dict_set_gfuuid (xattr_req, "gfid-req", gfid, true); if (ret) { ret = -1; errno = ENOMEM; @@ -1933,7 +1933,7 @@ pub_glfs_mknod (struct glfs *fs, const char *path, mode_t mode, dev_t dev) } gf_uuid_generate (gfid); - ret = dict_set_static_bin (xattr_req, "gfid-req", gfid, 16); + ret = dict_set_gfuuid (xattr_req, "gfid-req", gfid, true); if (ret) { ret = -1; errno = ENOMEM; @@ -2021,7 +2021,7 @@ pub_glfs_mkdir (struct glfs *fs, const char *path, mode_t mode) } gf_uuid_generate (gfid); - ret = dict_set_static_bin (xattr_req, "gfid-req", gfid, 16); + ret = dict_set_gfuuid (xattr_req, "gfid-req", gfid, true); if (ret) { ret = -1; errno = ENOMEM; |