Skip to contentSkip to conversation

cifs: Don't offer NFS export in Kconfig if nfsd is not enabled

PATCH In review Mark Brown 3 participants 3 messages Apr 27, 2011 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 cifs: Don't offer NFS export in Kconfig if nfsd is not enabled

There's no point in supporting NFS export of filesystems if we don't have nfsd in the first place.

---
 fs/cifs/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cifs/Kconfig +1 -1
index 75c47cd..61e5f95 100644
@@ -175,6 +175,6 @@ config CIFS_SMB2
 
 config CIFS_NFSD_EXPORT
 	  bool "Allow nfsd to export CIFS file system (EXPERIMENTAL)"
-	  depends on CIFS && EXPERIMENTAL
+	  depends on CIFS && NFSD && EXPERIMENTAL
 	  help
 	   Allows NFS server to export a CIFS mounted share (nfsd over cifs)
Signature · 1 line
1.7.4.1
Acked-by
#2 lore raw
In reply to a message not in the archive
Quoted 13 lines · On Wed, 27 Apr 2011 15:22:27 +0100 Mark Brown…

There's no point in supporting NFS export of filesystems if we don't have nfsd in the first place.

---
 fs/cifs/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cifs/Kconfig +0 -0
index 75c47cd..61e5f95 100644

fs/cifs/Kconfig config CIFS_SMB2 · line 180

Quoted 7 lines
fs/cifs/Kconfig +1 -1
@@ -175,6 +175,6 @@ config CIFS_SMB2
 
 config CIFS_NFSD_EXPORT
 	  bool "Allow nfsd to export CIFS file system (EXPERIMENTAL)"
-	  depends on CIFS && EXPERIMENTAL
+	  depends on CIFS && NFSD && EXPERIMENTAL
 	  help
 	   Allows NFS server to export a CIFS mounted share (nfsd over cifs)

This looks ok, though I'd still prefer to see all of the nfs exporting code removed. The cifs protocol has no consistent way to look up inodes by filehandle and so it simply can never work.

#4 lore raw
In reply to a message not in the archive
Quoted 28 lines · Jeff Layton
Quoted 14 lines · On Wed, 27 Apr 2011 15:22:27 +0100 Mark Brown…

There's no point in supporting NFS export of filesystems if we don't have nfsd in the first place.

---
 fs/cifs/Kconfig |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cifs/Kconfig +0 -0
index 75c47cd..61e5f95 100644
@@ -175,6 +175,6 @@ config CIFS_SMB2
 
Quoted 6 lines

 config CIFS_NFSD_EXPORT
        bool "Allow nfsd to export CIFS file system (EXPERIMENTAL)"
-       depends on CIFS && EXPERIMENTAL
+       depends on CIFS && NFSD && EXPERIMENTAL
        help
         Allows NFS server to export a CIFS mounted share (nfsd over cifs)

This looks ok, though I'd still prefer to see all of the nfs exporting code removed. The cifs protocol has no consistent way to look up inodes by filehandle and so it simply can never work.

Quoted 1 line

Patch seems reasonable

Signature · 3 lines
Thanks,

Steve