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

15353 Commits

Author SHA1 Message Date
Stefan Metzmacher
9ddbdfa02c selftest: Samba4 passes all oplocks tests now
The support for oplocks is not completely finished
I believe we will not pass some non existing test.
But it's a good start.

metze
(This used to be commit 278eea57fa)
2008-02-26 09:33:01 +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
Andrew Bartlett
3526d1d48c Remove more cruft about smbscript.
Andrew Bartlett
(This used to be commit f68fc4582d)
2008-02-26 16:24:09 +11:00
Andrew Bartlett
864328e656 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit 35f7f488d8)
2008-02-26 16:19:57 +11:00
Andrew Bartlett
2c8415f767 Make use of smbpython clear.
Andrew Bartlett
(This used to be commit 98461d6053)
2008-02-26 16:19:42 +11:00
Kai Blin
1e5ced3793 howto: We need bin/smbpython to run python provisioning
(This used to be commit bb11071189)
2008-02-26 06:17:04 +01:00
Simo Sorce
0a8b1fd092 Update homepages for talloc, tdb and ldb subprojects
(This used to be commit 8cb07814bc)
2008-02-25 14:03:07 -05: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
Stefan Metzmacher
5dc8d3ed8b RAW-OPLOCK: remove unused var
(This used to be commit 6820da4482)
2008-02-25 07:54:25 +01:00
Stefan Metzmacher
a64bd41601 RAW-OPLOCK: fix typo (send oplock releases on the correct connection)
metze
(This used to be commit f6ecf59c75)
2008-02-25 07:54:24 +01:00
Stefan Metzmacher
77054b42bd selftest: we pass the BASE-DEFER_OPEN test
We just need to pass the same sharedelay time
to smbtorture as we use for smbd.

metze
(This used to be commit 3b78dc7ab2)
2008-02-25 07:42:38 +01:00
Stefan Metzmacher
a622f80c65 BASE-DEFER_OPEN: add torture:sharedelays option to run this test faster
metze
(This used to be commit 877cc375d0)
2008-02-25 07:39:23 +01:00
Volker Lendecke
bd95d6d5db Respect the return value of asprintf
This removes tons of warnings

warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result

for me. Lots of that kind left though :-)
(This used to be commit ba29219ea2)
2008-02-23 10:26:52 +01:00
Michael Adam
e9b0056586 libreplace: don't use socketwrapper for getifaddrs() implementations.
Michael
(cherry picked from commit 85eec1d1d6)
(This used to be commit a83db886e5)
2008-02-22 14:33:51 +01:00
Stefan Metzmacher
3fa76092e6 Happy New Year 2008! :-)
metze
(This used to be commit a601ecff4e)
2008-02-22 14:08:13 +01:00
Michael Adam
bf7d3b6ef4 libreplace: Fix comment originating from old samba source.
Michael
(This used to be commit 0440bcfe63)
2008-02-22 10:42:22 +01:00