summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
Diffstat (limited to 'api/src')
-rw-r--r--api/src/glfs-fops.c8
-rw-r--r--api/src/glfs-handleops.c8
-rw-r--r--api/src/glfs-resolve.c4
3 files changed, 10 insertions, 10 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;
diff --git a/api/src/glfs-handleops.c b/api/src/glfs-handleops.c
index 0151289ab26..38a9a7ad2a5 100644
--- a/api/src/glfs-handleops.c
+++ b/api/src/glfs-handleops.c
@@ -756,7 +756,7 @@ pub_glfs_h_creat (struct glfs *fs, struct glfs_object *parent, 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;
@@ -865,7 +865,7 @@ pub_glfs_h_mkdir (struct glfs *fs, struct glfs_object *parent, 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;
@@ -961,7 +961,7 @@ pub_glfs_h_mknod (struct glfs *fs, struct glfs_object *parent, 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;
@@ -1504,7 +1504,7 @@ pub_glfs_h_symlink (struct glfs *fs, struct glfs_object *parent,
}
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;
diff --git a/api/src/glfs-resolve.c b/api/src/glfs-resolve.c
index 76835cbaebd..16093ec2215 100644
--- a/api/src/glfs-resolve.c
+++ b/api/src/glfs-resolve.c
@@ -377,7 +377,7 @@ glfs_resolve_component (struct glfs *fs, xlator_t *subvol, inode_t *parent,
goto out;
}
- ret = dict_set_static_bin (xattr_req, "gfid-req", gfid, 16);
+ ret = dict_set_gfuuid (xattr_req, "gfid-req", gfid, true);
if (ret) {
errno = ENOMEM;
goto out;
@@ -416,7 +416,7 @@ glfs_resolve_component (struct glfs *fs, xlator_t *subvol, inode_t *parent,
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) {
errno = ENOMEM;
goto out;