Skip to content

Commit

Permalink
[CIFS] Add nolock synonym (ala nfs) for nobrl to disable sending byte…
Browse files Browse the repository at this point in the history
… range

locks remotely.

Signed-off-by: Steve French (sfrench@us.ibm.com)
  • Loading branch information
Steve French committed Aug 30, 2005
1 parent 16abbec commit cb8be64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,8 @@ cifs_parse_mount_options(char *options, const char *devname,struct smb_vol *vol)
vol->nocase = 1;
} else if (strnicmp(data, "brl", 3) == 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;
/* turn off mandatory locking in mode
if remote locking is turned off since the
Expand Down

0 comments on commit cb8be64

Please sign in to comment.