diff options
author | Shirish Pargaonkar <shirishpargaonkar@gmail.com> | 2011-02-25 11:48:55 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-05-19 10:10:49 -0400 |
commit | 257208736acc694def83627fa0de2892490a5d42 (patch) | |
tree | fefef8ec91edec3d38082977d079663e21032706 | |
parent | b34cb85cc2d84c487afe2baa2d3c04d8b677bbd0 (diff) |
cifs: cleanup: Rename and remove config flags
Remove config flag CIFS_EXPERIMENTAL.
Do export operations under new config flag CIFS_NFSD_EXPORT
Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
-rw-r--r-- | fs/cifs/Kconfig | 14 | ||||
-rw-r--r-- | fs/cifs/cifsfs.c | 4 | ||||
-rw-r--r-- | fs/cifs/cifsfs.h | 4 | ||||
-rw-r--r-- | fs/cifs/cifssmb.c | 4 | ||||
-rw-r--r-- | fs/cifs/export.c | 4 |
5 files changed, 9 insertions, 21 deletions
diff --git a/fs/cifs/Kconfig b/fs/cifs/Kconfig index 2a492aad40d1..7c584be27fdf 100644 --- a/fs/cifs/Kconfig +++ b/fs/cifs/Kconfig | |||
@@ -172,16 +172,8 @@ config CIFS_SMB2 | |||
172 | 172 | ||
173 | Unless you are a developer or tester, say N. | 173 | Unless you are a developer or tester, say N. |
174 | 174 | ||
175 | config CIFS_EXPERIMENTAL | 175 | config CIFS_NFSD_EXPORT |
176 | bool "CIFS Experimental Features (EXPERIMENTAL)" | 176 | bool "Allow nfsd to export CIFS file system (EXPERIMENTAL)" |
177 | depends on CIFS && EXPERIMENTAL | 177 | depends on CIFS && EXPERIMENTAL |
178 | help | 178 | help |
179 | Enables cifs features under testing. These features are | 179 | Allows NFS server to export a CIFS mounted share (nfsd over cifs) |
180 | experimental and currently include DFS support and directory | ||
181 | change notification ie fcntl(F_DNOTIFY), as well as the upcall | ||
182 | mechanism which will be used for Kerberos session negotiation | ||
183 | and uid remapping. Some of these features also may depend on | ||
184 | setting a value of 1 to the pseudo-file /proc/fs/cifs/Experimental | ||
185 | (which is disabled by default). See the file fs/cifs/README | ||
186 | for more details. If unsure, say N. | ||
187 | |||
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index b45d38b89116..30fc505b7ef1 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -184,12 +184,12 @@ cifs_read_super(struct super_block *sb, void *data, | |||
184 | else | 184 | else |
185 | sb->s_d_op = &cifs_dentry_ops; | 185 | sb->s_d_op = &cifs_dentry_ops; |
186 | 186 | ||
187 | #ifdef CONFIG_CIFS_EXPERIMENTAL | 187 | #ifdef CIFS_NFSD_EXPORT |
188 | if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM) { | 188 | if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM) { |
189 | cFYI(1, "export ops supported"); | 189 | cFYI(1, "export ops supported"); |
190 | sb->s_export_op = &cifs_export_ops; | 190 | sb->s_export_op = &cifs_export_ops; |
191 | } | 191 | } |
192 | #endif /* EXPERIMENTAL */ | 192 | #endif /* CIFS_NFSD_EXPORT */ |
193 | 193 | ||
194 | return 0; | 194 | return 0; |
195 | 195 | ||
diff --git a/fs/cifs/cifsfs.h b/fs/cifs/cifsfs.h index f191244f266e..371d021815b1 100644 --- a/fs/cifs/cifsfs.h +++ b/fs/cifs/cifsfs.h | |||
@@ -123,9 +123,9 @@ extern ssize_t cifs_getxattr(struct dentry *, const char *, void *, size_t); | |||
123 | extern ssize_t cifs_listxattr(struct dentry *, char *, size_t); | 123 | extern ssize_t cifs_listxattr(struct dentry *, char *, size_t); |
124 | extern long cifs_ioctl(struct file *filep, unsigned int cmd, unsigned long arg); | 124 | extern long cifs_ioctl(struct file *filep, unsigned int cmd, unsigned long arg); |
125 | 125 | ||
126 | #ifdef CONFIG_CIFS_EXPERIMENTAL | 126 | #ifdef CIFS_NFSD_EXPORT |
127 | extern const struct export_operations cifs_export_ops; | 127 | extern const struct export_operations cifs_export_ops; |
128 | #endif /* EXPERIMENTAL */ | 128 | #endif /* CIFS_NFSD_EXPORT */ |
129 | 129 | ||
130 | #define CIFS_VERSION "1.71" | 130 | #define CIFS_VERSION "1.71" |
131 | #endif /* _CIFSFS_H */ | 131 | #endif /* _CIFSFS_H */ |
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index ae5e451a0d08..e6374dda3c6a 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -541,10 +541,6 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses) | |||
541 | server->secType = RawNTLMSSP; | 541 | server->secType = RawNTLMSSP; |
542 | else if (secFlags & CIFSSEC_MAY_LANMAN) | 542 | else if (secFlags & CIFSSEC_MAY_LANMAN) |
543 | server->secType = LANMAN; | 543 | server->secType = LANMAN; |
544 | /* #ifdef CONFIG_CIFS_EXPERIMENTAL | ||
545 | else if (secFlags & CIFSSEC_MAY_PLNTXT) | ||
546 | server->secType = ?? | ||
547 | #endif */ | ||
548 | else { | 544 | else { |
549 | rc = -EOPNOTSUPP; | 545 | rc = -EOPNOTSUPP; |
550 | cERROR(1, "Invalid security type"); | 546 | cERROR(1, "Invalid security type"); |
diff --git a/fs/cifs/export.c b/fs/cifs/export.c index 993f82045bf6..55d87ac52000 100644 --- a/fs/cifs/export.c +++ b/fs/cifs/export.c | |||
@@ -45,7 +45,7 @@ | |||
45 | #include "cifs_debug.h" | 45 | #include "cifs_debug.h" |
46 | #include "cifsfs.h" | 46 | #include "cifsfs.h" |
47 | 47 | ||
48 | #ifdef CONFIG_CIFS_EXPERIMENTAL | 48 | #ifdef CIFS_NFSD_EXPORT |
49 | static struct dentry *cifs_get_parent(struct dentry *dentry) | 49 | static struct dentry *cifs_get_parent(struct dentry *dentry) |
50 | { | 50 | { |
51 | /* BB need to add code here eventually to enable export via NFSD */ | 51 | /* BB need to add code here eventually to enable export via NFSD */ |
@@ -63,5 +63,5 @@ const struct export_operations cifs_export_ops = { | |||
63 | .encode_fs = */ | 63 | .encode_fs = */ |
64 | }; | 64 | }; |
65 | 65 | ||
66 | #endif /* EXPERIMENTAL */ | 66 | #endif /* CIFS_NFSD_EXPORT */ |
67 | 67 | ||