diff options
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; } |