1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

811 Commits

Author SHA1 Message Date
Jelmer Vernooij
b29d47edcf Move object file lists to the Makefile.
(This used to be commit a7e6d2a1832db388fdafa1279f84c9a8bbfc87d6)
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 5a1f0c0ce995064c23e9f726bceddbd8442c4293)
2008-03-01 10:29:56 +01:00
Stefan Metzmacher
a0235410ae pvfs_setfileinfo: support renaming of directories
metze
(This used to be commit 2ecc7ec8b392cf3ec698d168bf6fb7898e1978f1)
2008-02-29 15:17:53 +01:00
Stefan Metzmacher
176e20bf26 pvfs_setfileinfo: tell the opendb about renames
metze
(This used to be commit 9360eda2c5606b2c73edb768af8ca0e8ba310e30)
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 4b1a266f6fb04c8f923c48ea215ece6b45a18ea7)
2008-02-29 15:17:53 +01:00
Stefan Metzmacher
f9b2d29d32 pvfs_resolve: add pvfs_resolve_name_handle()
metze
(This used to be commit 714717253c035b31fc850df8456f8cf2b38bcb72)
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 356338b99a67bfaf09618f5ed7c8f5c4ff69fa06)
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 4fc41065a31cc8bd477ff5bf2d89f9f595002227)
2008-02-29 15:17:52 +01:00
Stefan Metzmacher
98dafd5eb1 opendb: add odb_get_path()
metze
(This used to be commit 02071f151a22257d31f8a8b254625e2067e7b94d)
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 587373b97b95a8e562c3a5a59a62abade4dfed2f)
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 6c659689ed4081f1d7a6253c538c7f01784197ba)
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 6cbb241c05539cc62526a366094c9c472e6422a5)
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 608e5cd881d64b8db9146dfc4b3a1778a93a0f8e)
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 e699633db2d377a9077ff490208da277e250239b)
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 73f12be7c6a648d4d5336328a340510ac7b1d6de)
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 c78451ce0618de92321430d2b50f9a8172d283f4)
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 fc27730bad24e8dddaa2e7f754a16811e38a2f60)
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 f4f593a1acd4a39f7be639465f0be4b3a97a9bfc)
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 79e42a5dfbfd59b856bca16456295cd2c93ab0ca)
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 48e703d5a6b8a7b273d0bf15fc6198ef25b0a7c4)
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 d96fcc52a70fd1236b767b1d88a39d78c4e8c48c)
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 c475353e34154eb13e35cc8b6cf553e3986f8677)
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 27e39063a0b759c7bced1cc9d7a6cb9192820c70)
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 066ba3c7cfff12cb0b5298fc45eabb5fc097d056)
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 6c34c7bc6801e470e5ec50aa93d0a07f7ad59314)
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 10c42e3d4ab71a71dfe620b40841dfe98f458c1a)
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 4e27ac8c529d5a1675fb02215191a2be7913ec97)
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 66ad1081f2be8a0caa16fb0d614b857a5bde751c)
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 746e89ce2e74dbd2cea8f5575c403e4c61f82cb8)
2008-02-26 09:32:59 +01:00
Stefan Metzmacher
c0d1543a6a pvfs: add posix:oplocktimeout=30 option
metze
(This used to be commit 5abc57ddab558c13db3864d13afc2ad3b1641d1c)
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 b258f9d8d4bf3606f4884d1bff548f16dadc08aa)
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 b8c42a1ff8fd4131ef2a1ad92a7405a2e4d335d3)
2008-02-26 09:32:58 +01:00
Stefan Metzmacher
348439e930 pvfs_oplocks: add pvfs_break_level2_oplocks()
metze
(This used to be commit e0837238b6b09143970f03b6a78201c3fe55f3cd)
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 27ec7bfc8b7f46c97e6878caf5cd694c517ce053)
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 dd56f55afdc0d114a0b0bceb0e4feb022919323a)
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 b09a2b126723bd75afd245f549703a04e512e129)
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 56bd63a4236ebf360d3e805c8560df86759573f7)
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 904159327b3cb80fbec6aa5a4feaa141190a3f3a)
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 e6b708a52b0eada3fd374b66292ded3b0f6ce217)
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 46500983fe2f63540a67e2e963ab264fa8a090d0)
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 aaaa26ae5e810495f313dfada771a8de86cedbd4)
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 1ba0b9a8f1f84c7c949b3d184843462b87446707)
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 5b12157e0f0f1cf6ea90503a72b56ab2032cb6e5)
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 65cfe71b2617598f8e38d04537cfc9ce44a36680)
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 fbfe953ba347a902297bd8eae900ca70efd2db01)
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 7872b05abe7532676c4cc25620b96ea5d59117d2)
2008-02-26 09:29:41 +01:00
Stefan Metzmacher
e5547201af opendb_tdb: grant level2 oplocks
metze
(This used to be commit 57f1b9d11cfcac3b5fdee1ad9e4ba81d0859c8dc)
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 bd3654500b14e4ed8d4a8bb25ff9da5035a16a8b)
2008-02-26 09:29:40 +01:00
Stefan Metzmacher
71943b209b opendb: add odb_update_oplock() call
metze
(This used to be commit df576d69c6981a4879a0e9447069fcfacb3588db)
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 49402007f6e9e02a29792344c088e40d1a9b7acf)
2008-02-25 11:50:39 +01:00