From a1755ee2765f3d1c9c26d51a49ad63d133932710 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Thu, 1 Jan 2015 13:15:45 +0100 Subject: glusterfsd: add "print-netgroups" and "print-exports" command NFS now has the ability to use a separate file for "netgroups" and "exports". An administrator should have the ability to check the validity of the files before applying the configuration. The "glusterfsd" command now has the following additional arguments that can be used to check the configuration: --print-netgroups: Validate the netgroups file and print it out --print-exports: Validate the exports file and print it out BUG: 1143880 Change-Id: I24c40d50110d49d8290f9fd916742f7e4d0df85f URL: http://www.gluster.org/community/documentation/index.php/Features/Exports_Netgroups_Authentication Original-author: Shreyas Siravara CC: Richard Wareing CC: Jiffin Tony Thottan Signed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/9365 Reviewed-by: Vijay Bellur Tested-by: Vijay Bellur --- xlators/nfs/server/src/netgroups.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators/nfs/server/src/netgroups.c') diff --git a/xlators/nfs/server/src/netgroups.c b/xlators/nfs/server/src/netgroups.c index f5c966948f7..a505586961c 100644 --- a/xlators/nfs/server/src/netgroups.c +++ b/xlators/nfs/server/src/netgroups.c @@ -73,7 +73,7 @@ static struct netgroups_file * _netgroups_file_init () { struct netgroups_file *file = GF_MALLOC (sizeof (*file), - gf_nfs_mt_netgroups); + gf_common_mt_nfs_netgroups); if (!file) goto out; @@ -179,7 +179,7 @@ static struct netgroup_entry * _netgroup_entry_init () { struct netgroup_entry *entry = GF_CALLOC (1, sizeof (*entry), - gf_nfs_mt_netgroups); + gf_common_mt_nfs_netgroups); return entry; } @@ -324,7 +324,7 @@ static struct netgroup_host * _netgroup_host_init () { struct netgroup_host *host = GF_CALLOC (1, sizeof (*host), - gf_nfs_mt_netgroups); + gf_common_mt_nfs_netgroups); return host; } -- cgit