diff options
author | Steve French | 2005-08-19 05:49:57 +0200 |
---|---|---|
committer | Steve French | 2005-08-19 05:49:57 +0200 |
commit | c46fa8acdc533e8084359ea11c79d56eb98313fb (patch) | |
tree | d9455c92f58c99e342856995668739236bdd09e3 /fs/cifs/inode.c | |
parent | [CIFS] Change Notify support part 1 - add dnotify thread for processing (diff) | |
download | kernel-qcow2-linux-c46fa8acdc533e8084359ea11c79d56eb98313fb.tar.gz kernel-qcow2-linux-c46fa8acdc533e8084359ea11c79d56eb98313fb.tar.xz kernel-qcow2-linux-c46fa8acdc533e8084359ea11c79d56eb98313fb.zip |
[CIFS] Add mount option for disabling sending byte range lock requests
over the wire (to help the case when applications break with cifs mandatory
lock behavior. Add part one of mount option for requesting case
insensitive path name matching.
Signed-off-by: Steve French (sfrench@us.ibm.com)
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r-- | fs/cifs/inode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 628aa1a9fe64..ed3e9207d92e 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -166,6 +166,8 @@ int cifs_get_inode_info_unix(struct inode **pinode, inode->i_fop = &cifs_file_direct_ops; else inode->i_fop = &cifs_file_ops; + if(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL) + inode->i_fop->lock = NULL; inode->i_data.a_ops = &cifs_addr_ops; } else if (S_ISDIR(inode->i_mode)) { cFYI(1, (" Directory inode")); @@ -369,6 +371,8 @@ int cifs_get_inode_info(struct inode **pinode, inode->i_fop = &cifs_file_direct_ops; else inode->i_fop = &cifs_file_ops; + if(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL) + inode->i_fop->lock = NULL; inode->i_data.a_ops = &cifs_addr_ops; } else if (S_ISDIR(inode->i_mode)) { cFYI(1, (" Directory inode ")); |