|
91 | 91 | Opt_multiuser, Opt_sloppy, Opt_nosharesock,
|
92 | 92 | Opt_persistent, Opt_nopersistent,
|
93 | 93 | Opt_resilient, Opt_noresilient,
|
| 94 | + Opt_domainauto, |
94 | 95 |
|
95 | 96 | /* Mount options which take numeric value */
|
96 | 97 | Opt_backupuid, Opt_backupgid, Opt_uid,
|
@@ -180,6 +181,7 @@ static const match_table_t cifs_mount_option_tokens = {
|
180 | 181 | { Opt_nopersistent, "nopersistenthandles"},
|
181 | 182 | { Opt_resilient, "resilienthandles"},
|
182 | 183 | { Opt_noresilient, "noresilienthandles"},
|
| 184 | + { Opt_domainauto, "domainauto"}, |
183 | 185 |
|
184 | 186 | { Opt_backupuid, "backupuid=%s" },
|
185 | 187 | { Opt_backupgid, "backupgid=%s" },
|
@@ -1504,6 +1506,9 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
|
1504 | 1506 | case Opt_noresilient:
|
1505 | 1507 | vol->resilient = false; /* already the default */
|
1506 | 1508 | break;
|
| 1509 | + case Opt_domainauto: |
| 1510 | + vol->domainauto = true; |
| 1511 | + break; |
1507 | 1512 |
|
1508 | 1513 | /* Numeric Values */
|
1509 | 1514 | case Opt_backupuid:
|
@@ -2578,6 +2583,8 @@ cifs_get_smb_ses(struct TCP_Server_Info *server, struct smb_vol *volume_info)
|
2578 | 2583 | if (!ses->domainName)
|
2579 | 2584 | goto get_ses_fail;
|
2580 | 2585 | }
|
| 2586 | + if (volume_info->domainauto) |
| 2587 | + ses->domainAuto = volume_info->domainauto; |
2581 | 2588 | ses->cred_uid = volume_info->cred_uid;
|
2582 | 2589 | ses->linux_uid = volume_info->linux_uid;
|
2583 | 2590 |
|
|
0 commit comments