From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J. Bruce Fields" Subject: [PATCH 2 of 6] svcrpc: rename pg_authenticate Date: Tue, 18 Jan 2005 13:06:20 -0500 Message-ID: <1106070956.b175e53d.2@fieldses.org> References: <1106070956.b175e53d.1@fieldses.org> Cc: nfs@lists.sourceforge.net Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30) id 1Cqxk0-0003kT-Do for nfs@lists.sourceforge.net; Tue, 18 Jan 2005 10:06:08 -0800 Received: from dh173.citi.umich.edu ([141.211.133.173] helo=puzzle.fieldses.org ident=Debian-exim) by sc8-sf-mx1.sourceforge.net with esmtp (TLSv1:AES256-SHA:256) (Exim 4.41) id 1Cqxjx-0004k5-R0 for nfs@lists.sourceforge.net; Tue, 18 Jan 2005 10:06:08 -0800 To: Neil Brown In-Reply-To: <1106070956.b175e53d.1@fieldses.org> Sender: nfs-admin@lists.sourceforge.net Errors-To: nfs-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Post: List-Help: List-Subscribe: , List-Archive: Later patches remove pg_authenticate and use the name for a different purpose; so rename it to pg_authenticate_obsolete for now. Signed-off-by: J. Bruce Fields --- linux-2.6.10-bk14-bfields/fs/nfs/callback.c | 2 +- linux-2.6.10-bk14-bfields/include/linux/sunrpc/svc.h | 2 +- linux-2.6.10-bk14-bfields/net/sunrpc/svc.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff -puN fs/nfs/callback.c~svcrpc_rename_pg_authenticate fs/nfs/callback.c --- linux-2.6.10-bk14/fs/nfs/callback.c~svcrpc_rename_pg_authenticate 2005-01-11 16:43:02.000000000 -0500 +++ linux-2.6.10-bk14-bfields/fs/nfs/callback.c 2005-01-11 16:43:02.000000000 -0500 @@ -321,5 +321,5 @@ static struct svc_program nfs4_callback_ .pg_name = "NFSv4 callback", /* service name */ .pg_class = "nfs", /* authentication class */ .pg_stats = &nfs4_callback_stats, - .pg_authenticate = nfs_callback_auth, + .pg_authenticate_obsolete = nfs_callback_auth, }; diff -puN include/linux/sunrpc/svc.h~svcrpc_rename_pg_authenticate include/linux/sunrpc/svc.h --- linux-2.6.10-bk14/include/linux/sunrpc/svc.h~svcrpc_rename_pg_authenticate 2005-01-11 16:43:02.000000000 -0500 +++ linux-2.6.10-bk14-bfields/include/linux/sunrpc/svc.h 2005-01-11 16:43:02.000000000 -0500 @@ -252,7 +252,7 @@ struct svc_program { char * pg_class; /* class name: services sharing authentication */ struct svc_stat * pg_stats; /* rpc statistics */ /* Override authentication. NULL means use default */ - int (*pg_authenticate)(struct svc_rqst *, u32 *); + int (*pg_authenticate_obsolete)(struct svc_rqst *, u32 *); }; /* diff -puN net/sunrpc/svc.c~svcrpc_rename_pg_authenticate net/sunrpc/svc.c --- linux-2.6.10-bk14/net/sunrpc/svc.c~svcrpc_rename_pg_authenticate 2005-01-11 16:43:02.000000000 -0500 +++ linux-2.6.10-bk14-bfields/net/sunrpc/svc.c 2005-01-11 16:43:02.000000000 -0500 @@ -311,8 +311,8 @@ svc_process(struct svc_serv *serv, struc * We do this before anything else in order to get a decent * auth verifier. */ - if (progp->pg_authenticate != NULL) - auth_res = progp->pg_authenticate(rqstp, &auth_stat); + if (progp->pg_authenticate_obsolete != NULL) + auth_res = progp->pg_authenticate_obsolete(rqstp, &auth_stat); else auth_res = svc_authenticate(rqstp, &auth_stat); switch (auth_res) { _ ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs