mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
[CIFS] Add nolock synonym (ala nfs) for nobrl to disable sending byte range
locks remotely. Signed-off-by: Steve French (sfrench@us.ibm.com)
This commit is contained in:
parent
16abbecdad
commit
cb8be64084
1 changed files with 2 additions and 1 deletions
|
@ -1078,7 +1078,8 @@ cifs_parse_mount_options(char *options, const char *devname,struct smb_vol *vol)
|
||||||
vol->nocase = 1;
|
vol->nocase = 1;
|
||||||
} else if (strnicmp(data, "brl", 3) == 0) {
|
} else if (strnicmp(data, "brl", 3) == 0) {
|
||||||
vol->nobrl = 0;
|
vol->nobrl = 0;
|
||||||
} else if (strnicmp(data, "nobrl", 5) == 0) {
|
} else if ((strnicmp(data, "nobrl", 5) == 0) ||
|
||||||
|
(strnicmp(data, "nolock", 6)) {
|
||||||
vol->nobrl = 1;
|
vol->nobrl = 1;
|
||||||
/* turn off mandatory locking in mode
|
/* turn off mandatory locking in mode
|
||||||
if remote locking is turned off since the
|
if remote locking is turned off since the
|
||||||
|
|
Loading…
Reference in a new issue