Commit cb8be640 authored by Steve French's avatar Steve French
Browse files

[CIFS] Add nolock synonym (ala nfs) for nobrl to disable sending byte range


locks remotely.

Signed-off-by: default avatarSteve French <(sfrench@us.ibm.com)>
parent 16abbecd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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