linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benny Halevy <bhalevy@tonian.com>
To: lior@tonian.com
Cc: linux-nfs@vger.kernel.org
Subject: [PATCH] pnfsd: apply pnfs export option on pnfs export ops setup
Date: Mon, 14 May 2012 11:15:47 +0300	[thread overview]
Message-ID: <1336983347-18737-1-git-send-email-bhalevy@tonian.com> (raw)
In-Reply-To: <4FAFB255.1040804@tonian.com>

Signed-off-by: Benny Halevy <bhalevy@tonian.com>
---
 fs/nfsd/export.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
index b6e46ab..b2fa749 100644
--- a/fs/nfsd/export.c
+++ b/fs/nfsd/export.c
@@ -421,7 +421,7 @@ static int check_export(struct inode *inode, int *flags, unsigned char *uuid)
 		return -EINVAL;
 	}
 
-	return pnfsd_check_export(inode, flags);
+	return 0;
 }
 
 #ifdef CONFIG_NFSD_V4
@@ -624,6 +624,13 @@ static int svc_export_parse(struct cache_detail *cd, char *mesg, int mlen)
 				   exp.ex_uuid);
 		if (err)
 			goto out4;
+
+		if (exp.ex_pnfs) {
+			err = pnfsd_check_export(exp.ex_path.dentry->d_inode,
+						 &exp.ex_flags);
+			if (err)
+				goto out4;
+		}
 	}
 
 	expp = svc_export_lookup(&exp);
-- 
1.7.6.5


      reply	other threads:[~2012-05-14  8:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-13 12:22 nfs 4.1 server returns available file lyaout type when the file system is exported without pNFS Lior
2012-05-13 13:08 ` nfs 4.1 server returns available file lyaout type when the file system is exported without pNFS (updated) Lior
2012-05-14  8:15   ` Benny Halevy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1336983347-18737-1-git-send-email-bhalevy@tonian.com \
    --to=bhalevy@tonian.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=lior@tonian.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).