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>
This commit is contained in:
parent
5d1ff7efd6
commit
529c3bf41f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user