|
67 | 67 | /* Mount options that take no arguments */
|
68 | 68 | Opt_user_xattr, Opt_nouser_xattr,
|
69 | 69 | Opt_forceuid, Opt_noforceuid,
|
| 70 | + Opt_forcegid, Opt_noforcegid, |
70 | 71 | Opt_noblocksend, Opt_noautotune,
|
71 | 72 | Opt_hard, Opt_soft, Opt_perm, Opt_noperm,
|
72 | 73 | Opt_mapchars, Opt_nomapchars, Opt_sfu,
|
@@ -118,6 +119,8 @@ static const match_table_t cifs_mount_option_tokens = {
|
118 | 119 | { Opt_nouser_xattr, "nouser_xattr" },
|
119 | 120 | { Opt_forceuid, "forceuid" },
|
120 | 121 | { Opt_noforceuid, "noforceuid" },
|
| 122 | + { Opt_forcegid, "forcegid" }, |
| 123 | + { Opt_noforcegid, "noforcegid" }, |
121 | 124 | { Opt_noblocksend, "noblocksend" },
|
122 | 125 | { Opt_noautotune, "noautotune" },
|
123 | 126 | { Opt_hard, "hard" },
|
@@ -1190,6 +1193,12 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
|
1190 | 1193 | case Opt_noforceuid:
|
1191 | 1194 | override_uid = 0;
|
1192 | 1195 | break;
|
| 1196 | + case Opt_forcegid: |
| 1197 | + override_gid = 1; |
| 1198 | + break; |
| 1199 | + case Opt_noforcegid: |
| 1200 | + override_gid = 0; |
| 1201 | + break; |
1193 | 1202 | case Opt_noblocksend:
|
1194 | 1203 | vol->noblocksnd = 1;
|
1195 | 1204 | break;
|
|
0 commit comments