summaryrefslogtreecommitdiff
path: root/source4/torture/raw/streams.c
AgeCommit message (Collapse)AuthorFilesLines
2009-10-15s4-smb: declare root_fid as a file handleAndrew Tridgell1-13/+13
In order to implement root_fid in the s4 SMB server we need to declare it as a handle type, just as for other fnum values in SMB. This required some extensive (but simple) changes in many bits of code.
2009-09-24s4 torture: Fix RAW-STREAMS to request more specific permissionsTim Prouty1-1/+2
This allows RAW-STREAMS to pass when the user isn't root on some systems that don't give full access rights to non-root users.
2009-04-01s4 torture: Remove unused parameterTim Prouty1-14/+7
2009-02-27And the prize for the most pain caused in the build farm for a simpleJeremy Allison1-1/+1
typo goes to..... Tim Prouty !!!! Sorry Tim, nice test but you made a typo in passing in the size of an array so we were reading uninitialized memory :-). That took far longer than it should have to track down... (%$&#ing build system....). The build farm should now slowly go back to normal. Jeremy.
2009-02-24Added torture test from a usage case from the Apple OS/X client.Jeremy Allison1-0/+119
Setting an attribute on a stream fnum must change the attribute on the base file. Jeremy.
2009-02-18s4 torture: Add new test to create a file with a lot of streamsTim Prouty1-0/+45
This tests how streaminfo deals with large buffers smbclient seems to have problems when the buffer size approaches the max data size. Also smbclient exposes no way to specify the max data size that is sent in a trans2 request. Instead it hardcodes in a much larger max than windows uses. For these reasons this test isn't actually run, but is more of a reference for how windows handles streaminfo buffers.
2009-02-18s4 torture: Add additional streams create disposition testTim Prouty1-0/+20
2009-01-09s4 torture: Add new create disposition test to RAW-STREAMSTim Prouty1-1/+167
2009-01-07added support for stream renames in Samba4Andrew Tridgell1-1/+2
This allows the RAW-STREAMS test to work again. We still have some limitations though: - renames of a stream to the default stream doesn't work - delete on close handling between streams and the main file is still broken
2009-01-04s4 torture: Add more rename tests to RAW-STREAMSTim Prouty1-3/+198
There is one part of the new rename tests that passes against windows, but doesn't pass against samba3 right now. Windows allow renaming a stream to the default stream, but none of the current streams module support this. When this ability is added the check for samba can be removed from this test. This patch also adds a missing unlink in the cleanup of test_stream_delete and changes the order that the tests are run to be consistent with the physical order in the file.
2008-12-22Make it clearer when RAW-STREAMS is failing (don't always print names).Jeremy Allison1-4/+6
Jeremy.
2008-12-19Add torture test for bug #5986 - streams rename, so we don't regress.Jeremy Allison1-0/+98
Jeremy.
2008-12-01RAW-STREAMS: test stream renamesStefan Metzmacher1-8/+74
metze
2008-12-01RAW-STREAMS: some more tests...Stefan Metzmacher1-18/+180
metze
2008-12-01RAW-STREAMS: test valid character in the range of 0x01 => 0x7FStefan Metzmacher1-0/+69
metze
2008-12-01RAW-STREAMS: check some strange stream name combinationsStefan Metzmacher1-0/+102
metze
2008-05-23RAW-STREAMS: better test the bahavior of streams on directoriesStefan Metzmacher1-10/+85
Note: this has a samba3 specific code path, which we should fixed. metze (This used to be commit 5c5c86683877337ff60526a40e7b689f604e40f8)
2008-03-12RAW-STREAMS: do a exit on the session after each sub testsStefan Metzmacher1-0/+2
metze (This used to be commit 3f7fef8b8c567379649611637d69c89d77d11d6c)
2008-03-12RAW-STREAMS: do what the comments sayStefan Metzmacher1-3/+5
metze (This used to be commit eb68a8ed4fa214ad2e858a7fbdf9b5376cda6e04)
2008-01-20Add an exception for S3Volker Lendecke1-3/+10
Doing this correctly would involve a create_file call for qpathinfo (This used to be commit da9a5b571ea87b2e08c74463d3fae58a9eb0828a)
2007-12-21r26184: Streams are tricky....Volker Lendecke1-2/+245
(This used to be commit f8c4a5ccc6ac9170074975e0ea92a6efdba064d4)
2007-12-21r26104: Revert 26103 -- breaks make testVolker Lendecke1-12/+0
(This used to be commit d1a220aee38cd7799e86366cc5bc574571915aa3)
2007-12-21r26103: Leave streams around to unlinkVolker Lendecke1-0/+12
Add test case for stream name case insensitity (This used to be commit d81bb50e1042934e9644e5502d83a2cedc033b3a)
2007-12-21r26029: In RAW-STREAMS test listing of streamsVolker Lendecke1-27/+116
(This used to be commit 8dbe10be30798ea78cc2a5e6c70e6bc5202fa05c)
2007-10-10r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij1-12/+12
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij1-2/+2
number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
2007-10-10r25000: Fix some more C++ compatibility warnings.Jelmer Vernooij1-1/+1
(This used to be commit 08bb1ef643ab906f1645cf6f32763dc73b1884e4)
2007-10-10r24735: Use torture API in more places.Jelmer Vernooij1-12/+3
(This used to be commit 1319d88c099496be29dd9214fa2492c81e848369)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
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 fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r16907: Add an index parameter to torture_open_connection. Next step is to ↵Volker Lendecke1-1/+1
enable the unclist parameter for all tests that do two connections, to enable cluster testing. Volker (This used to be commit a5d6db09244d444986f8fded3fc6e72c74c8ca1f)
2007-10-10r14720: Add torture_context argument to all torture testsJelmer Vernooij1-1/+1
(This used to be commit 3c7a5ce29108dd82210dc3e1f00414f545949e1d)
2007-10-10r14527: Fix build problems.Jelmer Vernooij1-0/+1
(This used to be commit 863ca4014d9b821706ee90f58ab5d5cf3899a4c7)
2007-10-10r14256: - rename smb_file -> smb_handleStefan Metzmacher1-5/+5
- move it into the in/out substructs again - allow file.path only on smb_fileinfo/smb_setfileinfo metze (This used to be commit be6d5298a2cdb7e7c61d70471bad445645af5963)
2007-10-10r14173: change smb interface structures to always useStefan Metzmacher1-5/+5
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 2ef3f5970901b5accdb50f0d0115b5d46b0c788f)
2007-10-10r12694: Move some headers to the directory of the subsystem they belong to.Jelmer Vernooij1-0/+1
(This used to be commit c722f665c90103f3ed57621c460e32ad33e7a8a3)
2007-10-10r12693: Move core data structures out of smb.h into core.hJelmer Vernooij1-0/+1
torture prototypes in seperate header (This used to be commit 73610639b23ca3743077193fa0b1de7c7f65944d)
2007-10-10r12608: Remove some unused #include lines.Jelmer Vernooij1-1/+0
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10r10257: strlen returns a size_t which can be 64 bits long.Tim Potter1-2/+2
(This used to be commit 4a4b0537183e16b00a94f0411e423c943d79cba9)
2007-10-10r9043: fixed return code in RAW-STREAMS testAndrew Tridgell1-1/+1
(This used to be commit 45e41010da19cafc9d50369c2d311a42e5172eb7)
2007-10-10r8520: fixed a pile of warnings from the build farm gcc -Wall output onAndrew Tridgell1-2/+2
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 a58ea6b3854973b694d2b1e22323ed7eb00e3a3f)
2007-10-10r5298: - got rid of pstring.h from includes.h. This at least makes it a bitAndrew Tridgell1-0/+1
less likely that anyone will use pstring for new code - got rid of winbind_client.h from includes.h. This one triggered a huge change, as winbind_client.h was including system/filesys.h and defining the old uint32 and uint16 types, as well as its own pstring and fstring. (This used to be commit 9db6c79e902ec538108d6b7d3324039aabe1704f)
2007-10-10r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for theAndrew Tridgell1-1/+1
large commit. I thought this was worthwhile to get done for consistency. (This used to be commit ec32b22ed5ec224f6324f5e069d15e92e38e15c0)
2007-10-10r4549: got rid of a lot more uses of plain talloc(), instead usingAndrew Tridgell1-1/+1
talloc_size() or talloc_array_p() where appropriate. also fixed a memory leak in pvfs_copy_file() (failed to free a memory context) (This used to be commit 89b74b53546e1570b11b3702f40bee58aed8c503)
2007-10-10r4063: - change char * -> uint8_t in struct request_bufferStefan Metzmacher1-1/+1
- change smbcli_read/write to take void * for the buffers to match read(2)/write(2) all this fixes a lot of gcc-4 warnings metze (This used to be commit b94f92bc6637f748d6f7049f4f9a30b0b8d18a7a)
2007-10-10r4037: fixed a bunch of "might be uninitialised" warnings after enabling -O1 ↵Andrew Tridgell1-1/+1
in my compile (This used to be commit 0928b1f5b68c858922c3ea6c27ed03b5091c6221)
2007-10-10r4035: more effort on consistent naming of the access mask bits.Andrew Tridgell1-1/+1
This removes the duplicate named SEC_RIGHTS_MAXIMUM_ALLOWED and SEC_RIGHTS_FULL_CONTROL, which are just other names for SEC_FLAG_MAXIMUM_ALLOWED and SEC_RIGHTS_FILE_ALL. The latter names match the new naming conventions in security.idl Also added names for the generic->specific mappings for files are directories (This used to be commit 17a4e0b3aca227b40957ed1e0c57e498debc6ddf)
2007-10-10r4011: get rid of rpc_secdes.h and replace it with a single sane set ofAndrew Tridgell1-2/+3
definitions for security access masks, in security.idl The previous definitions were inconsistently named, and contained many duplicate and misleading entries. I kept finding myself tripping up while using them. (This used to be commit 01c0fa722f80ceeb3f81f01987de95f365a2ed3d)
2007-10-10r3800: - fixed delete-on-close behaviour for streamsAndrew Tridgell1-0/+15
- added a delete-on-close test to RAW-STREAMS - don't allow rename of streams at the moment (I need to work out if its supposed to be allowed first) (This used to be commit f4b2b1311da6e37ac0947a3419d89c77ebbd6b63)
2007-10-10r3798: added support for alternate data streams in xattrs into pvfs.Andrew Tridgell1-4/+10
The trickiest part about this was getting the sharing and locking rules right, as alternate streams are separate locking spaces from the main file for the purposes of byte range locking, and separate for most share violation rules. I suspect there are still problems with delete on close with alternate data streams. I'll look at that next. (This used to be commit b6452c4a2068cf7e837778559da002ae191b508a)
2007-10-10r3793: add some streams tests that show how the :$DATA suffix is handledAndrew Tridgell1-1/+23
(This used to be commit 41d8c95c94291e73fae1541543d6ce02b81c0c46)