Michael Adam
ebdf147d4a
docs: describe the new parameter "durable handles" in the smb.conf manpage
2012-09-10 01:06:54 +02:00
Michael Adam
24914531fc
docs: add desciption of new parameter "kernel share modes" to the smb.conf manpage
2012-09-10 01:06:51 +02:00
Michael Adam
4811e5852b
docs: have configure correctly report ability to build manpages
2012-09-10 01:06:50 +02:00
Michael Adam
eb4483e63c
release-scripts: adapt build-manpages-nogit to renamed manpage directory
2012-09-10 01:06:49 +02:00
Michael Adam
f5da2c1356
release-scripts: adapt build-manpages-git to moved manpage directory
2012-09-10 01:06:48 +02:00
Björn Jacke
2ea0f6c00d
s3:quota-nfs: add RQ_PATHLEN define for systems that don't have it
...
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Sun Sep 9 17:44:51 CEST 2012 on sn-devel-104
2012-09-09 17:44:51 +02:00
Björn Jacke
79df06ed00
s3:quota-nfs: another build fix for the old Unix world
2012-09-09 15:59:42 +02:00
Björn Jacke
b89d9887e8
s3: fix wrong invocations of talloc_realloc
2012-09-09 15:43:51 +02:00
Stefan Metzmacher
7a51c5e469
selftest/knownfail: we pass some samba3.smb2.durable-* tests now
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Sep 8 23:18:39 CEST 2012 on sn-devel-104
2012-09-08 23:18:39 +02:00
Michael Adam
eabe4c8fc4
s3:vfs_default: add basic support for durable handle request and reconnect
...
We only grant durable handles for CIFS/SMB2 only access,
that means "kernel oplocks", "kernel share modes" and "posix locking"
need to be set to "no".
For now we also don't grant durable handles if delete on close
is active on the handle.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Pair-Programmed-With: Volker Lendecke <vl@samba.org>
2012-09-08 19:48:20 +02:00
Michael Adam
1d012a6780
s3: introduce a new share config option "durable handles" defaulting to "yes"
...
This is in order to be able to turn durable handles off and on on a per share
basis.
Note: This is only used in combination with:
kernel share modes = no
kernel oplocks = no
posix locking = no
Which means CIFS/SMB2 only access.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-08 19:46:08 +02:00
Michael Adam
ba011c1de0
s3:smbd: make fd_open() public
2012-09-08 19:42:55 +02:00
Michael Adam
f5a6b7b301
s3:smbd: don't set kernel flock if "kernel share modes = no"
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Sep 8 13:05:05 CEST 2012 on sn-devel-104
2012-09-08 13:05:05 +02:00
Michael Adam
da07186962
s3: add an option "kernel share modes" to be able to switch off using kernel flocks
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-08 11:10:54 +02:00
Michael Adam
f2f47b4bae
loadparm: remove remnants of removed option "share modes"
...
(This completes commit d0878b3b81
)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-08 11:09:45 +02:00
Stefan Metzmacher
3fef8e207c
selftest/Samba3: don't explicitly set 'server max protocol'
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Sep 8 05:15:00 CEST 2012 on sn-devel-104
2012-09-08 05:15:00 +02:00
Stefan Metzmacher
196b7f336e
docs-xml: change "server max protocol" to "SMB3"
...
metze
2012-09-08 03:39:06 +02:00
Stefan Metzmacher
1c9c5c1276
s3:param: change "server max protocol" to "SMB3"
...
metze
2012-09-08 03:39:06 +02:00
Michael Adam
9576638dba
s3:smbd: add basic support for durable handle v2 request and reconnect
...
This does not yet cover persistent handle support which is also
negotiated through these create request blobs.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-09-08 03:39:06 +02:00
Michael Adam
267b976d43
s3:smbd: add basic support for durable handle request and reconnect
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Pair-Programmed-With: Volker Lendecke <vl@samba.org>
2012-09-08 03:39:06 +02:00
Michael Adam
f935ebdf7a
s3:smbd: initial durable handle support: special treatment of durable handles in close
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-09-08 03:39:06 +02:00
Michael Adam
35260ae89e
s3:vfs: add durable VFS operations
...
This allows a VFS module to implement durable handles in different ways.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-09-08 03:39:06 +02:00
Stefan Metzmacher
eb1a05f783
s3:smbd: add disconnected checks to the open code.
...
(delay_for_batch_oplocks, open_mode_check, and delay_for_exclusive_oplocks)
Pair-Programmed-With: Michael Adam <obnox@samba.org>
2012-09-08 03:39:06 +02:00
Michael Adam
42afa596d5
s3:smbd: also close durable file handles in a tdis
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-09-08 03:39:06 +02:00
Stefan Metzmacher
f0a5b791ae
s3:locking: add brl_mark_disconnected() and brl_reconnect_disconnected()
...
Pair-Programmed-With: Michael Adam <obnox@samba.org>
2012-09-08 03:39:06 +02:00
Stefan Metzmacher
9a81f8ee17
s3:locking: add mark_share_mode_disconnected()
...
Pair-Programmed-With: Michael Adam <obnox@samba.org>
2012-09-08 03:39:06 +02:00
Stefan Metzmacher
bc296053cb
s3:smbXsrv_open: add smb2srv_open_recreate() to support durable handles
...
metze
2012-09-08 03:39:06 +02:00
Stefan Metzmacher
5e63494508
s3:smbXsrv.idl: add properties for durable handles to smbXsrv_open_global0
...
Pair-Programmed-With: Michael Adam <obnox@samba.org>
metze
2012-09-08 03:39:06 +02:00
Björn Jacke
c853b68229
s3:quota: don't add the string '"' into the argument list
...
this is not used to quote or anything else. This is mainly
causing work for the script writer who has to remove the
quote stings again :-)
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Sat Sep 8 03:13:13 CEST 2012 on sn-devel-104
2012-09-08 03:13:13 +02:00
Björn Jacke
869b67764d
doc: improve quotacommand man page docu
2012-09-08 01:29:00 +02:00
Volker Lendecke
4abccf0b65
s3: Fix a panic when shutting down
...
When a client disconnects while we have aio open, there is no close
request that cleans up. We can't send out the replies anymore, so
just drop the aio requests that are pending.
Found using the new python lib writing multiple files simultaneously
TODO: check tdis and logoff
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Sep 8 01:27:34 CEST 2012 on sn-devel-104
2012-09-08 01:27:34 +02:00
Gregor Beck
0f284beb67
s3:lib: use includes.h with cbuf and srprs
...
hopefully fixes build on hpux
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:45 +02:00
Michael Adam
4931a9010f
s4:torture:smb2: simplify durable-open.file-position test to only use one I/O and one handle
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:42 +02:00
Michael Adam
97be058c9e
s4:torture:smb2: change the durable-open.file-position test to use one connection only
...
And do a tcp disconnect followed by a session reconnect instead
of immediately using the already opened second connection.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:39 +02:00
Michael Adam
32956300a7
s4:torture:smb2: fix durable-v2-open.reopen2 to pass against windows
...
The DH2Q response blob is not sent upon successful durable handle v2 reconnect.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:37 +02:00
Michael Adam
1b96a6df19
s4:torture:smb2: simplify the durable-v2.reopen2 test (using only one i/o struct)
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:34 +02:00
Michael Adam
fc0631cae6
s4:torture:smb2: simplify the durable-v2-open.reopen1 test
...
only use one smb2_create i/o struct and store the create GUID centrally
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:31 +02:00
Michael Adam
67290e7d2e
s4:torture:smb2: in the durable-v2-reopen1 test, use a minimal request
...
don't copy the old request, but only set the necessary fields
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:29 +02:00
Michael Adam
d3946fed75
s4:torture:smb2: fix cut'n'paste error in the durable-v2-open.reopen2 test
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:25 +02:00
Michael Adam
e1dd2fc2fa
s4:torture:smb2: fix name of test file in the durable-open.alloc-size test
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:21 +02:00
Björn Jacke
cd93c7d055
waf: add tests for NFS quota stuff
...
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Sep 7 22:21:55 CEST 2012 on sn-devel-104
2012-09-07 22:21:55 +02:00
Björn Jacke
992908a3da
waf: add test for HAVE_DQB_FSOFTLIMIT
2012-09-07 20:09:02 +02:00
Björn Jacke
58f6247c79
waf: make checks for different XFS flavours
2012-09-07 19:49:25 +02:00
Björn Jacke
a7f0a07a05
s3:autoconf: look for irix xfs only when if we didn't find the Linux one before
2012-09-07 19:28:12 +02:00
Björn Jacke
abf98e3289
s3:sysquota_nfs: fix build on Tru64 et alii
...
the old Unix world put the struct rquota directly into the getquota_rslt
struct, the new Unix world puts a getquota_rslt_u union in between and they
decided to rename the status struct member.
2012-09-07 17:56:08 +02:00
Björn Jacke
0c0441bd45
rpcserver: fix useless declaration warning
...
issues by irix compiler
2012-09-07 16:42:16 +02:00
Björn Jacke
31e58a1fce
s3:sysquota-test: include ufs/ufs/quota.h only when found
2012-09-07 16:42:15 +02:00
Björn Jacke
5c3769b056
build: define _BSD_TYPES on IRIX to have types like u_short
...
why the hell do IRIX systems headers like quota.h use types that are available
only with such a define...?
2012-09-07 16:42:14 +02:00
Björn Jacke
ee2d6ae148
s3:quota: clean up and consolidate the xfs quota checks and defines
...
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Sep 7 15:59:46 CEST 2012 on sn-devel-104
2012-09-07 15:59:46 +02:00
Björn Jacke
3810ee4e87
s3:sysquota_xfs: fix logic so that we actually use this module on Linux
2012-09-07 14:15:57 +02:00