diff options
| author | Humble Devassy Chirammal <hchiramm@redhat.com> | 2015-04-25 12:44:15 +0530 | 
|---|---|---|
| committer | Niels de Vos <ndevos@redhat.com> | 2015-04-28 05:46:31 -0700 | 
| commit | 8986a47c54db4769feb4e6664532386f1cd0275d (patch) | |
| tree | d13b3b5593b36363f604e9cc6a0067bcbc85596d /api/src/glfs-handleops.c | |
| parent | 315364b78cd152835cf6d30e32fd145a942e1d7a (diff) | |
libgfapi : port gfapi to new logging framework
Change-Id: Iaa0a92f82b9a0a26eda1a8d72b3b66ce66fab443
BUG: 1194640
Signed-off-by: Humble Devassy Chirammal <hchiramm@redhat.com>
Reviewed-on: http://review.gluster.org/9918
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: jiffin tony Thottan <jthottan@redhat.com>
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
Reviewed-by: soumya k <skoduri@redhat.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
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 886eb3fc42c..ee8ea626c51 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); @@ -1161,7 +1162,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; @@ -1171,7 +1173,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;  | 
