summaryrefslogtreecommitdiffstats
path: root/api/src/glfs-fops.c
diff options
context:
space:
mode:
authorMilind Changire <mchangir@redhat.com>2015-10-29 20:39:57 +0530
committerNiels de Vos <ndevos@redhat.com>2015-11-09 01:22:22 -0800
commit529c3bf41f666d1238f71fba0465eaa812322276 (patch)
tree743a679b220d855997c8310415f1df29bb906597 /api/src/glfs-fops.c
parent5d1ff7efd6ab3bd29a29922a9ea1e1aaf02544ad (diff)
gfapi: function exit should use __GLFS_EXIT_FS
glfs api functions must be using __GLFS_EXIT_FS to exit from functions Change-Id: If6b71d8182f3dffe15a3606f31798904cb67be1b BUG: 1263056 Signed-off-by: Milind Changire <mchangir@redhat.com> Reviewed-on: http://review.gluster.org/12462 Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'api/src/glfs-fops.c')
-rw-r--r--api/src/glfs-fops.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c
index c1af46b48f1..e57ad3f4a15 100644
--- a/api/src/glfs-fops.c
+++ b/api/src/glfs-fops.c
@@ -2850,13 +2850,13 @@ glfs_getxattr_common (struct glfs *fs, const char *path, const char *name,
if (!name || *name == '\0') {
ret = -1;
errno = EINVAL;
- goto invalid_fs;
+ goto out;
}
if (strlen(name) > GF_XATTR_NAME_MAX) {
ret = -1;
errno = ENAMETOOLONG;
- goto invalid_fs;
+ goto out;
}
subvol = glfs_active_subvol (fs);
@@ -2933,13 +2933,13 @@ pub_glfs_fgetxattr (struct glfs_fd *glfd, const char *name, void *value,
if (!name || *name == '\0') {
ret = -1;
errno = EINVAL;
- goto invalid_fs;
+ goto out;
}
if (strlen(name) > GF_XATTR_NAME_MAX) {
ret = -1;
errno = ENAMETOOLONG;
- goto invalid_fs;
+ goto out;
}
subvol = glfs_active_subvol (glfd->fs);
@@ -3138,13 +3138,13 @@ glfs_setxattr_common (struct glfs *fs, const char *path, const char *name,
if (!name || *name == '\0') {
ret = -1;
errno = EINVAL;
- goto invalid_fs;
+ goto out;
}
if (strlen(name) > GF_XATTR_NAME_MAX) {
ret = -1;
errno = ENAMETOOLONG;
- goto invalid_fs;
+ goto out;
}
subvol = glfs_active_subvol (fs);
@@ -3226,13 +3226,13 @@ pub_glfs_fsetxattr (struct glfs_fd *glfd, const char *name, const void *value,
if (!name || *name == '\0') {
ret = -1;
errno = EINVAL;
- goto invalid_fs;
+ goto out;
}
if (strlen(name) > GF_XATTR_NAME_MAX) {
ret = -1;
errno = ENAMETOOLONG;
- goto invalid_fs;
+ goto out;
}
subvol = glfs_active_subvol (glfd->fs);