From f3ff9abbe5f80911a88222cbdbcfa8616b4743da Mon Sep 17 00:00:00 2001 From: Manikandan Selvaganesh Date: Mon, 13 Apr 2015 15:50:12 +0530 Subject: nfs / nfs files : porting log messages to new framework 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. Change-Id: I55cd94de62eafe6ad3754cd065d7459a81a9f285 BUG: 1194640 Signed-off-by: Manikandan Selvaganesh Reviewed-on: http://review.gluster.org/10214 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Niels de Vos --- xlators/nfs/server/src/nfs-inodes.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'xlators/nfs/server/src/nfs-inodes.c') 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 @@ -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; } -- cgit