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

236 Commits

Author SHA1 Message Date
Andrew Tridgell
7f0c7702f6 r14208: removed use of req->flags2 inside the ntvfs layer. This should help
metze on his quest to unify the ntvfs strucures for the smb and smb2
servers. The only place we needed flags2 inside ntvfs was for the
FLAGS2_READ_PERMIT_EXECUTE bit, which only affects readx, so I added a
readx.in.read_for_execute flag instead.
(This used to be commit b78abbbce6)
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
307e43bb56 r14173: change smb interface structures to always use
a union smb_file, to abtract
- const char *path fot qpathinfo and setpathinfo
- uint16_t fnum for SMB
- smb2_handle handle for SMB2

the idea is to later add a struct ntvfs_handle *ntvfs
so that the ntvfs subsystem don't need to know the difference between SMB and SMB2

metze
(This used to be commit 2ef3f59709)
2007-10-10 13:56:57 -05:00
Andrew Tridgell
2b051070cb r14059: change notify is quite a bit more complex than we thought. These tests
show that w2k3 buffers notifies on directories where you have used
notify previously, thus giving you notifications on events that happen
even when you do not have a current notify call outstanding. This
makes it much easier for clients to avoid race conditions, which is
probably why it is done. It also means that associating change
notifies in Samba with outstanding change notify requests won't work -
instead we have to associate them with buffers on open directories.
(This used to be commit 8c5c8846f5)
2007-10-10 13:52:39 -05:00
Jelmer Vernooij
f8fdbc967c r13944: Yet another round of splitups.
(This used to be commit f87debeb12)
2007-10-10 13:52:31 -05:00
Jelmer Vernooij
4ac2be9958 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
(This used to be commit 1228358767)
2007-10-10 13:52:24 -05:00
Jelmer Vernooij
dfc517b053 r13658: More moving around of files:
- Collect the generic utility functions into a lib/util/ (a la GLib is
		for the GNOME folks)
 - Remove even more files from include/
(This used to be commit ba62880f5b)
2007-10-10 13:52:05 -05:00
Stefan Metzmacher
a920f2f9a8 r13004: fix compiler warnings
metze
(This used to be commit 833efdf8a9)
2007-10-10 13:51:16 -05:00
Volker Lendecke
1971eebb10 r12765: Revert an accidential commit
(This used to be commit d96c84126d)
2007-10-10 13:49:51 -05:00
Volker Lendecke
53091bf83e r12764: Add a test for lsa_lookup. This will be expanded when I get around to add
trusted domains.

Volker
(This used to be commit 8b8bb85ad3)
2007-10-10 13:49:51 -05:00
Jelmer Vernooij
78c50015bb r12694: Move some headers to the directory of the subsystem they belong to.
(This used to be commit c722f665c9)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
25bb00fbcd r12693: Move core data structures out of smb.h into core.h
torture prototypes in seperate header
(This used to be commit 73610639b2)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
d4de4c2d21 r12608: Remove some unused #include lines.
(This used to be commit 70e7449318)
2007-10-10 13:49:03 -05:00
Andrew Tridgell
5e117701b4 r12549: fixed the problem with serialisation and the RAW-OPLOCK test
(This used to be commit ad3b828663)
2007-10-10 13:47:56 -05:00
Jelmer Vernooij
2cd5ca7d25 r12542: Move some more prototypes out to seperate headers
(This used to be commit 0aca5fd513)
2007-10-10 13:47:55 -05:00
Andrew Tridgell
042a9958c8 r11639: fixed some create_time tests that should be change_time tests
(This used to be commit c4266c7f68)
2007-10-10 13:46:04 -05:00
Andrew Tridgell
498b2892dd r11638: fixed handling of null volume name in RAW-QFSINFO test
thanks to Stephen Zarkos for finding this
(This used to be commit 8331eee64c)
2007-10-10 13:46:04 -05:00
Andrew Tridgell
655138602c r10912: added a test for supporting batch oplock upgrades
(This used to be commit 1183af06b7)
2007-10-10 13:39:41 -05:00
Stefan Metzmacher
ab4d635b92 r10504: - seperate implementation specific stuff, from the generic composite
stuff.
- don't use SMBCLI_REQUEST_* state's in the genreic composite stuff
- move monitor_fn to libnet.

NOTE: I have maybe found some bugs, in code that is dirrectly in DONE or ERROR
      state in the _send() function. I haven't fixed this bugs in this
      commit! We may need some composite_trigger_*() functions or so.
      And maybe some other generic helper functions...

metze
(This used to be commit 4527815a0a)
2007-10-10 13:38:57 -05:00
Tim Potter
8dbeab5cd2 r10257: strlen returns a size_t which can be 64 bits long.
(This used to be commit 4a4b053718)
2007-10-10 13:38:12 -05:00
Jeremy Allison
0ac1490a89 r10132: Confirm that openX with OPEN_EXEC implies read only.
Jeremy.
(This used to be commit da70b2ab2d)
2007-10-10 13:38:01 -05:00
Tim Potter
9a56cb39b3 r9876: Fix some 64-bit warnings for Itanium machine.
(This used to be commit 9e375d82e8)
2007-10-10 13:36:19 -05:00
Jelmer Vernooij
b674411eb4 r9792: Rename StrCaseCmp -> strcasecmp_m. All these years I was thinking
StrCaseCmp was sys_strcasecmp, while it is in fact strcasecmp_m!
(This used to be commit 200a8f6652)
2007-10-10 13:35:01 -05:00
Volker Lendecke
11f4803d00 r9584: Fix a race condition in Samba 3. If two files are opened simultaneously with
NTCREATEX_DISP_CREATE (create if not exists, else fail) they might end up with
two or more times NT_STATUS_OK as EEXIST is not correctly handled.

Jeremy, please look closely at this. You can easily verify this by adding a
smb_msleep(100) to the top of open_file_ntcreate and run the new samba4
torture test. It does also happen without the msleep, but not as reliably.

Thanks,

Volker
(This used to be commit c803d4c9a5)
2007-10-10 13:34:32 -05:00
Tim Potter
2fa50ab671 r9222: Rename smb_tree_connect() to smb_raw_tcon() to match other raw function
names.
(This used to be commit 26b191b3c9)
2007-10-10 13:31:33 -05:00
Andrew Tridgell
c3ee5d6f75 r9121: use the older non-passthru level for setting delete on close
disposition in the RAW-UNLINK test (this allows it to work with netapp
servers)
(This used to be commit 4f9cfd10bf)
2007-10-10 13:31:18 -05:00
Andrew Tridgell
d07f01b203 r9046: fixed display of privileges in RAW-ACLS test
(This used to be commit 0ab907af6a)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
89cbdf8ed0 r9045: be friendly towards servers that don't understand the 'share' form for tconx, instead of the \\server\share
form
(This used to be commit 02a78d06e1)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
177423e88c r9044: added a comment so you can see what this test does :-)
(This used to be commit ee27441608)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
089fa95704 r9043: fixed return code in RAW-STREAMS test
(This used to be commit 45e41010da)
2007-10-10 13:31:10 -05:00
Andrew Tridgell
8a0b044d20 r9042: fixed the valgrind error in the RAW-SFILEINFO test
(This used to be commit eaf079e33f)
2007-10-10 13:31:10 -05:00
Andrew Tridgell
8d5f642ee1 r9008: check the return status for the directory handle creations
(This used to be commit 57e44300f7)
2007-10-10 13:31:06 -05:00
Andrew Tridgell
d4c4f16f94 r9006: expanded RAW-UNLINK test to test directory delete on close with non-empty directory,
as per discussions during jeremys talk at cifs2005
(This used to be commit b28b2108c7)
2007-10-10 13:31:06 -05:00
Andrew Tridgell
7937a353db r9003: add testing for non-empty directory delete on close
(This used to be commit caca1f191d)
2007-10-10 13:31:06 -05:00
Andrew Tridgell
5f0c8df55a r8773: fixed another dependency on directory ordering in RAW-SEARCH
Thanks to andrew bartlett for helping to track this down (his was the
only system that hit this)
(This used to be commit 5edeb56bf0)
2007-10-10 13:30:03 -05:00
Andrew Tridgell
6b2d6ce604 r8729: make the RAW-SEARCH test more robust to servers with hash based directory ordering
(This used to be commit 8c4d0cd7b7)
2007-10-10 13:29:59 -05:00
Andrew Tridgell
2c457eca25 r8712: cleanup old search test code to use talloc
(This used to be commit 1d830bcd47)
2007-10-10 13:29:57 -05:00
Andrew Tridgell
92a6cd373a r8709: fixed the assumption in RAW-SEARCH that directories are returned in sorted order
(This used to be commit 92afff5fe7)
2007-10-10 13:29:56 -05:00
Andrew Tridgell
a4428c814a r8634: we are still getting occasional test failures due to disk space
changing. I suspect it is a signed/unsigned problem with the approx
equal test. Hopefully this will fix it.
(This used to be commit 668dd29259)
2007-10-10 13:29:47 -05:00
Andrew Tridgell
8e824d4d04 r8537: cope better with the small file handle limit on some systems in the build farm
(This used to be commit 6202a9d099)
2007-10-10 13:29:36 -05:00
Andrew Tridgell
9953452d49 r8522: fixed another couple of size_t warnings
(This used to be commit d2c9285483)
2007-10-10 13:29:34 -05:00
Andrew Tridgell
e835621799 r8520: fixed a pile of warnings from the build farm gcc -Wall output on
S390. This is an attempt to avoid the panic we're seeing in the
automatic builds.

The main fixes are:

 - assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats

 - use of NULL format statements to perform dn searches.

 - assumption that sizeof() returns an int
(This used to be commit a58ea6b385)
2007-10-10 13:29:34 -05:00
Andrew Tridgell
a2a838d72c r8497: prevent a fd leak in RAW-SEARCH test
(This used to be commit efb151ba79)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
060113de98 r8495: allow for up 10% change in allocated disk space during QFSINFO tests
(This used to be commit 16d752b551)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
fc56396261 r8494: fixed a bug in RAW-SFILEINFO that caused inconsistent results on different platforms
(This used to be commit 9264555541)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
bcec34683d r8491: lower the offset limit that filesystems need to support to pass RAW-WRITE to 2^33
(This used to be commit e499b1abae)
2007-10-10 13:23:09 -05:00
Volker Lendecke
8e05fc188e r8229: A level2 oplock does not conflict a no-oplock open, but is broken on first
write. Test that.

Volker
(This used to be commit 2ad02d5e09)
2007-10-10 13:19:22 -05:00
Volker Lendecke
824f5b4781 r8185: Delete on close on directories:
Creating a file in a directory with delete-on-close set returns
DELETE_PENDING, and trying to set the flag on a non-empty directory returns
DIRECTORY_NOT_EMPTY.

Volker
(This used to be commit 5680f34778)
2007-10-10 13:19:18 -05:00
Volker Lendecke
44b66a73d3 r8176: Exploring the share mode database...
A delete-on-close deleted file is still around while open on another fd. But
only for findfirst, not for qpathinfo :-)

Volker
(This used to be commit dbc7a1a978)
2007-10-10 13:19:17 -05:00
Jeremy Allison
3de3d6a02d r8174: Check DOS error codes in torture chkpath test.
Jeremy.
(This used to be commit ff58ecad04)
2007-10-10 13:19:17 -05:00
Andrew Tridgell
6667788706 r8123: fixed the RAW-NOTIFY and RAW-QFSINFO tests against w2k3
(This used to be commit acd9fad3a4)
2007-10-10 13:19:11 -05:00