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

2651 Commits

Author SHA1 Message Date
Andrew Tridgell
80eef3ea66 r3539: much nicer async open delay code.
The previous code didn't handle the case where the file got renamed or
deleted while waiting for the sharing violation delay. To handle this
we need to make the 2nd open a full open call, including the name
resolve call etc. Luckily this simplifies the logic.

I also expanded the RAW-MUX test to include the case where we do
open/open/open/close/close, with the 3rd open async, and that open
gets retried after both the first close and the 2nd close, with the
first retry failing and the 2nd retry working. The tests the "async
reply after a async reply" logic in pvfs_open().
(This used to be commit eded2ad9c9)
2007-10-10 13:05:29 -05:00
Jelmer Vernooij
96ffc6d945 r3536: Some minor IDL updates/fixes/additions
(This used to be commit 6fab01df00)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
b2617daeb6 r3532: make sharing violation delay in pvfs configurable with "posix:sharedelay = usecs"
(This used to be commit c475877649)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
39cd0639e9 r3531: add support for RAW_OPEN_MKNEW, RAW_OPEN_CREATE and RAW_OPEN_CTEMP in pvfs
(This used to be commit 1d2f0a55c1)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
8fa7f264c6 r3530: make sure we match ntvfs_async_state_pop() with ntvfs_async_state_push()
(This used to be commit 730ae0600e)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
f71a4941f0 r3529: fixed signing support for SMBntcancel requests (no reply means seq
number rises by 1, not 2)
(This used to be commit 201ff734d4)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
c870ae8b89 r3528: added support for the SMBntcancel() operation, which cancels any
outstanding async operation (triggering an immediate timeout).

pvfs now passes the RAW-MUX test
(This used to be commit 3423e2f414)
2007-10-10 13:05:28 -05:00
Stefan Metzmacher
92cac50045 r3527: I hate compiler warnings...
metze
(This used to be commit d264aacfd5)
2007-10-10 13:05:28 -05:00
Andrew Bartlett
7d4809f5af r3524: Remove unused variable.
Andrew Bartlett
(This used to be commit a9f57319b8)
2007-10-10 13:05:28 -05:00
Andrew Tridgell
252e010abf r3523: removed a useless level 0 DEBUG()
(This used to be commit b36967466f)
2007-10-10 13:05:28 -05:00
Andrew Tridgell
00a1262f89 r3522: added async support to most of the ntvfs_map_*() functions, allowing functions like
SMBopenx, SMBread and SMBwrite to be performed async
(This used to be commit 9e80eb18ae)
2007-10-10 13:05:28 -05:00
Tim Potter
500ce03f7c r3521: Collect printer driver names in EnumPrinterDrivers.
(This used to be commit 86f54db1ef)
2007-10-10 13:05:28 -05:00
Andrew Tridgell
d4f667c377 r3520: minor portability fix (for struct timeval)
(This used to be commit ea1ad5897d)
2007-10-10 13:05:28 -05:00
Andrew Bartlett
37baa01e75 r3519: Include time headers to fix the build.
Andrew Bartlett
(This used to be commit d13e2aa89e)
2007-10-10 13:05:28 -05:00
Andrew Tridgell
a9c00f35f9 r3518: fixed some includes to be consistent.
- use #include <XXX.h> for operating system includes
 - use includes relative to include/ for things like system/wait.h

also fixed the thread backend to work somewhat. To fix it properly we need to do this:

 - add a configure test for support for thread local storage (the __thread keyword)
 - refuse to do pthreads if tls doesn't work
 - refuse to do pthreads if seteuid() affects process instead of thread
 - defined THREAD_LOCAL as __thread when WITH_PTHREADS
 - add THREAD_LOCAL to all the global data structures that should be
   thread local (there are quite a few)

right now the thread backend falls over when you hit it with several
connections at once, due to the lack of __thread on some critical
structures.
(This used to be commit 0dc1deabd0)
2007-10-10 13:05:27 -05:00
Jelmer Vernooij
f7a13be68d r3517: Fix the build - Sorry!
(This used to be commit a5c9e0a185)
2007-10-10 13:05:27 -05:00
Jelmer Vernooij
52f7f9b8be r3516: dcerpc_epm_map_binding now checks the endpoints it nows first
and then possibly does a epm_Map call().
ncacn_np now also uses dcerpc_epm_map_binding()
(This used to be commit 77eec3fa18)
2007-10-10 13:05:27 -05:00
Jelmer Vernooij
695677f4bb r3515: Fix RemoteActivation correctly this time (-:
Thanks to tridge for some help on this one!
(This used to be commit 1104667190)
2007-10-10 13:05:27 -05:00
Jelmer Vernooij
9a65c54c72 r3514: Allow specification of username, password and domain and try to set up connection.
(This used to be commit 8076db7a1f)
2007-10-10 13:05:24 -05:00
Jelmer Vernooij
6d3c74a67b r3513: Add (the infrastructure for) DCOM support. Contents:
- Support for sending over the object UUID in DCERPC calls
 - Simple torture test for the DCOM "Simple" object
 - Generate extra argument for "object" interfaces in pidl
 - Some stubs for common DCOM functions
(This used to be commit c052f2e1ed)
2007-10-10 13:05:23 -05:00
Stefan Metzmacher
e0e6e0f99d r3512: - support DsCrackName GUID strings ('{faedf4f9-0de8-4582-b8b6-c475efefbe5a}')
- resolve the GUID's we got in DsGetDomainControllerInfo in the DsCrackNames test

metze
(This used to be commit f631069582)
2007-10-10 13:05:23 -05:00
Stefan Metzmacher
823f169fec r3511: teh PAC used 8byte alignment
metze
(This used to be commit 08b26ed7ec)
2007-10-10 13:05:23 -05:00
Stefan Metzmacher
f8f1d1b089 r3510: fix build on SuSE 9.1
metze
(This used to be commit 9cc1ab4eb2)
2007-10-10 13:05:23 -05:00
Stefan Metzmacher
29697cb8c1 r3509: - comment out a unused var
- fix a scalar vs pointer bug

metze
(This used to be commit 8e3f87b9e0)
2007-10-10 13:05:23 -05:00
Stefan Metzmacher
6305528505 r3508: fix the build
(tridge: please don't forget this file next time :-)

metze
(This used to be commit 5fec93013e)
2007-10-10 13:05:23 -05:00
Andrew Tridgell
dde0705807 r3507: - added deferred replies on sharing violation in pvfs open. The
deferred reply is short-circuited immediately when the file is
  closed by another user, allowing it to be opened by the waiting user.

- added a sane set of timeval manipulation routines

- converted all the events code and code that uses it to use struct
  timeval instead of time_t, which allows for microsecond resolution
  instead of 1 second resolution. This was needed for doing the pvfs
  deferred open code, and is why the patch is so big.
(This used to be commit 0d51511d40)
2007-10-10 13:05:23 -05:00
Tim Potter
90a8c4acc7 r3506: Test EnumPorts function.
(This used to be commit 354068aae1)
2007-10-10 13:05:22 -05:00
Tim Potter
e3e5ef95ad r3505: #include dynconfig.h
(This used to be commit 336eba61e9)
2007-10-10 13:05:22 -05:00
Jelmer Vernooij
a4a475bcfa r3501: More work towards MGMT support in gepdump
(This used to be commit adeb0cd267)
2007-10-10 13:05:22 -05:00
Andrew Tridgell
d685e56a77 r3500: cleaned up the AS_USER/AS_GUEST stuff in the core smb packet processing
(This used to be commit 8fa456afc9)
2007-10-10 13:05:22 -05:00
Andrew Tridgell
1f8bb2f925 r3499: setting an out param for a non-pointer doesn't do anything (and
generated a warning as it was being set to a ptr)
(This used to be commit ba81a48c9d)
2007-10-10 13:05:22 -05:00
Andrew Tridgell
02785df1b0 r3497: removed some include cruft, and split out librpc/gen_ndr/tables.h
(This used to be commit 7dd3a5a6da)
2007-10-10 13:05:22 -05:00
Andrew Tridgell
6f214cc510 r3494: got rid of include/rewrite.h, and split out the dynconfig.h header
(This used to be commit 558de54ec6)
2007-10-10 13:05:22 -05:00
Andrew Tridgell
acb23b2c5f r3493: fixed a bug in readx reply where the client specifies an invalid high
part of the maxcnt. This caused an allocation failure and server exit.

Note: we need to go back over all the places in the core smb_server
that can cause allocation failures based on user input and fix them to
instead produce a SMB error.

Thanks to Susan for finding this bug.
(This used to be commit 4aed1b7921)
2007-10-10 13:05:21 -05:00
Jelmer Vernooij
bd6bc9c5ee r3490: All tests work against NT4 now
(This used to be commit 640e3a8ce8)
2007-10-10 13:05:21 -05:00
Jelmer Vernooij
3c4cd186ea r3489: Add a couple more DCOM tests (Both OxidResolver and RemoteActivation are
completely covered now)
(This used to be commit 06048d0dac)
2007-10-10 13:05:21 -05:00
Jelmer Vernooij
7573366629 r3488: Start using RemoteActivation
(This used to be commit b4e81ffc64)
2007-10-10 13:05:21 -05:00
Jelmer Vernooij
c1f9a94eba r3487: RemoteActivation works! The only odd bit is that I get either a
NT_STATUS_BUFFER_TOO_SMALL or a NT_STATUS_NET_WRITE_FAULT if I try other user accounts. Must've got something to do with the auth padding...
(This used to be commit f6f3d312bf)
2007-10-10 13:05:21 -05:00
Jelmer Vernooij
5f6ec5270d r3486: Add RemoteActivation server
(This used to be commit 0987a5fdd6)
2007-10-10 13:05:21 -05:00
Stefan Metzmacher
a2fd2488c7 r3484: - add support for conformant string arrays at the end of a struct
- add support for strings where the length excludes the NULLTERM

metze
(This used to be commit 8251d8b3e5)
2007-10-10 13:05:21 -05:00
Andrew Tridgell
34c9263ed0 r3483: IRIX 6.4 now builds
(This used to be commit 5d1a687ce4)
2007-10-10 13:05:20 -05:00
Andrew Tridgell
e8e94a93b5 r3482: fixed a warning and an error from the IRIX 6.4 build
(This used to be commit 8ec3cf8b2b)
2007-10-10 13:05:20 -05:00
Andrew Tridgell
a99b6219a8 r3481: split out client.h and events.h
(This used to be commit c6f4865744)
2007-10-10 13:05:20 -05:00
Andrew Tridgell
8228a362a9 r3480: moved some signal defines into include/system
(This used to be commit a954e707ef)
2007-10-10 13:05:20 -05:00
Andrew Tridgell
6bd02aa504 r3478: split out some more pieces of includes.h
(This used to be commit 8e9212ecfc)
2007-10-10 13:05:20 -05:00
Stefan Metzmacher
f74ea959fe r3477: add '--with-disable-ext-lib=LIB' option to be able to disable
the usage of external libraries.

(works currently only with the pkg-config detected libs)

metze
(This used to be commit 2640f2f57a)
2007-10-10 13:05:19 -05:00
Andrew Tridgell
acc9f59c7f r3476: fixed some const warnings
(This used to be commit 7dc58dc01e)
2007-10-10 13:05:18 -05:00
Andrew Tridgell
c5e4c83464 r3475: don't pass a ptr to an enum as a ptr to an int (bug found by tcc)
(This used to be commit a7e5bde6be)
2007-10-10 13:05:18 -05:00
Tim Potter
5f68ab2538 r3474: Add conversion functions for the time_t type.
(This used to be commit caa563faaa)
2007-10-10 13:05:18 -05:00
Tim Potter
c4a192553a r3473: Add LIBCRYPTO_OBJS to python extensions.
(This used to be commit f9038ee62f)
2007-10-10 13:05:18 -05:00