CIFS: Add missed forcemand mount option
Subsystems (2)
PATCH 1/1 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.
--- fs/cifs/connect.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
fs/cifs/connect.c +5 -2
@@ -140,6 +140,7 @@ static const match_table_t cifs_mount_option_tokens = { { Opt_nobrl, "nobrl" }, { Opt_nobrl, "nolock" }, { Opt_forcemandatorylock, "forcemandatorylock" }, + { Opt_forcemandatorylock, "forcemand" }, { Opt_setuids, "setuids" }, { Opt_nosetuids, "nosetuids" }, { Opt_dynperm, "dynperm" },
@@ -1397,9 +1398,11 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,break ;case Opt_nobrl: vol->nobrl =1 ; -/* turn off mandatory locking in mode +/* +* turn off mandatory locking in mode * if remote locking is turned off since the -* local vfs will do advisory */ +* local vfs will do advisory +*/ if (vol->file_mode == (S_IALLUGO & ~(S_ISUID |S_IXGRP ))) vol->file_mode =S_IALLUGO ;
Signature · 1 line
1.7.1
Jeff Layton
Reviewed-byQuoted 15 lines · On Tue, 27 Mar 2012 20:51:15 +0400 Pavel Shilovsky…
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 <[email protected]>--- fs/cifs/connect.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)fs/cifs/connect.c +0
-0
fs/cifs/connect.c static const match_table_t cifs_mount_option_tokens = { · line 143
Quoted 4 lines
fs/cifs/connect.c +1
-0@@ -140,6 +140,7 @@ static const match_table_t cifs_mount_option_tokens = { { Opt_nobrl, "nobrl" }, { Opt_nobrl, "nolock" }, { Opt_forcemandatorylock, "forcemandatorylock" }, + { Opt_forcemandatorylock, "forcemand" },
This looks fine.
Quoted 4 lines
fs/cifs/connect.c +0
-0{ Opt_setuids, "setuids" }, { Opt_nosetuids, "nosetuids" }, { Opt_dynperm, "dynperm" },
fs/cifs/connect.c cifs_parse_mount_options(const char *mountdata, const char *devname, · line 1405
Quoted 10 lines
fs/cifs/connect.c +4
-2@@ -1397,9 +1398,11 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,break ;case Opt_nobrl: vol->nobrl =1 ; -/* turn off mandatory locking in mode +/* +* turn off mandatory locking in mode * if remote locking is turned off since the -* local vfs will do advisory */ +* local vfs will do advisory +*/
This doesn't look like it's related but just a comment cleanup?
fs/cifs/connect.c cifs_parse_mount_options(const char *mountdata, const char *devname, · line 1408
Quoted 3 lines
fs/cifs/connect.c +0
-0if (vol->file_mode == (S_IALLUGO & ~(S_ISUID |S_IXGRP ))) vol->file_mode =S_IALLUGO ;
Either way...
27 марта 2012 г. 21:07 пользователь Jeff Layton <[email protected]> написал:
Quoted 25 lines
Quoted 15 lines · On Tue, 27 Mar 2012 20:51:15 +0400 Pavel Shilovsky…
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 <[email protected]>---
fs/cifs/connect.c | 7 +++++--1 files changed, 5 insertions(+), 2 deletions(-)fs/cifs/connect.c +0
-0fs/cifs/connect.c static const match_table_t cifs_mount_option_tokens = { · line 143
Quoted 4 lines
fs/cifs/connect.c +1
-0@@ -140,6 +140,7 @@ static const match_table_t cifs_mount_option_tokens = { { Opt_nobrl, "nobrl" }, { Opt_nobrl, "nolock" }, { Opt_forcemandatorylock, "forcemandatorylock" }, + { Opt_forcemandatorylock, "forcemand" },This looks fine.
Quoted 16 lines
Quoted 6 lines
fs/cifs/connect.c +0
-0{ Opt_setuids, "setuids" }, { Opt_nosetuids, "nosetuids" }, { Opt_dynperm, "dynperm" },@@ -1397,9 +1398,11 @@ cifs_parse_mount_options(const char *mountdata, const char *devname, break;case
Opt_nobrl:Quoted 8 lines
vol->nobrl= 1;
- /* turn off mandatory locking in mode
+ /*
+ * turn off mandatory locking in mode
* if remote locking is turned off since the
- * local vfs will do advisory */
+ * local vfs will do advisory
+ */This doesn't look like it's related but just a comment cleanup?
Yes - just a cleanup!
Quoted 8 lines
Quoted 4 lines
if (
vol->file_mode==
(S_IALLUGO& ~(S_ISUID |S_IXGRP)))vol->file_mode=S_IALLUGO;Either way...
Reviewed-by Jeff Layton <[email protected]>
Signature · 2 lines
Best regards, Pavel Shilovsky.
27 марта 2012 г. 21:17 пользователь Pavel Shilovsky <[email protected]> написал:
Quoted 43 lines
27 марта 2012 г. 21:07 пользователь Jeff Layton <[email protected]> написал:
Quoted 25 lines
Quoted 15 lines · On Tue, 27 Mar 2012 20:51:15 +0400 Pavel Shilovsky…
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 <[email protected]>---
fs/cifs/connect.c | 7 +++++--1 files changed, 5 insertions(+), 2 deletions(-)fs/cifs/connect.c +0
-0fs/cifs/connect.c static const match_table_t cifs_mount_option_tokens = { · line 143
Quoted 4 lines
fs/cifs/connect.c +1
-0@@ -140,6 +140,7 @@ static const match_table_t cifs_mount_option_tokens = { { Opt_nobrl, "nobrl" }, { Opt_nobrl, "nolock" }, { Opt_forcemandatorylock, "forcemandatorylock" }, + { Opt_forcemandatorylock, "forcemand" },This looks fine.
Quoted 16 lines
Quoted 6 lines
fs/cifs/connect.c +0
-0{ Opt_setuids, "setuids" }, { Opt_nosetuids, "nosetuids" }, { Opt_dynperm, "dynperm" },@@ -1397,9 +1398,11 @@ cifs_parse_mount_options(const char *mountdata, const char *devname, break;case
Opt_nobrl:Quoted 8 lines
vol->nobrl= 1;
- /* turn off mandatory locking in mode
+ /*
+ * turn off mandatory locking in mode
* if remote locking is turned off since the
- * local vfs will do advisory */
+ * local vfs will do advisory
+ */This doesn't look like it's related but just a comment cleanup?
Quoted 2 lines
Yes - just a cleanup!
seems like I needed to exclude this out of the patch and respin but it has been already merged into master.
Signature · 2 lines
Best regards, Pavel Shilovsky.
Quoted 45 lines · On Tue, 27 Mar 2012 22:20:24 +0400 Pavel Shilovsky…
27 марта 2012 г. 21:17 пользователь Pavel Shilovsky <[email protected]> написал:
Quoted 43 lines
27 марта 2012 г. 21:07 пользователь Jeff Layton <[email protected]> написал:
Quoted 41 lines
Quoted 15 lines · On Tue, 27 Mar 2012 20:51:15 +0400 Pavel Shilovsky…
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 <[email protected]>---
fs/cifs/connect.c | 7 +++++--1 files changed, 5 insertions(+), 2 deletions(-)fs/cifs/connect.c +0
-0fs/cifs/connect.c static const match_table_t cifs_mount_option_tokens = { · line 143
Quoted 4 lines
fs/cifs/connect.c +1
-0@@ -140,6 +140,7 @@ static const match_table_t cifs_mount_option_tokens = { { Opt_nobrl, "nobrl" }, { Opt_nobrl, "nolock" }, { Opt_forcemandatorylock, "forcemandatorylock" }, + { Opt_forcemandatorylock, "forcemand" },This looks fine.
Quoted 6 lines
fs/cifs/connect.c +0
-0{ Opt_setuids, "setuids" }, { Opt_nosetuids, "nosetuids" }, { Opt_dynperm, "dynperm" },@@ -1397,9 +1398,11 @@ cifs_parse_mount_options(const char *mountdata, const char *devname, break;case
Opt_nobrl:Quoted 8 lines
vol->nobrl= 1;
- /* turn off mandatory locking in mode
+ /*
+ * turn off mandatory locking in mode
* if remote locking is turned off since the
- * local vfs will do advisory */
+ * local vfs will do advisory
+ */This doesn't look like it's related but just a comment cleanup?
Quoted 6 lines
Quoted 2 lines
Yes - just a cleanup!
seems like I needed to exclude this out of the patch and respin but it has been already merged into master.
That's fine -- not a big deal...
Signature · 1 line
Jeff Layton <[email protected]>
Sachin Prabhu
Reviewed-byQuoted 26 lines · Pavel Shilovsky
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 <[email protected]>--- fs/cifs/connect.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)fs/cifs/connect.c +1
-0@@ -140,6 +140,7 @@ static const match_table_t cifs_mount_option_tokens = { { Opt_nobrl, "nobrl" }, { Opt_nobrl, "nolock" }, { Opt_forcemandatorylock, "forcemandatorylock" }, + { Opt_forcemandatorylock, "forcemand" }, { Opt_setuids, "setuids" }, { Opt_nosetuids, "nosetuids" }, { Opt_dynperm, "dynperm" },@@ -1397,9 +1398,11 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,break ;case Opt_nobrl: vol->nobrl =1 ;
fs/cifs/connect.c cifs_parse_mount_options(const char *mountdata, const char *devname, · line 1408
Quoted 10 lines
fs/cifs/connect.c +4
-2-/* turn off mandatory locking in mode +/* +* turn off mandatory locking in mode * if remote locking is turned off since the -* local vfs will do advisory */ +* local vfs will do advisory +*/ if (vol->file_mode == (S_IALLUGO & ~(S_ISUID |S_IXGRP ))) vol->file_mode =S_IALLUGO ;
Looks fine.