aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2012-03-27 12:51:15 -0400
committerSteve French <sfrench@us.ibm.com>2012-03-27 13:27:51 -0400
commit5cfdddcfc415b0a67be25a0dec28ea9b1a537397 (patch)
tree1180e92d333904ad87a5c86201e2fefcdbfe5483 /fs/cifs
parent8f09c3d8dbb8ba35c579e426b3f30bf7bafe0a85 (diff)
CIFS: Add missed forcemand mount option
The 'forcemand' form of 'forcemandatorylock' mount option was missed when the code moved to use the standard token parser. Return it back. Also fix a comment style in the parser. Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/connect.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 980815426ac6..302a15c505a9 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -140,6 +140,7 @@ static const match_table_t cifs_mount_option_tokens = {
140 { Opt_nobrl, "nobrl" }, 140 { Opt_nobrl, "nobrl" },
141 { Opt_nobrl, "nolock" }, 141 { Opt_nobrl, "nolock" },
142 { Opt_forcemandatorylock, "forcemandatorylock" }, 142 { Opt_forcemandatorylock, "forcemandatorylock" },
143 { Opt_forcemandatorylock, "forcemand" },
143 { Opt_setuids, "setuids" }, 144 { Opt_setuids, "setuids" },
144 { Opt_nosetuids, "nosetuids" }, 145 { Opt_nosetuids, "nosetuids" },
145 { Opt_dynperm, "dynperm" }, 146 { Opt_dynperm, "dynperm" },
@@ -1326,9 +1327,11 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
1326 break; 1327 break;
1327 case Opt_nobrl: 1328 case Opt_nobrl:
1328 vol->nobrl = 1; 1329 vol->nobrl = 1;
1329 /* turn off mandatory locking in mode 1330 /*
1331 * turn off mandatory locking in mode
1330 * if remote locking is turned off since the 1332 * if remote locking is turned off since the
1331 * local vfs will do advisory */ 1333 * local vfs will do advisory
1334 */
1332 if (vol->file_mode == 1335 if (vol->file_mode ==
1333 (S_IALLUGO & ~(S_ISUID | S_IXGRP))) 1336 (S_IALLUGO & ~(S_ISUID | S_IXGRP)))
1334 vol->file_mode = S_IALLUGO; 1337 vol->file_mode = S_IALLUGO;