From mboxrd@z Thu Jan 1 00:00:00 1970 From: NeilBrown Subject: [PATCH 015 of 20] knfsd: nfsd4: make readonly access depend on pseudoflavor Date: Tue, 10 Jul 2007 12:27:49 +1000 Message-ID: <1070710022749.13539@suse.de> References: <20070710121949.12548.patches@notabene> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Neil Brown , "J . Bruce Fields" , nfs@lists.sourceforge.net, linux-kernel@vger.kernel.org To: Andrew Morton Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1I85SB-00057F-CV for nfs@lists.sourceforge.net; Mon, 09 Jul 2007 19:27:51 -0700 Received: from mx1.suse.de ([195.135.220.2]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1I85SE-0001bK-Ep for nfs@lists.sourceforge.net; Mon, 09 Jul 2007 19:27:55 -0700 List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net From: J. Bruce Fields Allow readonly access to vary depending on the pseudoflavor, using the flag passed with each pseudoflavor in the export downcall. Signed-off-by: "J. Bruce Fields" Signed-off-by: Neil Brown ### Diffstat output ./include/linux/nfsd/export.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff .prev/include/linux/nfsd/export.h ./include/linux/nfsd/export.h --- .prev/include/linux/nfsd/export.h 2007-07-10 11:40:31.000000000 +1000 +++ ./include/linux/nfsd/export.h 2007-07-10 11:50:43.000000000 +1000 @@ -43,7 +43,7 @@ #define NFSEXP_ALLFLAGS 0xFE3F /* The flags that may vary depending on security flavor: */ -#define NFSEXP_SECINFO_FLAGS 0 +#define NFSEXP_SECINFO_FLAGS NFSEXP_READONLY #ifdef __KERNEL__ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762882AbXGJC25 (ORCPT ); Mon, 9 Jul 2007 22:28:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762680AbXGJC1y (ORCPT ); Mon, 9 Jul 2007 22:27:54 -0400 Received: from mx1.suse.de ([195.135.220.2]:38249 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762490AbXGJC1x (ORCPT ); Mon, 9 Jul 2007 22:27:53 -0400 From: NeilBrown To: Andrew Morton Date: Tue, 10 Jul 2007 12:27:49 +1000 Message-Id: <1070710022749.13539@suse.de> X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9D Cc: J "." Bruce Fields Cc: Neil Brown Subject: [PATCH 015 of 20] knfsd: nfsd4: make readonly access depend on pseudoflavor References: <20070710121949.12548.patches@notabene> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org From: J. Bruce Fields Allow readonly access to vary depending on the pseudoflavor, using the flag passed with each pseudoflavor in the export downcall. Signed-off-by: "J. Bruce Fields" Signed-off-by: Neil Brown ### Diffstat output ./include/linux/nfsd/export.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff .prev/include/linux/nfsd/export.h ./include/linux/nfsd/export.h --- .prev/include/linux/nfsd/export.h 2007-07-10 11:40:31.000000000 +1000 +++ ./include/linux/nfsd/export.h 2007-07-10 11:50:43.000000000 +1000 @@ -43,7 +43,7 @@ #define NFSEXP_ALLFLAGS 0xFE3F /* The flags that may vary depending on security flavor: */ -#define NFSEXP_SECINFO_FLAGS 0 +#define NFSEXP_SECINFO_FLAGS NFSEXP_READONLY #ifdef __KERNEL__