diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2011-05-26 02:02:00 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-05-26 23:57:16 -0400 |
commit | d4ffff1fa9695c5b5c0bf337e208d8833b88ff2d (patch) | |
tree | acd4b6cfa7962a1cee7e9c81f11bd9ccb0d3ff24 /fs/cifs/cifsglob.h | |
parent | 25c7f41e9234f60af30e086278f1de7974f8816f (diff) |
CIFS: Add rwpidforward mount option
Add rwpidforward mount option that switches on a mode when we forward
pid of a process who opened a file to any read and write operation.
This can prevent applications like WINE from failing on read or write
operation on a previously locked file region from the same netfd from
another process if we use mandatory brlock style.
It is actual for WINE because during a run of WINE program two processes
work on the same netfd - share the same file struct between several VFS
fds:
1) WINE-server does open and lock;
2) WINE-application does read and write.
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index ca0c3789206e..310cddabd3fd 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -200,6 +200,7 @@ struct smb_vol { | |||
200 | bool fsc:1; /* enable fscache */ | 200 | bool fsc:1; /* enable fscache */ |
201 | bool mfsymlinks:1; /* use Minshall+French Symlinks */ | 201 | bool mfsymlinks:1; /* use Minshall+French Symlinks */ |
202 | bool multiuser:1; | 202 | bool multiuser:1; |
203 | bool rwpidforward:1; /* pid forward for read/write operations */ | ||
203 | unsigned int rsize; | 204 | unsigned int rsize; |
204 | unsigned int wsize; | 205 | unsigned int wsize; |
205 | bool sockopt_tcp_nodelay:1; | 206 | bool sockopt_tcp_nodelay:1; |