diff options
| author | Manikandan Selvaganesh <mselvaga@redhat.com> | 2015-04-13 12:21:09 +0530 | 
|---|---|---|
| committer | Niels de Vos <ndevos@redhat.com> | 2015-04-28 11:50:41 -0700 | 
| commit | ee6cd10ce947787bf6ea589bca1cb259c4bb214d (patch) | |
| tree | 8ffdb8a6c78bb8d16a2311c39c2b386558d08e26 /xlators/nfs/server/src/mount3-auth.c | |
| parent | 428933dce2c87ea62b4f58af7d260064fade6a8b (diff) | |
nfs / mount files : porting log messages to a new framework
Porting log messages to a new framework for mount3udp_svc.c,
mount3.c, mount3-auth.c files.
Change-Id: I1e9cab500b6052bfac43c5ae1c82278e20d2f898
BUG: 1194640
Signed-off-by: Manikandan Selvaganesh <mselvaga@redhat.com>
Reviewed-on: http://review.gluster.org/10210
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/mount3-auth.c')
| -rw-r--r-- | xlators/nfs/server/src/mount3-auth.c | 17 | 
1 files changed, 10 insertions, 7 deletions
diff --git a/xlators/nfs/server/src/mount3-auth.c b/xlators/nfs/server/src/mount3-auth.c index 25246f96ab1..97c95cbfd23 100644 --- a/xlators/nfs/server/src/mount3-auth.c +++ b/xlators/nfs/server/src/mount3-auth.c @@ -39,6 +39,7 @@  #include "exports.h"  #include "netgroups.h"  #include "mem-pool.h" +#include "nfs-messages.h"  /**   * mnt3_auth_params_init -- Initialize the mount3 authorization parameters @@ -121,7 +122,8 @@ mnt3_auth_set_exports_auth (struct mnt3_auth_params *auth_params,          /* Parse the exports file and set the auth parameter */          ret = exp_file_parse (filename, &expfile, auth_params->ms);          if (ret < 0) { -                gf_log (GF_MNT_AUTH, GF_LOG_ERROR, "Failed to load & parse file" +                gf_msg (GF_MNT_AUTH, GF_LOG_ERROR, 0, NFS_MSG_LOAD_PARSE_ERROR, +                        "Failed to load & parse file"                          " %s, see logs for more information", filename);                  goto out;          } @@ -159,8 +161,9 @@ mnt3_auth_set_netgroups_auth (struct mnt3_auth_params *auth_params,          ngfile = ng_file_parse (filename);          if (!ngfile) { -                gf_log (GF_MNT_AUTH, GF_LOG_ERROR, "Failed to load file" -                        " %s, see logs for more information", filename); +                gf_msg (GF_MNT_AUTH, GF_LOG_ERROR, 0, NFS_MSG_LOAD_PARSE_ERROR, +                        "Failed to load file %s, see logs for more " +                        "information", filename);                  ret = -1;                  goto out;          } @@ -348,8 +351,8 @@ __netgroup_dict_search (dict_t *dict, char *key, data_t *val, void *data)                          /* If it was found, log the message, mark the search                           * params dict as found and return.                           */ -                        gf_log (GF_MNT_AUTH, GF_LOG_DEBUG, -                                "key %s was hashed and found", key); +                        gf_msg_debug (GF_MNT_AUTH, errno, "key %s was hashed " +                                      "and found", key);                          ngsa->found = _gf_true;                          ngsa->found_entry = (struct netgroup_entry *)hdata->data;                          goto out; @@ -429,8 +432,8 @@ __export_dir_lookup_netgroup (dict_t *dict, char *key, data_t *val,          /* We use ++key here because keys start with '@' for ngs */          ngentry = ng_file_get_netgroup (nfile, (key + 1));          if (!ngentry) { -                gf_log (GF_MNT_AUTH, GF_LOG_DEBUG, "%s not found in %s", -                        key, nfile->filename); +                gf_msg_debug (GF_MNT_AUTH, 0, "%s not found in %s", +                              key, nfile->filename);                  goto out;          }  | 
