>From Kinglong Mee <kinglong...@gmail.com>:

Kinglong Mee has uploaded this change for review. ( 
https://review.gerrithub.io/383905


Change subject: FSAL_GLUSTER: avoid overwrite the old errno in SET_GLUSTER_CREDS
......................................................................

FSAL_GLUSTER: avoid overwrite the old errno in SET_GLUSTER_CREDS

There are many using of errno after SET_GLUSTER_CREDS as,

  glfd = glfs_h_opendir(glfs_export->gl_fs->fs, objhandle->glhandle);

  SET_GLUSTER_CREDS(glfs_export, NULL, NULL, 0, NULL);

  if (glfd == NULL)
         return gluster2fsal_error(errno);

but, glfs_setfsxxx may overwrite the errno in setglustercreds().
I don't want to store/restore between SET_GLUSTER_CREDS, so,
do it in SET_GLUSTER_CREDS.

Change-Id: Iede5c3e1d794de948791ebdaf684357f2f58f5b9
Signed-off-by: Kinglong Mee <kinglong...@gmail.com>
---
M src/FSAL/FSAL_GLUSTER/gluster_internal.h
1 file changed, 7 insertions(+), 5 deletions(-)



  git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha 
refs/changes/05/383905/1
-- 
To view, visit https://review.gerrithub.io/383905
To unsubscribe, visit https://review.gerrithub.io/settings

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iede5c3e1d794de948791ebdaf684357f2f58f5b9
Gerrit-Change-Number: 383905
Gerrit-PatchSet: 1
Gerrit-Owner: Kinglong Mee <kinglong...@gmail.com>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to