diff options
-rw-r--r-- | fs/cifs/connect.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 2fdbe08a7a2..5c670b998ff 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -67,6 +67,7 @@ enum { | |||
67 | /* Mount options that take no arguments */ | 67 | /* Mount options that take no arguments */ |
68 | Opt_user_xattr, Opt_nouser_xattr, | 68 | Opt_user_xattr, Opt_nouser_xattr, |
69 | Opt_forceuid, Opt_noforceuid, | 69 | Opt_forceuid, Opt_noforceuid, |
70 | Opt_forcegid, Opt_noforcegid, | ||
70 | Opt_noblocksend, Opt_noautotune, | 71 | Opt_noblocksend, Opt_noautotune, |
71 | Opt_hard, Opt_soft, Opt_perm, Opt_noperm, | 72 | Opt_hard, Opt_soft, Opt_perm, Opt_noperm, |
72 | Opt_mapchars, Opt_nomapchars, Opt_sfu, | 73 | Opt_mapchars, Opt_nomapchars, Opt_sfu, |
@@ -117,6 +118,8 @@ static const match_table_t cifs_mount_option_tokens = { | |||
117 | { Opt_nouser_xattr, "nouser_xattr" }, | 118 | { Opt_nouser_xattr, "nouser_xattr" }, |
118 | { Opt_forceuid, "forceuid" }, | 119 | { Opt_forceuid, "forceuid" }, |
119 | { Opt_noforceuid, "noforceuid" }, | 120 | { Opt_noforceuid, "noforceuid" }, |
121 | { Opt_forcegid, "forcegid" }, | ||
122 | { Opt_noforcegid, "noforcegid" }, | ||
120 | { Opt_noblocksend, "noblocksend" }, | 123 | { Opt_noblocksend, "noblocksend" }, |
121 | { Opt_noautotune, "noautotune" }, | 124 | { Opt_noautotune, "noautotune" }, |
122 | { Opt_hard, "hard" }, | 125 | { Opt_hard, "hard" }, |
@@ -1195,6 +1198,12 @@ cifs_parse_mount_options(const char *mountdata, const char *devname, | |||
1195 | case Opt_noforceuid: | 1198 | case Opt_noforceuid: |
1196 | override_uid = 0; | 1199 | override_uid = 0; |
1197 | break; | 1200 | break; |
1201 | case Opt_forcegid: | ||
1202 | override_gid = 1; | ||
1203 | break; | ||
1204 | case Opt_noforcegid: | ||
1205 | override_gid = 0; | ||
1206 | break; | ||
1198 | case Opt_noblocksend: | 1207 | case Opt_noblocksend: |
1199 | vol->noblocksnd = 1; | 1208 | vol->noblocksnd = 1; |
1200 | break; | 1209 | break; |