Skip to contentSkip to conversation

CIFS: Add missed forcemand mount option

PATCH In review Pavel Shilovsky 3 participants 6 messages Mar 27, 2012 4 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 26327ea..7e4775c 100644
@@ -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
Reviewed-by
#2 lore raw
In reply to a message not in the archive
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.

---
 fs/cifs/connect.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
fs/cifs/connect.c +0 -0
index 26327ea..7e4775c 100644

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 -0
 			if (vol->file_mode ==
 				(S_IALLUGO & ~(S_ISUID | S_IXGRP)))
 				vol->file_mode = S_IALLUGO;

Either way...

#4 lore raw
In reply to a message not in the archive

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.

---
 fs/cifs/connect.c |    7 +++++--

 1 files changed, 5 insertions(+), 2 deletions(-)
fs/cifs/connect.c +0 -0
index 26327ea..7e4775c 100644

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 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...

Signature · 2 lines
Best regards,
Pavel Shilovsky.
#6 lore raw
In reply to a message not in the archive

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.

---
 fs/cifs/connect.c |    7 +++++--

 1 files changed, 5 insertions(+), 2 deletions(-)
fs/cifs/connect.c +0 -0
index 26327ea..7e4775c 100644

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 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.
#8 lore raw
In reply to a message not in the archive
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.

---
 fs/cifs/connect.c |    7 +++++--

 1 files changed, 5 insertions(+), 2 deletions(-)
fs/cifs/connect.c +0 -0
index 26327ea..7e4775c 100644

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 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]>
Reviewed-by
#9 lore raw
In reply to a message not in the archive
Quoted 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.

---
 fs/cifs/connect.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
fs/cifs/connect.c +1 -0
index 26327ea..7e4775c 100644
@@ -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.