diff options
Diffstat (limited to 'api/src/glfs-handleops.c')
| -rw-r--r-- | api/src/glfs-handleops.c | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/api/src/glfs-handleops.c b/api/src/glfs-handleops.c index 12ca94cb2dc..fd14b4cf70c 100644 --- a/api/src/glfs-handleops.c +++ b/api/src/glfs-handleops.c @@ -14,6 +14,7 @@  #include "syncop.h"  #include "glfs.h"  #include "glfs-handles.h" +#include "gfapi-messages.h"  int  glfs_listxattr_process (void *value, size_t size, dict_t *xattr); @@ -1212,7 +1213,8 @@ pub_glfs_h_create_from_handle (struct glfs *fs, unsigned char *handle, int len,          ret = syncop_lookup (subvol, &loc, &iatt, 0, 0, 0);          DECODE_SYNCOP_ERR (ret);          if (ret) { -                gf_log (subvol->name, GF_LOG_WARNING, +                gf_msg (subvol->name, GF_LOG_WARNING, errno, +                        API_MSG_INODE_REFRESH_FAILED,                          "inode refresh of %s failed: %s",                          uuid_utoa (loc.gfid), strerror (errno));                  goto out; @@ -1222,7 +1224,8 @@ pub_glfs_h_create_from_handle (struct glfs *fs, unsigned char *handle, int len,          if (newinode)                  inode_lookup (newinode);          else { -                gf_log (subvol->name, GF_LOG_WARNING, +                gf_msg (subvol->name, GF_LOG_WARNING, EINVAL, +                        API_MSG_INVALID_ENTRY,                          "inode linking of %s failed: %s",                          uuid_utoa (loc.gfid), strerror (errno));                  errno = EINVAL;  | 
