diff options
author | Manikandan Selvaganesh <mselvaga@redhat.com> | 2015-04-13 15:50:12 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2015-05-07 01:07:28 -0700 |
commit | 8b9c580044f2ac7ecbf2628857c87c2946572019 (patch) | |
tree | 270025306be1aeb93c5683b4667d99cbb9ea35e4 /xlators/nfs/server/src/nfs-inodes.c | |
parent | 9ff9ae1a3e680a84b6e58b397683df6cba622acd (diff) |
nfs / nfs files : porting log messages to a new framework
Backport of http://review.gluster.org/#/c/10214/
Porting log messages to a new framework for nfs-common.c,
nfs-fops.c, nfs-fops.h, nfs-inodes.c, nfs3-fh.c, nfs3-helpers.c.
Cherry picked from f3ff9abbe5f80911a88222cbdbcfa8616b4743da
> Change-Id: I55cd94de62eafe6ad3754cd065d7459a81a9f285
> BUG: 1194640
> Signed-off-by: Manikandan Selvaganesh <mselvaga@redhat.com>
> Reviewed-on: http://review.gluster.org/10214
> Tested-by: Gluster Build System <jenkins@build.gluster.com>
> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Change-Id: I55cd94de62eafe6ad3754cd065d7459a81a9f285
BUG: 1217722
Signed-off-by: Manikandan Selvaganesh <mselvaga@redhat.com>
Reviewed-on: http://review.gluster.org/10550
Tested-by: NetBSD Build System
Reviewed-by: jiffin tony Thottan <jthottan@redhat.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/nfs/server/src/nfs-inodes.c')
-rw-r--r-- | xlators/nfs/server/src/nfs-inodes.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/xlators/nfs/server/src/nfs-inodes.c b/xlators/nfs/server/src/nfs-inodes.c index 63d5e8a198b..32c2f426ff4 100644 --- a/xlators/nfs/server/src/nfs-inodes.c +++ b/xlators/nfs/server/src/nfs-inodes.c @@ -20,6 +20,7 @@ #include "nfs-inodes.h" #include "nfs-fops.h" #include "xlator.h" +#include "nfs-messages.h" #include <libgen.h> @@ -108,7 +109,8 @@ nfs_inode_create (xlator_t *nfsx, xlator_t *xl, nfs_user_t *nfu, newfd = fd_create (pathloc->inode, 0); if (!newfd) { - gf_log (GF_NFS, GF_LOG_ERROR, "Failed to create new fd"); + gf_msg (GF_NFS, GF_LOG_ERROR, ENOMEM, NFS_MSG_NO_MEMORY, + "Failed to create new fd"); ret = -ENOMEM; goto wipe_nfl; } @@ -218,7 +220,8 @@ nfs_inode_open (xlator_t *nfsx, xlator_t *xl, nfs_user_t *nfu, loc_t *loc, newfd = fd_create (loc->inode, 0); if (!newfd) { - gf_log (GF_NFS, GF_LOG_ERROR, "Failed to create fd"); + gf_msg (GF_NFS, GF_LOG_ERROR, ENOMEM, NFS_MSG_NO_MEMORY, + "Failed to create fd"); ret = -ENOMEM; goto err; } @@ -588,7 +591,8 @@ nfs_inode_opendir (xlator_t *nfsx, xlator_t *xl, nfs_user_t *nfu, loc_t *loc, newfd = fd_create (loc->inode, 0); if (!newfd) { - gf_log (GF_NFS, GF_LOG_ERROR, "Failed to create fd"); + gf_msg (GF_NFS, GF_LOG_ERROR, ENOMEM, NFS_MSG_NO_MEMORY, + "Failed to create fd"); ret = -ENOMEM; goto err; } |