summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/nfs-inodes.c
diff options
context:
space:
mode:
authorManikandan Selvaganesh <mselvaga@redhat.com>2015-04-13 15:50:12 +0530
committerNiels de Vos <ndevos@redhat.com>2015-04-28 11:57:54 -0700
commitf3ff9abbe5f80911a88222cbdbcfa8616b4743da (patch)
treea7e534c08da195e0a9ce87cbc47d2d8d1d8e80ec /xlators/nfs/server/src/nfs-inodes.c
parentee6cd10ce947787bf6ea589bca1cb259c4bb214d (diff)
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 <mselvaga@redhat.com> Reviewed-on: http://review.gluster.org/10214 Tested-by: NetBSD Build System Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'xlators/nfs/server/src/nfs-inodes.c')
-rw-r--r--xlators/nfs/server/src/nfs-inodes.c10
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;
}