1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

1008 Commits

Author SHA1 Message Date
Andrew Tridgell
8daeee5c5d ensure that we honor SMB2 read min_count properly
(This used to be commit 318038d6f6)
2008-05-27 18:20:23 +10:00
Andrew Tridgell
beac55a88f enforce lock ordering in SMB2
(This used to be commit 3bec932a89)
2008-05-27 17:22:02 +10:00
Andrew Tridgell
cb36437db2 added support for the output fields of SMB2 close
(This used to be commit 2633bc7497)
2008-05-27 16:43:36 +10:00
Andrew Tridgell
46e64417a3 another attempt at the damn SEC_STD_SYNCHRONIZE flag
(This used to be commit 2ac27bfffa)
2008-05-27 16:02:27 +10:00
Andrew Tridgell
848e7c5830 it seems that lock flags are only validated when UNLOCK is set
(This used to be commit d1bde5830c)
2008-05-27 16:02:10 +10:00
Andrew Tridgell
cf274201b4 disable the SEC_STD_SYNCHRONIZE test until we know what it means
(This used to be commit 897f4582be)
2008-05-27 15:27:25 +10:00
Andrew Tridgell
65e31a965e make the SEC_STD_SYNCHRONIZE test more specific
(This used to be commit 8c263f91bd)
2008-05-27 14:59:55 +10:00
Andrew Tridgell
6e265867ff SEC_STD_SYNCHRONIZE is only invalid on SMB2
(This used to be commit 067f1271ad)
2008-05-27 14:30:42 +10:00
Andrew Tridgell
f0b4b15f64 check for some more invalid bits in smb2 create
(This used to be commit dcdaa9f5fd)
2008-05-27 14:07:11 +10:00
Andrew Tridgell
9a37e7ed93 Vista returns ACCESS_DENIED here
(This used to be commit f5068c6e50)
2008-05-27 14:06:51 +10:00
Andrew Tridgell
506849f600 check invalid create options in the right order
(This used to be commit 73dbfb9b41)
2008-05-27 12:42:43 +10:00
Andrew Tridgell
2ad2bdda89 stricter checks for valid inputs in SMB2 open and lock
(This used to be commit a7b5689a73)
2008-05-26 15:02:43 +10:00
Andrew Tridgell
bf8d9e180e fill in reserved field on SMB2 flush
(This used to be commit 400a3b39d5)
2008-05-26 15:00:27 +10:00
Andrew Tridgell
c5c1b3706a allow larger streams using the TDB backend
(This used to be commit 8c0d756eb8)
2008-05-26 14:59:58 +10:00
Stefan Metzmacher
5d648b4aa5 pvfs_open: return FILE_IS_A_DIRECTORY when opening a stream on a directory
metze
(This used to be commit 1421b1cc0c)
2008-05-23 09:55:15 +02:00
Stefan Metzmacher
391b746430 pvfs_resolve: stream_name = "" is only the same as NULL for files
metze
(This used to be commit 47756129fd)
2008-05-23 09:55:15 +02:00
Stefan Metzmacher
c78bf3c2c9 pvfs_streams: directories don't have streams
metze
(This used to be commit 9ed7bb5afe)
2008-05-23 09:55:03 +02:00
Andrew Tridgell
ec7a6ee8ab fix make test for EAs again
- go back to 4 byte alignment until I work out the rules that Vista
  wants more exactly
- add the zero sized EA handling for SMB2 more generically
(This used to be commit 326b69bc80)
2008-05-23 00:07:12 +10:00
Andrew Tridgell
2e0f61a18a SMB2 read returns NT_STATUS_END_OF_FILE on read past end of file
(This used to be commit 1590494daf)
2008-05-22 23:07:16 +10:00
Andrew Tridgell
ac185ae0c5 fixes for EAs and filename in gentest_smb2 results
- SMB2 returns 0 for a null EA
- return the share qualified name for the filename in SMB2 ALL_INFO
  level
(This used to be commit f9708184a2)
2008-05-22 23:00:08 +10:00
Andrew Tridgell
7a9ffeca21 check for invalid file attribute values in create
(This used to be commit dd21e3d9d7)
2008-05-22 17:53:50 +10:00
Andrew Tridgell
4d39976ddd fixed SMB2 locking
- SMB2 locking is different in several ways from SMB locking. To fix
  it properly we will need a new generic mapping structure for
  locking, but for now do a best effort mapping

- added locking to gentest_smb2
(This used to be commit ea6d9cf602)
2008-05-21 22:12:20 +10:00
Andrew Tridgell
2352602a57 check the creation options where the client can require a path to be a
file or a directory
(This used to be commit c05b58940f)
2008-05-20 11:58:47 +10:00
Andrew Tridgell
e7d993b8b2 added SMB2 proxying of rmdir
(This used to be commit 1e0c24b276)
2008-05-19 13:05:08 +10:00
Andrew Tridgell
03eb236f20 Merge commit 'origin/v4-0-test' into vfs_smb2
(This used to be commit 733937e87a)
2008-05-19 11:40:25 +10:00
Andrew Tridgell
66cbf7eb59 added mkdir to SMB2 proxy
(This used to be commit 1323aab11f)
2008-05-19 11:39:16 +10:00
Jelmer Vernooij
60ae8f0657 Fix a bunch of dependencies.
(This used to be commit a63f458462)
2008-05-18 23:40:23 +02:00
Jelmer Vernooij
4c70cda986 Fix a couple (well, little more than that..) of typos.
(This used to be commit a6b5211994)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147 Create prototype headers from Makefile directory, without smb_build in the middle.
(This used to be commit f4a77b96f9)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
03643aec88 Use variables for source directory in a couple more places.
(This used to be commit c41bd3005f)
2008-05-18 19:54:27 +02:00
Andrew Tridgell
9b177f8d58 added SMB2 proxying for unlink
(This used to be commit a5459bd880)
2008-05-16 15:01:31 +10:00
Andrew Tridgell
d9f47ba00b added handlers for connect, search_first and fsinfo.
Directory listing in smbclient now works
(This used to be commit 8007342061)
2008-05-15 20:47:28 +10:00
Andrew Tridgell
ca3257b286 started new vfs_smb2 module
This new module is based on the vfs_cifs module. The idea is to create a backend
which maps SMB requests to a SMB2 server. This will allow existing
test suites for SMB to be run against our SMB2 client and server code.

It will also help validate our SMB2 client library, probably leading
to some API changes to make it flexible enough
(This used to be commit 6ea8295a64)
2008-05-15 10:57:22 +10:00
Jelmer Vernooij
7c7de11f20 Fix LDB module initialization when using external ldb.
(This used to be commit b7b4aff8b5)
2008-05-11 01:53:11 +02:00
Jelmer Vernooij
7b45a4d7fa Merge branch 'v4-0-test' into v4-0-gmake3
Conflicts:

	source/auth/config.mk
	source/auth/gensec/config.mk
	source/torture/smbtorture.c
(This used to be commit edfd02e59b)
2008-05-10 18:08:00 +02:00
Stefan Metzmacher
3e80085fb0 pvfs: remove XATTR_ATTRIB_FLAG_STICKY_WRITE_TIME code
I'll fix this more correctly very soon,
so that we'll pass the BASE-DELAYWRITE test.

metze
(This used to be commit b09dd6b65d)
2008-05-07 15:46:22 +02:00
Jelmer Vernooij
cc9c4aaa8d Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
Conflicts:

	source/Makefile
	source/auth/config.mk
	source/auth/gensec/config.mk
	source/build/m4/public.m4
	source/build/make/python.mk
	source/build/make/rules.mk
	source/build/smb_build/header.pm
	source/build/smb_build/main.pl
	source/build/smb_build/makefile.pm
	source/dsdb/config.mk
	source/dsdb/samdb/ldb_modules/config.mk
	source/kdc/config.mk
	source/lib/events/config.mk
	source/lib/events/events.c
	source/lib/ldb/config.mk
	source/lib/nss_wrapper/config.mk
	source/lib/policy/config.mk
	source/lib/util/config.mk
	source/libcli/smb2/config.mk
	source/libnet/config.mk
	source/librpc/config.mk
	source/nbt_server/config.mk
	source/ntptr/ntptr_base.c
	source/ntvfs/posix/config.mk
	source/ntvfs/sysdep/config.mk
	source/param/config.mk
	source/rpc_server/config.mk
	source/rpc_server/service_rpc.c
	source/scripting/ejs/config.mk
	source/scripting/python/config.mk
	source/smb_server/config.mk
	source/smbd/server.c
	source/torture/config.mk
	source/torture/smb2/config.mk
	source/wrepl_server/config.mk
(This used to be commit 13bbd42068)
2008-04-25 10:04:20 +01:00
Stefan Metzmacher
39d2302721 ntvfs_generic: map RAW_LOCK_SMB2_BREAK to RAW_LOCK_GENERIC
metze
(This used to be commit b781bb733c)
2008-04-19 01:54:45 +02:00
Stefan Metzmacher
b2f2c1486e ntvfs_generic: fix mapping the granted oplocks for SMB2
metze
(This used to be commit 60c4a4fc1a)
2008-04-19 01:54:42 +02:00
Jelmer Vernooij
dd0da89e84 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit ece878c1f9)
2008-04-17 13:05:25 +02:00
Jelmer Vernooij
21fc767378 Specify event_context to ldb_wrap_connect explicitly.
(This used to be commit b4e1ae07a2)
2008-04-17 12:23:44 +02:00
Andrew Tridgell
30b9c37420 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Conflicts:

	source/ntvfs/ntvfs_generic.c
(This used to be commit a626a9c69c)
2008-04-17 09:36:09 +02:00
Stefan Metzmacher
baad7a7e56 ntvfs_generic: map SMB2 oplock levels to the generic ones
metze
(This used to be commit 9013748273)
2008-04-17 03:54:26 +02:00
Jelmer Vernooij
14023e502b Require explicit event context rather than looking if it is not specified.
(This used to be commit 1da0063bd5)
2008-04-17 01:22:39 +02:00
Jelmer Vernooij
c15ffa27cb Explicitly require event context to be specified.
(This used to be commit a95a71fe45)
2008-04-17 01:19:53 +02:00
Jelmer Vernooij
1efbd5fbf6 Remove event context tracking from the credentials struct.
(This used to be commit 4d7fc946b2)
2008-04-17 01:03:18 +02:00
Jelmer Vernooij
a195cd9d8f Use readily available event context.
(This used to be commit 2823fca23a)
2008-04-16 22:52:07 +02:00
Andrew Tridgell
b967afca64 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit e891157b4e)
2008-04-15 09:54:41 +02:00
Andrew Tridgell
79af7ff2f7 fixed a valgrind error in id mapping
the status field is sent on both call and reply, but was only being
initialised on reply
(This used to be commit 2ebd7b8099)
2008-04-14 18:59:40 +02:00
Andrew Tridgell
292ed5d04f fixed an unitialised write warning in valgrind
the 'reserved' field was not being initialised before being pushed to
the wire
(This used to be commit dfe4b50098)
2008-04-14 18:44:43 +02:00
Jelmer Vernooij
e9017ba418 Use _OBJ_FILES variables in a couple more places.
(This used to be commit 92856d5054)
2008-04-14 17:22:58 +02:00
Jelmer Vernooij
7cf29ac84e Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake4
(This used to be commit 9d3d64e138)
2008-04-14 11:55:19 +02:00
Jelmer Vernooij
f78bc8c489 Remove prototypes from build.h in preparation of removing build.h
altogether.
(This used to be commit dbeab2a9cd)
2008-04-14 11:54:50 +02:00
Andrew Tridgell
275f32ae2d fill in unknown fields in SMB2 READ call
(This used to be commit 9b686c1380)
2008-04-14 11:31:17 +02:00
Jelmer Vernooij
b5d84a74d1 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
Conflicts:

	source/auth/credentials/config.mk
	source/auth/gensec/config.mk
	source/build/smb_build/makefile.pm
	source/heimdal_build/config.mk
	source/lib/events/config.mk
	source/lib/nss_wrapper/config.mk
	source/lib/policy/config.mk
	source/lib/registry/config.mk
	source/lib/socket_wrapper/config.mk
	source/lib/tdb/config.mk
	source/lib/tls/config.mk
	source/lib/util/config.mk
	source/libcli/config.mk
	source/libcli/ldap/config.mk
	source/libnet/config.mk
	source/librpc/config.mk
	source/param/config.mk
	source/rpc_server/config.mk
	source/scripting/ejs/config.mk
	source/smbd/process_model.mk
(This used to be commit 760378e029)
2008-04-08 03:45:06 +02:00
Kai Blin
4133bd85e9 ntvfs: Use wbclient for pvfs_acl and pvfs_acl_nfs4
(This used to be commit ac5e5fee1d)
2008-04-02 23:07:27 +02:00
Kai Blin
a71f36e2b8 ntvfs: Use wbclient in vsf_unixuid, not sidmap
(This used to be commit 2908a77fa5)
2008-04-02 23:07:17 +02:00
Jelmer Vernooij
236fc02913 Reduce the number of installed headers.
(This used to be commit 2243e24024)
2008-04-02 13:41:10 +02:00
Jelmer Vernooij
afe3e8172d Install public header files again and include required prototypes.
(This used to be commit 47ffbbf674)
2008-04-02 04:53:27 +02:00
Jelmer Vernooij
90f76ae99b Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
(This used to be commit 4e0b94d648)
2008-03-28 00:59:54 +01:00
Jelmer Vernooij
18d80bdf1f Merge v4.0-test
(This used to be commit 977dbdeaf3)
2008-03-28 00:44:14 +01:00
Andrew Bartlett
7f2927528c Fix references to ntvfs share config
Andrew Bartlett
(This used to be commit 4e4152dfd7)
2008-03-27 20:40:40 +11:00
Andrew Bartlett
4fc27c9969 Make oplocks a per-share option.
This even goes via the share options system (a very odd layer of indirection).

Andrew Bartlett
(This used to be commit f2c65f9907)
2008-03-27 20:32:02 +11:00
Stefan Metzmacher
71e2f7d260 opendb_tdb: enable oplocks per default
metze
(This used to be commit 225a9852ee)
2008-03-27 10:11:48 +01:00
Stefan Metzmacher
e76c8aa097 pvfs_open: set h->have_opendb_entry directly after odb_open_file()
Otherwise we may not clean up in the destructor.

metze
(This used to be commit 218ec98a16)
2008-03-15 12:36:20 +01:00
Stefan Metzmacher
74d940ca57 pvfs_open: the pvfs_odb_retry structs need to be children of the request
Otherwise they're not cleaned up when the request is finished.

metze
(This used to be commit 055760f0f4)
2008-03-15 12:35:04 +01:00
Stefan Metzmacher
1f65ddb336 pvfs_unlink: disable async retries for wildcard deletes
We would setup multiple retries per client request.

metze
(This used to be commit 951764e284)
2008-03-15 12:22:36 +01:00
Stefan Metzmacher
50243cdbbd pvfs_open: retry pvfs_open() after an EGAIN or EWOULDBLOCK from open()
In case a unix application as an oplock or share mode on
a file we need to retry periodicly as there's no way
to get a notification from the kernel when the oplock
is released.

metze
(This used to be commit 4d40f3a026)
2008-03-12 17:35:07 +01:00
Stefan Metzmacher
454e9bed04 pvfs_open: pass O_NONBLOCK to open() so that we'll not block with kernel oplocks
metze
(This used to be commit eeb0b8c349)
2008-03-12 17:35:06 +01:00
Stefan Metzmacher
49c86b73bf opendb_tdb: use sys_lease to setup kernel oplocks
metze
(This used to be commit e473068bdd)
2008-03-12 17:35:06 +01:00
Stefan Metzmacher
d93f2f2e80 ntvfs/sysdep: implement linux kernel oplocks based F_SETLEASE
metze
(This used to be commit 3f165d3114)
2008-03-12 17:35:06 +01:00
Stefan Metzmacher
c3643d0ec8 ntvfs/sysdep: add sys_lease abstraction to later support kernel oplocks
metze
(This used to be commit b399f0c872)
2008-03-12 17:35:05 +01:00
Stefan Metzmacher
7ba236d78e pvfs_open: pass down &f->handle->fd to odb_open_file()
metze
(This used to be commit 80f5f93621)
2008-03-12 17:35:04 +01:00
Stefan Metzmacher
59917521e9 opendb: pass down a pointer to the fd in odb_open_file()
This prepares kernel oplock support.

metze
(This used to be commit 9db9b6d85d)
2008-03-12 17:35:04 +01:00
Stefan Metzmacher
7cdf28ebac ntvfs/cifs: fix the fnum on RAW_RENAME_NTTRANS
metze
(This used to be commit b43f1a53dd)
2008-03-12 17:35:03 +01:00
Stefan Metzmacher
f533d6d8a2 pvfs_rename: implement RAW_RENAME_NTTRANS as noop as w2k3
metze
(This used to be commit 40563583f7)
2008-03-12 17:14:44 +01:00
Stefan Metzmacher
8e70dc7e9a pvfs: return NT_STATUS_NOT_IMPLEMENTED on RAW_RENAME_NTTRANS
metze
(This used to be commit 6dc280731d)
2008-03-11 20:16:52 +01:00
Jelmer Vernooij
fb6fdfce37 Fix the build.
(This used to be commit f2e4974471)
2008-03-08 17:02:40 +01:00
Jelmer Vernooij
2bf39edc9d Push SOVERSION and VERSION out of perl code.
(This used to be commit 0ba8ac6a14)
2008-03-08 15:28:12 +01:00
Jelmer Vernooij
0c6de7c959 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
(This used to be commit cffaf5f603)
2008-03-08 15:27:32 +01:00
Stefan Metzmacher
db06d932c8 opendb_tdb: keep struct opendb_file arround for the lifetime of struct odb_lock
That means we only have to parse the record once
and as the tdb record is locked the in memory copy
is always the same as the one in the tdb.

metze
(This used to be commit 0641a43cd6)
2008-03-08 09:28:17 +01:00
Stefan Metzmacher
11fb55e8a4 opendb_tdb: correctly initialize modified to false
Otherwise this variable would never change its value...

metze
(This used to be commit 5b13a564b8)
2008-03-08 09:28:17 +01:00
Jelmer Vernooij
87abb775ce Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
(This used to be commit ac27a1451d)
2008-03-07 23:02:36 +01:00
Stefan Metzmacher
db669e1eb1 pvfs_open: fix the odb_open_file() callers
metze
(This used to be commit 5fdca988c6)
2008-03-07 19:35:17 +01:00
Stefan Metzmacher
e5e799aeb6 opendb: force odb_can_open() before odb_open_file()
Now there's only odb_can_open() which handles the
share_access rules.

And odb_open_file() only adds the new opendb_entry into the
database and calculates the granted oplock level.

metze
(This used to be commit db0853ae4f)
2008-03-07 19:35:12 +01:00
Stefan Metzmacher
75a412a469 pvfs_open: always call odb_can_open() before odb_open_file()
odb_open_file() will later change to not redo the logic of
odb_can_open().

metze
(This used to be commit b09a1461ac)
2008-03-07 19:15:27 +01:00
Stefan Metzmacher
6c27daeeca opendb_tdb: pass down struct messaging_context directly to odb_oplock_break_send()
metze
(This used to be commit c993b07f7d)
2008-03-07 19:15:21 +01:00
Stefan Metzmacher
b655468cf6 vfs_cifs: disable level2 oplocks if the frontend client doesn't support them
metze
(This used to be commit a63910e8e5)
2008-03-07 19:15:19 +01:00
Jelmer Vernooij
fc2cd5ed63 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
(This used to be commit e4da851bd7)
2008-03-07 18:03:54 +01:00
Stefan Metzmacher
ef4ae2597d pvfs_open: pass down allow_level_II_oplock to odb_open_file()
metze
(This used to be commit 7c9b269b07)
2008-03-06 17:19:26 +01:00
Stefan Metzmacher
b7db5f7cb5 opendb: add allow_level_II_oplock parameter to odb_open_file()
Not all clients support a fallback to level II oplocks.

metze
(This used to be commit 146f1fe0b6)
2008-03-06 17:19:12 +01:00
Stefan Metzmacher
0339ae5ad8 pvfs_open: fix crash/leak in case pvfs_setup_oplock() fails
metze
(This used to be commit 5563238782)
2008-03-06 16:31:26 +01:00
Stefan Metzmacher
87f2925252 ntvfs: pass down the client capabilities into the ntvfs layer
Note that we don't use any protocol specific values here.

For now only NTVFS_CLIENT_CAP_LEVEL_II_OPLOCKS is defined
others should be defined, when we find out that the ntvfs
layer needs to know about it.

metze
(This used to be commit cc42cd5f67)
2008-03-06 16:31:25 +01:00
Stefan Metzmacher
eb26c896a2 pvfs_oplock: auto release oplocks after a timeout
Remember that we sent an oplock break to
a client and don't resend. If the filesystem
layer tries to send a new break and the client
has not released after a former oplock break
after the timeout interval, we need to auto release
the oplock.

metze
(This used to be commit bfb0888578)
2008-03-04 14:40:50 +01:00
Stefan Metzmacher
1f5301c1d2 pvfs_oplock: only a break level2 oplocks...
It seems that I've tested this in the wrong way before.

metze
(This used to be commit 21772fa33d)
2008-03-04 14:40:50 +01:00
Stefan Metzmacher
af0d863ce7 pvfs_oplock: move pvfs_oplock_release() parts into a helper function
metze
(This used to be commit 2b8934e4ab)
2008-03-04 14:40:49 +01:00
Jelmer Vernooij
a69acf7cb9 Deal with subsystems with no settings, several other minor fixes.
(This used to be commit 10cf48591e)
2008-03-04 01:37:18 +01:00
Jelmer Vernooij
b29d47edcf Move object file lists to the Makefile.
(This used to be commit a7e6d2a183)
2008-03-03 18:25:28 +01:00
Stefan Metzmacher
0de1a63c18 pvfs_rename: move odb_rename() onto pvfs_do_rename()
metze
(This used to be commit 5a1f0c0ce9)
2008-03-01 10:29:56 +01:00
Stefan Metzmacher
a0235410ae pvfs_setfileinfo: support renaming of directories
metze
(This used to be commit 2ecc7ec8b3)
2008-02-29 15:17:53 +01:00
Stefan Metzmacher
176e20bf26 pvfs_setfileinfo: tell the opendb about renames
metze
(This used to be commit 9360eda2c5)
2008-02-29 15:17:53 +01:00
Stefan Metzmacher
daa4dec695 pvfs: use pvfs_resolve_name_handle() in qfileinfo and setfileinfo
metze
(This used to be commit 4b1a266f6f)
2008-02-29 15:17:53 +01:00
Stefan Metzmacher
f9b2d29d32 pvfs_resolve: add pvfs_resolve_name_handle()
metze
(This used to be commit 714717253c)
2008-02-29 15:17:52 +01:00
Stefan Metzmacher
5734a10c89 pvfs_resolve: "\\" and a trailing "\" need to be reduced
metze
(This used to be commit 356338b99a)
2008-02-29 15:17:52 +01:00
Stefan Metzmacher
c5d961586e pvfs_resolve: fix endless loop with trailing ".."
We also need to move the NULL termination.

metze
(This used to be commit 4fc41065a3)
2008-02-29 15:17:52 +01:00
Stefan Metzmacher
98dafd5eb1 opendb: add odb_get_path()
metze
(This used to be commit 02071f151a)
2008-02-29 15:17:52 +01:00
Stefan Metzmacher
48270181ba pvfs_open: make pvfs_locking_key() non static
metze
(This used to be commit 587373b97b)
2008-02-29 15:17:51 +01:00
Jelmer Vernooij
1ada710840 Move public header accumulation out of the perl code.
Never install generated prototype files. It's easier to break the
API when using them and they're not easily readable for 3rd party users.

Conflicts:

	source/auth/config.mk
	source/auth/credentials/config.mk
	source/auth/gensec/config.mk
	source/build/smb_build/config_mk.pm
	source/build/smb_build/main.pl
	source/build/smb_build/makefile.pm
	source/dsdb/config.mk
	source/lib/charset/config.mk
	source/lib/tdr/config.mk
	source/lib/util/config.mk
	source/libcli/config.mk
	source/libcli/ldap/config.mk
	source/librpc/config.mk
	source/param/config.mk
	source/rpc_server/config.mk
	source/torture/config.mk
(This used to be commit 6c659689ed)
2008-02-29 14:23:38 +01:00
Jelmer Vernooij
fc6bc92e11 Merge branch 'v4-0-trivial' into v4-0-test
(This used to be commit 6cbb241c05)
2008-02-28 18:27:29 +01:00
Stefan Metzmacher
c3ce0a0b95 pvfs_open: fix callers of odb_get_delete_on_close()
metze
(This used to be commit 608e5cd881)
2008-02-28 08:11:04 +01:00
Stefan Metzmacher
bc1b595555 opendb: only return delete_on_close on odb_get_delete_on_close()
metze
(This used to be commit e699633db2)
2008-02-28 08:11:04 +01:00
Stefan Metzmacher
9028ecca22 pvfs: remove unused args from pvfs_delete_on_close_set()
metze
(This used to be commit 73f12be7c6)
2008-02-28 08:11:04 +01:00
Stefan Metzmacher
03660b240c pvfs_open: use the delete_path of odb_close_file()
metze
(This used to be commit c78451ce06)
2008-02-28 08:10:57 +01:00
Stefan Metzmacher
85d58175c8 opendb: return the path that should be deleted in odb_close_file()
That means the last close returns the path name if the
delete_on_close flag is set.

metze
(This used to be commit fc27730bad)
2008-02-28 08:10:50 +01:00
Stefan Metzmacher
8efcd871ce pvfs_rename: we need a do a odb_rename() after pvfs_do_rename()
metze
(This used to be commit f4f593a1ac)
2008-02-27 16:33:15 +01:00
Stefan Metzmacher
eefaf470bf pvfs_rename: add retry logic after sharing violation or non granted oplock
metze
(This used to be commit 79e42a5dfb)
2008-02-27 16:33:14 +01:00
Stefan Metzmacher
32061705cf opendb_tdb: EXCLUSIVE oplock use the same matching logic
metze
(This used to be commit 48e703d5a6)
2008-02-27 16:33:13 +01:00
Jelmer Vernooij
48e9b4cea1 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
(This used to be commit d96fcc52a7)
2008-02-27 16:03:00 +01:00
Stefan Metzmacher
2b94ffe5e7 opendb_tdb: with break_to_none attribute only opens also break oplocks
metze
(This used to be commit c475353e34)
2008-02-26 13:53:33 +01:00
Stefan Metzmacher
55377f0352 pvfs_open: pass down an access mask to pvfs_can_update_file_size()
You just need SEC_FILE_WRITE_ATTRIBUTE to change
the filesize...

metze
(This used to be commit 27e39063a0)
2008-02-26 13:53:15 +01:00
Stefan Metzmacher
c62faaa75e pvfs_qfileinfo: down discard the return value of pvfs_can_stat()
The odb_can_open() code returns DELETE_PENDING if
a delete is really pending.

metze
(This used to be commit 066ba3c7cf)
2008-02-26 13:52:34 +01:00
Stefan Metzmacher
b40be554e7 pvfs_open: pass down an access mask in pvfs_can_stat()
metze
(This used to be commit 6c34c7bc68)
2008-02-26 13:52:34 +01:00
Stefan Metzmacher
9f8fc29ea4 pvfs_open: pass NTCREATEX_DISP_OPEN to odb_can_open()
As 0 is NTCREATEX_DISP_SUPERSEDE and that's not what we want here.

metze
(This used to be commit 10c42e3d4a)
2008-02-26 13:52:33 +01:00
Stefan Metzmacher
fa2e4ba03c pvfs_setpathinfo: retry setpathinfo after oplock not granted on on setpathinfo ALLOCATION_INFO and END_OF_FILE_INFO
metze
(This used to be commit 4e27ac8c52)
2008-02-26 09:33:00 +01:00
Stefan Metzmacher
4eb0fcc517 pvfs_open: add pvfs_can_update_file_size()
TODO: this is not complete, we need more tests to trigger this

metze
(This used to be commit 66ad1081f2)
2008-02-26 09:33:00 +01:00
Stefan Metzmacher
61e17794c3 pvfs_unlink: retry unlink after oplock not granted
metze
(This used to be commit 746e89ce2e)
2008-02-26 09:32:59 +01:00
Stefan Metzmacher
c0d1543a6a pvfs: add posix:oplocktimeout=30 option
metze
(This used to be commit 5abc57ddab)
2008-02-26 09:32:59 +01:00
Stefan Metzmacher
ee81b7a85e pvfs_setfileinfo: break level2 oplocks on setfileinfo() ALLOCATION_INFO and END_OF_FILE_INFO
metze
(This used to be commit b258f9d8d4)
2008-02-26 09:32:59 +01:00
Stefan Metzmacher
4344ac6209 pvfs: send oplock breaks to none to level2 holders on write/lock requests
metze
(This used to be commit b8c42a1ff8)
2008-02-26 09:32:58 +01:00
Stefan Metzmacher
348439e930 pvfs_oplocks: add pvfs_break_level2_oplocks()
metze
(This used to be commit e0837238b6)
2008-02-26 09:32:58 +01:00
Stefan Metzmacher
4ee328d7d2 pvfs: handle oplock releases in its own function pvfs_oplock_release()
metze
(This used to be commit 27ec7bfc8b)
2008-02-26 09:32:57 +01:00
Stefan Metzmacher
be1ba5b631 pvfs_open: call pvfs_setup_oplock() if an oplock was granted
This is needed to receive oplock breaks from other "processes"

metze
(This used to be commit dd56f55afd)
2008-02-26 09:32:57 +01:00
Stefan Metzmacher
95fafa694c pvfs: add pvfs_setup_oplock() to receive oplock breaks and pass them to the client
metze
(This used to be commit b09a2b1267)
2008-02-26 09:32:57 +01:00
Stefan Metzmacher
d7ea52e9a3 pvfs_open: make the retry logic indepdendent from open and sharing violations
metze
(This used to be commit 56bd63a423)
2008-02-26 09:32:56 +01:00
Stefan Metzmacher
c93cf42d9f pvfs_open: fix odb_can_open() callers after prototype change
metze
(This used to be commit 904159327b)
2008-02-26 09:32:56 +01:00
Stefan Metzmacher
7264a8b7ca opendb: unify the parameters of odb_open_file() and odb_can_open()
metze
(This used to be commit e6b708a52b)
2008-02-26 09:32:56 +01:00
Stefan Metzmacher
9852e0d315 pvfs_open: pass down open_disposition and break_to_none to odb_open_file()
metze
(This used to be commit 46500983fe)
2008-02-26 09:32:55 +01:00
Stefan Metzmacher
facdc472c7 opendb: pass down open_disposition and break_to_none to odb_open_file()
metze
(This used to be commit aaaa26ae5e)
2008-02-26 09:32:55 +01:00
Stefan Metzmacher
69631a215b pvfs_setfileinfo_rename: map DELETE_PENDING to ACCESS_DENIED
This is needed as odb_can_open/pvfs_can_delete changed the return value.

metze
(This used to be commit 1ba0b9a8f1)
2008-02-26 09:31:20 +01:00
Stefan Metzmacher
476c9d10bb opendb_tdb: only file->delete_on_close == true should give DELETE_PENDING
metze
(This used to be commit 5b12157e0f)
2008-02-26 09:29:42 +01:00
Stefan Metzmacher
d1fb021300 opendb_tdb: move sharemode, oplock logic into odb_tdb_open_can_internal()
metze
(This used to be commit 65cfe71b26)
2008-02-26 09:29:41 +01:00
Stefan Metzmacher
940e86132d opendb_tdb: add force break to none logic
metze
(This used to be commit fbfe953ba3)
2008-02-26 09:29:41 +01:00
Stefan Metzmacher
c749b66ead opendb_tdb: attribute only opens doesn't conflict with BATCH oplocks
metze
(This used to be commit 7872b05abe)
2008-02-26 09:29:41 +01:00
Stefan Metzmacher
e5547201af opendb_tdb: grant level2 oplocks
metze
(This used to be commit 57f1b9d11c)
2008-02-26 09:29:40 +01:00
Stefan Metzmacher
f94008e45a opendb: add odb_break_oplocks() function
This send breaks to none to all level2 holders

metze
(This used to be commit bd3654500b)
2008-02-26 09:29:40 +01:00
Stefan Metzmacher
71943b209b opendb: add odb_update_oplock() call
metze
(This used to be commit df576d69c6)
2008-02-25 11:51:17 +01:00
Stefan Metzmacher
6cb9c1c61d opendb: send also the oplock break level on MSG_NTVFS_OPLOCK_BREAK
metze
(This used to be commit 49402007f6)
2008-02-25 11:50:39 +01:00
Stefan Metzmacher
27e322bb4d opendb: add odb_get_key() function to get the key back from a struct odb_lock
metze
(This used to be commit 11f35a2a4d)
2008-02-25 11:50:30 +01:00
Stefan Metzmacher
599901c139 pvfs_unlink: move stream logic into pvfs_unlink_one()
metze
(This used to be commit 438032e12f)
2008-02-25 08:03:44 +01:00
Stefan Metzmacher
58745900d3 pvfs_unlink: splitup the logic into generic and file specific functions
metze
(This used to be commit 7572afdc26)
2008-02-25 08:03:43 +01:00