1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

1004 Commits

Author SHA1 Message Date
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
Stefan Metzmacher
0634c12abb pvfs_unlink: add a fast path for the non wildcard case
metze
(This used to be commit 83e6c99f78)
2008-02-25 08:03:42 +01:00
Stefan Metzmacher
d5414cdc63 pvfs_unlink: move !name->stream_exists into the caller
metze
(This used to be commit e01554e161)
2008-02-25 08:03:41 +01:00
Stefan Metzmacher
a56bd4fa82 pvfs_unlink: pass down union smb_unlink completely to sub functions
metze
(This used to be commit 8301189e94)
2008-02-25 08:03:40 +01:00
Stefan Metzmacher
63b15441f4 pvfs_unlink: pass down a struct pvfs_filename to pvfs_unlink_one()
metze
(This used to be commit 43ec7fa2d8)
2008-02-25 08:03:39 +01:00
Stefan Metzmacher
6f077d4017 pvfs_open: unify talloc behavior in pvfs_can_delete/rename/stat()
And also handle NULL for lckp in the error path
without crashing.

metze
(This used to be commit 04eb1be0c6)
2008-02-25 08:03:04 +01:00
Stefan Metzmacher
f56ff422a5 pvfs: handle SHARING_VIOLATION and OPLOCK_NOT_GRANTED in pvfs_can_delete/rename()
If the caller asks for the odb_lock return it
also if we return NT_STATUS_SHARING_VIOLATION
or NT_STATUS_OPLOCK_NOT_GRANTED so that the caller
can add the pending notification.

metze
(This used to be commit daab9cb11e)
2008-02-25 07:56:18 +01:00
Stefan Metzmacher
1cd2008aa4 pvfs: pass NULL to pvfs_can_*() when no odb_lock is needed by the caller
metze
(This used to be commit e585e23063)
2008-02-25 07:56:06 +01:00
Stefan Metzmacher
a0a0d4a5d0 pvfs_wait: use struct pvfs_wait * instead of void *
metze
(This used to be commit 3b70331536)
2008-02-25 07:55:09 +01:00
Stefan Metzmacher
fb6f52261a pvfs_wait: 'private' -> 'private_data' and use talloc_get_type()
metze
(This used to be commit 16a7d0cc37)
2008-02-25 07:55:08 +01:00
Jelmer Vernooij
10169a2030 Remove more global_loadparm instance.s
(This used to be commit a1280252ce)
2008-02-21 17:54:24 +01:00
Jelmer Vernooij
c38c2765d1 Remove yet more uses of global_loadparm.
(This used to be commit e01c1e87c0)
2008-02-21 17:17:37 +01:00
Jelmer Vernooij
ede79ae482 Remove more uses of global_loadparm.
(This used to be commit 58a5b1de2b)
2008-02-21 15:38:35 +01:00
Jelmer Vernooij
d9f8232c34 Remove more uses of global_loadparm.
(This used to be commit 230355d2e6)
2008-02-21 15:21:45 +01:00
Jelmer Vernooij
ff0315ba85 Rename include to mkinclude to emphasize it is different from make's include.
(This used to be commit 0e1d0a874a)
2008-02-18 20:04:18 +01:00
Jelmer Vernooij
602f4635da Get rid of 'INTEGRATED' build of modules - now replaced by 'MERGED_OBJ'
(This used to be commit 269cbf84d8)
2008-02-18 19:06:17 +01:00
Andrew Tridgell
4a04a5e620 A better way to handle the different format of RenameInformation in SMB2
We now define a separate info level RAW_SFILEINFO_RENAME_INFORMATION_SMB2
and set that level when handling SMB2 packets. This makes the parsers clearer.
(This used to be commit f6cdf3f117)
2008-02-14 14:54:21 +11:00
Andrew Tridgell
039f85835d we need to refuse a root_fid in rename on SMB but not SMB2
(This used to be commit 9a139c35b7)
2008-02-14 12:50:11 +11:00
Andrew Tridgell
839ab724dc Fixed SMB2 rename operations from Vista clients
We needed a flag in bufinfo to mark packets as SMB2, as it seems that
SMB2 uses a different format for the RenameInformation buffer than SMB
does

Also handle the fact that SMB2 clients give the full path to the
target file in the rename, not a relative path
(This used to be commit 52d7972d95)
2008-02-14 12:30:31 +11:00
Andrew Tridgell
158bd784fc missed another spot in the SMB2 create conversion
(This used to be commit df82b0aa69)
2008-02-13 17:36:41 +11:00
Andrew Tridgell
88d2e05227 updated SMB2 create operation to match WSPP.
Adding some defined for various new create options
(This used to be commit d037dc23ce)
2008-02-13 15:05:44 +11:00
Andrew Tridgell
7714a91f67 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit 11102681bc)
2008-02-13 10:14:04 +11:00
Andrew Tridgell
e94d710b0b updated SMB2 tcon as per WSPP docs
(This used to be commit 5913e3e549)
2008-02-13 10:13:28 +11:00
Amin Azez
cb2f8d6cf4 Fix open file tracking in vfs_cifs so that oplock breaks can propagate
Oplock breaks were not propagating because the list of open files was not
being maintained.

This fixes that based on best-guess of how it should work.

It has been tested manually with windows XP client obtaining an oplock from a
windows 2003 server, which then broke the lock when smbclient read the same file.

Previously the smbclient read blocked until the oplock timed out
(This used to be commit 1a53aeff9a)
2008-02-12 14:17:41 +01:00
Jelmer Vernooij
03023c4f7d build: Demote a bunch of libraries to subsystems. This makes packaging easier and should also make it easier
to migrate to a new build system.
(This used to be commit 77b400764e)
2008-01-21 03:54:42 +01:00
Jelmer Vernooij
df408d056e r26672: Janitorial: Remove uses of global_loadparm.
(This used to be commit 18cd08623e)
2008-01-05 13:06:03 -06:00
Jelmer Vernooij
2da3464080 r26670: Janitorial: Remove global_loadparm uses.
(This used to be commit 13cc6ca1d3)
2008-01-05 09:42:02 -06:00
Jelmer Vernooij
dcc282590b r26654: libcli/smb_composite: Rather than specifying each of the gazillion options for SMB individually, just specify the smbcli_options struct.
(This used to be commit 8a97886e24)
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
425732f688 r26651: libsmb: Allow specifying signing policy from higher up.
The number of arguments is getting a bit excessive now, so it
probably makes sense to pass in the smbcli_options struct rather than
all members individually and add a convenience function for obtaining a
smbcli_options struct from a loadparm context.
(This used to be commit 9f64213463)
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
969b8579c7 r26646: libcli/smb_composite: Allow specifying SMB parameters in smb_composite_connect structure. AFAIK no global variables will now be used when doing RPC client connections.
(This used to be commit 0ef75e4e3c)
2008-01-02 12:48:04 -06:00
Jelmer Vernooij
771b347f9b r26644: Janitorial: Pass resolve_context explicitly to various SMB functions, should help fix the build for OpenChange.
(This used to be commit 385ffe4f4c)
2008-01-02 12:48:03 -06:00
Jelmer Vernooij
7d5f0e0893 r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
(This used to be commit 2f29f80e07)
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
86dc05e99f r26638: libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob().
(This used to be commit 61ad78ac98)
2008-01-01 16:12:11 -06:00
Jelmer Vernooij
c13ae70731 r26580: Include sentinel in build.h, in case the list is empty.
(This used to be commit f1997dabed)
2007-12-24 01:51:07 -06:00
Jelmer Vernooij
be33f4c611 r26576: Allow the static module loading code to be used for the Python modules.
Simplify the way module initialization functions are handled.
(This used to be commit ba8be2dfc0)
2007-12-24 01:51:06 -06:00
Jelmer Vernooij
96a200511e r26443: Remove global_loadparm instances.
(This used to be commit 8242c69623)
2007-12-21 05:50:11 +01:00
Jelmer Vernooij
e31abef15f r26440: Remove more uses of global_loadparm.
(This used to be commit 8858cf3972)
2007-12-21 05:50:08 +01:00
Jelmer Vernooij
d1e716cf43 r26432: Require ndr_pull users to specify iconv_convenience.
(This used to be commit 28b1d36551)
2007-12-21 05:50:02 +01:00
Jelmer Vernooij
61873ce94c r26431: Require ndr_push creators to specify a iconv_convenience context.
(This used to be commit 7352206f44)
2007-12-21 05:50:00 +01:00
Jelmer Vernooij
a2cea02584 r26430: require explicit specification of loadparm context.
(This used to be commit 1b947fe0e6)
2007-12-21 05:49:58 +01:00
Jelmer Vernooij
d891c0c74a r26429: Avoid use of global_smb_iconv_convenience.
(This used to be commit d37136b7ab)
2007-12-21 05:49:56 +01:00
Jelmer Vernooij
4b0199a549 r26409: Pass smb ports along.
(This used to be commit 2833f320de)
2007-12-21 05:49:42 +01:00
Jelmer Vernooij
28671c54cf r26403: Make sure ntvfs is only initialized once.
(This used to be commit 32b44e1074)
2007-12-21 05:49:34 +01:00
Jelmer Vernooij
f055893ca5 r26382: Remove more uses of global_loadparm.
(This used to be commit 6d4c598534)
2007-12-21 05:49:17 +01:00
Jelmer Vernooij
b65dba2245 r26355: Eliminate global_loadparm in more places.
(This used to be commit 5d589a0d94)
2007-12-21 05:49:01 +01:00
Jelmer Vernooij
a72c5053c5 r26353: Remove use of global_loadparm.
(This used to be commit 17637e4490)
2007-12-21 05:48:57 +01:00
Jelmer Vernooij
39ee38d9c1 r26316: Use contexts for conversion functions.
(This used to be commit f6420d933b)
2007-12-21 05:48:30 +01:00
Jelmer Vernooij
57f20ccd24 r26296: Store loadparm context in DCE/RPC server context.
(This used to be commit fc1f4d2d65)
2007-12-21 05:48:13 +01:00
Jelmer Vernooij
51db4c3f3d r26228: Store loadparm context in auth context, move more loadparm_contexts up the call stack.
(This used to be commit ba75f1613a)
2007-12-21 05:47:05 +01:00
Jelmer Vernooij
0ac6bffdf4 r26136: Attempt to fix dependencies for auth.
(This used to be commit abf2600a04)
2007-12-21 05:46:18 +01:00
Stefan Metzmacher
981437efbc r26053: IPC_RAP: don't use ndr_pull_save anymore
metze
(This used to be commit 590dd7f8a1)
2007-12-21 05:45:48 +01:00
Jelmer Vernooij
ca0b72a1fd r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.
(This used to be commit 56dfcb4f2f)
2007-12-21 05:45:40 +01:00
Stefan Metzmacher
529763a9aa r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)
lib/messaging/
lib/registry/
lib/ldb-samba/
librpc/rpc/
auth/auth_winbind.c
auth/gensec/
auth/kerberos/
dsdb/repl/
dsdb/samdb/
dsdb/schema/
torture/
cluster/ctdb/
kdc/
ntvfs/ipc/
torture/rap/
ntvfs/
utils/getntacl.c
ntptr/
smb_server/
libcli/wrepl/
wrepl_server/
libcli/cldap/
libcli/dgram/
libcli/ldap/
libcli/raw/
libcli/nbt/
libnet/
winbind/
rpc_server/

metze
(This used to be commit 6223c7fddc)
2007-12-21 05:45:02 +01:00
Stefan Metzmacher
6ce86941de r25839: use nss_wrapper code in samba4 if
--enable-nss-wrapper or --enable-developer is given

metze
(This used to be commit f8bc6b9ad0)
2007-12-21 05:44:20 +01:00
Jelmer Vernooij
2151cde580 r25554: Convert last instances of BOOL, True and False to the standard types.
(This used to be commit 566aa14139)
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
2f3551ca7c r25446: Merge some changes I made on the way home from SFO:
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
(This used to be commit 3468952e77)
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
60a1046c5c r25430: Add the loadparm context to all parametric options.
(This used to be commit fd697d77c9)
2007-10-10 15:07:31 -05:00
Jelmer Vernooij
37d53832a4 r25398: Parse loadparm context to all lp_*() functions.
(This used to be commit 3fcc960839)
2007-10-10 15:07:25 -05:00
Jelmer Vernooij
98b57d5eb6 r25035: Fix some more warnings, use service pointer rather than service number in more places.
(This used to be commit df9cebcb97)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
ffeee68e4b r25026: Move param/param.h out of includes.h
(This used to be commit abe8349f9b)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
8d182d881d r24816: Move the rest of the contents of core.h to more appropriate places.
include/ now only contains build system related headers, all other headers are
now near the source code they're related to.
(This used to be commit 6890a01dbf)
2007-10-10 15:03:15 -05:00
Jelmer Vernooij
61ffa08f4c r24712: No longer expose the 'BOOL' data type in any interfaces.
(This used to be commit 1ce32673d9)
2007-10-10 15:02:54 -05:00
Andrew Tridgell
3b3bfed2c3 r24646: fixed the handling of case insensitive paths with wildcards
(This used to be commit 066bcd8420)
2007-10-10 15:02:31 -05:00
Andrew Tridgell
fe5124e38d r24642: prevent recursion with fetch_locked
add a note about server_id exists checking
(This used to be commit dd951b983c)
2007-10-10 15:02:29 -05:00
Andrew Tridgell
10d8f0086b r24641: fixed several memory leaks in the brlock code
(This used to be commit aa0a348964)
2007-10-10 15:02:28 -05:00
Andrew Tridgell
4792285282 r24284: change brlock_tdb.c to use the dbwrap API. This actually makes the
backend abstraction for brlock pointless, but I have left it in place
for now. It would be useful for other clustering systems that can't
map to dbwrap, and would also be useful if we wanted to keep the
remote function call capabilities in ctdb instead of the less
efficient fetch_locked() call in dbwrap
(This used to be commit 912c014b7c)
2007-10-10 15:01:36 -05:00
Andrew Bartlett
bd750a77c0 r24075: As suggested by metze, match the behaviour of ntvfs_posix, and remove
the backend data (effectivly closing the handle) when we close an IPC
FD.

This should fix #4821.

Andrew Bartlett
(This used to be commit efaf91b9d5)
2007-10-10 15:01:22 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac)
2007-10-10 14:59:12 -05:00
Andrew Tridgell
d1984d5cf3 r23698: fixed notify:backend so it actually works again
(This used to be commit d49ce1d752)
2007-10-10 14:59:04 -05:00
Andrew Tridgell
879e1e0ec7 r23697: use the file perm options in the posix backend
(This used to be commit 701d06ac01)
2007-10-10 14:59:03 -05:00
Andrew Bartlett
6d52f4a63f r23136: Set the event context onto the credentials in more places.
This helps ensure that the kerberos code uses the right event context.

Andrew Bartlett
(This used to be commit cbdce358ae)
2007-10-10 14:52:54 -05:00
Stefan Metzmacher
42c1ef4025 r23067: use 'const union smb_search_data *file' also in the server code to get rid
of compiler warnings in the cifs backend

metze
(This used to be commit 34ef07b1f5)
2007-10-10 14:52:47 -05:00
Andrew Bartlett
615fea1c5c r23064: Clarify comment and indent
(This used to be commit 607e8409f8)
2007-10-10 14:52:46 -05:00
Andrew Tridgell
e3036006fe r23017: fixed the warning we have been getting for a long time:
pvfs_close: failed to delete XXX
during the BASE-DELETE test. It was a real bug, and could result in a
delete on close triggering for a handle that had never fully opened.
(This used to be commit 398c3724b4)
2007-10-10 14:52:39 -05:00
Stefan Metzmacher
283aeb2a37 r22913: try to work arround the unaligned memory access bug on Tru64
metze
(This used to be commit 3a7a30ab1c)
2007-10-10 14:52:30 -05:00
Andrew Bartlett
4febada51f r22882: It seems entirly reasonable to follow metze's suggestion and check for
a valid file handle first.

Andrew Bartlett
(This used to be commit 3947db3dcb)
2007-10-10 14:52:28 -05:00
Andrew Bartlett
3a88c56346 r22874: Expand the RPC-QFILEINFO-IPC test, and add a server implementation to match.
This should help with Vista joins.

Andrew Bartlett
(This used to be commit 8f85fb3786)
2007-10-10 14:52:27 -05:00
Stefan Metzmacher
37f8c04d90 r22865: handle pending locks in smb2
metze
(This used to be commit 8329fa6895)
2007-10-10 14:52:25 -05:00
Stefan Metzmacher
5eb7420f11 r22864: in SMB2 mode we need to cancel an existing lock with a conflicting lock
if they're on the same handle and the same range

metze
(This used to be commit 36384bb4a0)
2007-10-10 14:52:25 -05:00
Stefan Metzmacher
0543c06d25 r22863: in SMB2 mode we always need to return NT_STATUS_LOCK_NOT_GRANTED
metze
(This used to be commit 83a61a2892)
2007-10-10 14:52:25 -05:00
Stefan Metzmacher
bd93b41d17 r22849: map smb2 lock to the generic level
metze
(This used to be commit fbbb144f8e)
2007-10-10 14:52:24 -05:00
Stefan Metzmacher
a42f78cd50 r22842: fix directory listing of SMB2 and include directories and hidden files
metze
(This used to be commit e087772ec9)
2007-10-10 14:52:24 -05:00
Andrew Tridgell
bf27e58c2f r22831: take advantage of EVENT_FD_AUTOCLOSE in the inotify code
(This used to be commit 419ef7393f)
2007-10-10 14:52:21 -05:00
Stefan Metzmacher
344cde462e r22406: this dependencies should also be private
metze
(This used to be commit 7f07895cac)
2007-10-10 14:51:15 -05:00
Stefan Metzmacher
cfb00400df r22399: fix major memory leak
metze
(This used to be commit cc71fa3496)
2007-10-10 14:51:14 -05:00
Stefan Metzmacher
aabf459ca6 r22258: make ntvfs a library again
metze
(This used to be commit 26566222ec)
2007-10-10 14:50:48 -05:00
Stefan Metzmacher
3529cf25eb r22200: make ntvfs a subsystem as linking ntvfs.so.1 uses
ca. 800 cmdline args to ld and that fails on some hosts
in the build-farm, lets see if they will be happier now

metze
(This used to be commit fda810ff12)
2007-10-10 14:50:37 -05:00
Andrew Tridgell
66156220eb r22082: merged the ctdb changes from bzr
added opendb ctdb backend from ronnie
(This used to be commit b0da25cb79)
2007-10-10 14:49:48 -05:00
Andrew Tridgell
f00f7a34a9 r22021: use the pid specified in the individual locks, not the request pid, in
locking requests.

This fixes a bug noticed by Ronnie Sahlberg (thanks!)
(This used to be commit b4ac085816)
2007-10-10 14:49:41 -05:00
Andrew Tridgell
676a04a056 r21807: modularise the opendb code, so different backends can be
implemented. This will allow for a ctdb opendb backend.
(This used to be commit 6b91ca0968)
2007-10-10 14:49:29 -05:00
Jelmer Vernooij
bedf53f9e0 r21669: Fix --enable-dso build
(This used to be commit 7cf9d07c88)
2007-10-10 14:49:07 -05:00
Andrew Tridgell
1cd412aa19 r21234: fixed a subtle bug with talloc reference counting and async ntvfs
requests.
(This used to be commit 6a2ba01f15)
2007-10-10 14:44:50 -05:00
Andrew Tridgell
667cff3699 r21214: fixed a valgrind error that can be caused by a semi-async call inside
a nested ntvfs call. The req structure can go away while processing a
ntvfs request
(This used to be commit f62b3c505f)
2007-10-10 14:44:47 -05:00
Volker Lendecke
4da372c906 r21104: Rename struct watch_context to struct inotify_watch_context
(This used to be commit 3548b1f683)
2007-10-10 14:44:30 -05:00
Volker Lendecke
4c9efad4b8 r21042: Fix typo
(This used to be commit eb83537a3b)
2007-10-10 14:44:24 -05:00
Volker Lendecke
1fbb49a3e7 r21041: Change some "private" to "private_data", and change one (void **) function
parameter to (void *). void** in function parameters leads to type-punned
warnings.

Volker
(This used to be commit 57979d89c5)
2007-10-10 14:44:24 -05:00
Volker Lendecke
a80732cf00 r20983: Two no-mem error returns
(This used to be commit 79a0cd3a1b)
2007-10-10 14:44:17 -05:00
Volker Lendecke
67f494d72a r20972: "private" -> "private_data"
(This used to be commit 8cbcd3d1cb)
2007-10-10 14:44:05 -05:00
Andrew Tridgell
87df5a6312 r20947: fixed a bug in the unlock logic in the brlock tdb backend
I'm very surprised this didn't show up earlier!
(This used to be commit 5d9b1acf4f)
2007-10-10 14:43:59 -05:00
Andrew Tridgell
2ad79af331 r20920: use cluster_tdb_tmp_open() in ntvfs backend code
(This used to be commit c9080c5487)
2007-10-10 14:43:52 -05:00
Stefan Metzmacher
c30b82c3ea r20899: fix the build and compiler warnings
metze
(This used to be commit eec93720ac)
2007-10-10 14:43:49 -05:00
Stefan Metzmacher
22bedb42ab r20898: make it work to include ntvfs/ntvfs.h multiple times
metze
(This used to be commit 6814f38f00)
2007-10-10 14:43:48 -05:00
Stefan Metzmacher
f40182cb12 r20897: fix compiler warnings
metze
(This used to be commit 5ac562e1e0)
2007-10-10 14:43:48 -05:00
Andrew Tridgell
72316674bf r20894: the new brlock.c is needed (seems a svn rename + new file didn't make
it in one commit)
(This used to be commit 3315e877ab)
2007-10-10 14:43:47 -05:00
Andrew Tridgell
be05a5ca25 r20891: enable multiple brlock backends. The tdb backend is the default. The
prototype ctdb backend is in cluster/ctdb/brlock_ctdb.c
(This used to be commit 84d0e53162)
2007-10-10 14:43:46 -05:00