|
70 | 70 | /* Mount options that take no arguments */
|
71 | 71 | Opt_user_xattr, Opt_nouser_xattr,
|
72 | 72 | Opt_forceuid, Opt_noforceuid,
|
| 73 | + Opt_forcegid, Opt_noforcegid, |
73 | 74 | Opt_noblocksend, Opt_noautotune,
|
74 | 75 | Opt_hard, Opt_soft, Opt_perm, Opt_noperm,
|
75 | 76 | Opt_mapchars, Opt_nomapchars, Opt_sfu,
|
@@ -121,6 +122,8 @@ static const match_table_t cifs_mount_option_tokens = {
|
121 | 122 | { Opt_nouser_xattr, "nouser_xattr" },
|
122 | 123 | { Opt_forceuid, "forceuid" },
|
123 | 124 | { Opt_noforceuid, "noforceuid" },
|
| 125 | + { Opt_forcegid, "forcegid" }, |
| 126 | + { Opt_noforcegid, "noforcegid" }, |
124 | 127 | { Opt_noblocksend, "noblocksend" },
|
125 | 128 | { Opt_noautotune, "noautotune" },
|
126 | 129 | { Opt_hard, "hard" },
|
@@ -1345,6 +1348,12 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
|
1345 | 1348 | case Opt_noforceuid:
|
1346 | 1349 | override_uid = 0;
|
1347 | 1350 | break;
|
| 1351 | + case Opt_forcegid: |
| 1352 | + override_gid = 1; |
| 1353 | + break; |
| 1354 | + case Opt_noforcegid: |
| 1355 | + override_gid = 0; |
| 1356 | + break; |
1348 | 1357 | case Opt_noblocksend:
|
1349 | 1358 | vol->noblocksnd = 1;
|
1350 | 1359 | break;
|
|
0 commit comments