summaryrefslogtreecommitdiff
path: root/source3/torture
AgeCommit message (Collapse)AuthorFilesLines
2009-06-05Make cli_ftruncate async. Also add a simple test.Jeremy Allison1-0/+24
Jeremy.
2009-06-05source3/torture/vfstest.c(process_file): fixed file descriptor leak.Slava Semushin1-0/+4
Found by cppcheck: [./source3/torture/vfstest.c:400]: (error) Resource leak: file
2009-06-03s3:smbd: move tcon specific globals to struct smbd_server_connectionStefan Metzmacher1-3/+3
metze
2009-05-30libwbclient: Store the winbind socket dir to use in the wb_contextKai Blin1-1/+1
2009-05-30libwbclient: Add async call framework.Kai Blin1-1/+1
2009-05-29Make cli_nt_delete_on_close() async.Jeremy Allison1-9/+9
Jeremy.
2009-05-27Add cli_posix_readlink() and a torture test for it.Jeremy Allison1-1/+15
Jeremy.
2009-05-27Add aync POSIX hardlink and symlink and torture test for them.Jeremy Allison1-2/+71
Missing call cli_readlink() is next. Jeremy.
2009-05-26Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke1-82/+98
This patch introduces struct stat_ex { dev_t st_ex_dev; ino_t st_ex_ino; mode_t st_ex_mode; nlink_t st_ex_nlink; uid_t st_ex_uid; gid_t st_ex_gid; dev_t st_ex_rdev; off_t st_ex_size; struct timespec st_ex_atime; struct timespec st_ex_mtime; struct timespec st_ex_ctime; struct timespec st_ex_btime; /* birthtime */ blksize_t st_ex_blksize; blkcnt_t st_ex_blocks; }; typedef struct stat_ex SMB_STRUCT_STAT; It is really large because due to the friendly libc headers playing macro tricks with fields like st_ino, so I renamed them to st_ex_xxx. Why this change? To support birthtime, we already have quite a few #ifdef's at places where it does not really belong. With a stat struct that we control, we can consolidate the nanosecond timestamps and the birthtime deep in the VFS stat calls. At this moment it is triggered by a request to support the birthtime field for GPFS. GPFS does not extend the system level struct stat, but instead has a separate call that gets us the additional information beyond posix. Without being able to do that within the VFS stat calls, that support would have to be scattered around the main smbd code. It will very likely break all the onefs modules, but I think the changes will be reasonably easy to do.
2009-05-25source{3,4}/torture/smbiconv.c(main): fixed file descriptor leak.Slava Semushin1-0/+1
File descriptor leaks only when we use file instead of stdout. Found by cppcheck: [./source3/torture/smbiconv.c:219]: (error) Resource leak: out [./source4/torture/smbiconv.c:211]: (error) Resource leak: out
2009-05-24use epoll for local-wbclient testVolker Lendecke1-1/+1
2009-05-22Test that POSIX open of a directory returns NT_STATUS_FILE_IS_A_DIRECTORY ↵Jeremy Allison1-1/+12
(ERRDOS, EISDIR). Jeremy.
2009-05-21s3 torture: Fix warningTim Prouty1-1/+1
2009-05-20Make cli_posix_open() and cli_posix_mkdir() async.Jeremy Allison1-8/+5
Jeremy.
2009-05-20Demonstrate a bug we have when dealing with real os-level share modesVolker Lendecke1-0/+75
Another one of those where you stare at logfiles for hours, and when you found it, it's absolutely obvious what is happening...
2009-05-19Make local-wbclient flexible in # of connections and opsVolker Lendecke1-4/+6
2009-05-14Make error message clearer on fail.Jeremy Allison1-2/+2
Jeremy.
2009-05-14Add a test showing what ascii values cause an NTFS volume toJeremy Allison1-0/+133
create a mangled name. We don't pass this yet, but it's not run by default. Jeremy.
2009-05-13s3:libsmb: let cli_smb_chain_send() also return NTSTATUSStefan Metzmacher1-2/+6
metze
2009-05-11Fix a bunch of compiler warnings about wrong format types.Jeremy Allison1-4/+4
Should make Solaris 10 builds look cleaner. Jeremy.
2009-05-09Fix the mangle1 testVolker Lendecke1-1/+1
2009-05-07Fix a typoVolker Lendecke1-1/+1
2009-05-07Add simple test chaining up sesssetup and tconVolker Lendecke1-0/+53
2009-05-06Make cli_setatr async.Jeremy Allison1-2/+2
Jeremy.
2009-05-05Make cli_getatr() async.Jeremy Allison1-5/+5
Jeremy.
2009-05-04Fix the async calls for the posix_unlink and posix_rmdir.Jeremy Allison1-1/+1
Jeremy.
2009-05-04s3 torture: Only close if open was successfulTim Prouty1-4/+12
2009-05-04Torture test for bug #6315 - smbd crashes doing vfs_full_audit on IPC$ close ↵Jeremy Allison1-2/+28
event. Shows that doing a tdis with invalid uid succeeds. Jeremy.
2009-05-04s3 torture: Fix comparison is always true warningTim Prouty1-2/+2
2009-05-03Fix an invalid type warningVolker Lendecke1-1/+1
2009-05-03Fix some warnings due to uint16_t!=-1 always being trueVolker Lendecke1-4/+4
2009-05-02Attempt to fix the build on SerNet-sles8Volker Lendecke1-3/+6
That compiler does not like #if embedded into the macro NT_STATUS_IS_OK.
2009-05-01Add getaddrinfo_send/recvVolker Lendecke1-0/+55
2009-04-30Cause cli_close to return an NTSTATUS.Jeremy Allison4-67/+67
Jeremy.
2009-04-30Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison9-415/+312
Convert all uses of cli_open(), cli_nt_createXXX to NTSTATUS versions. This is smaller than it looks, it just fixes a lot of old code. Next up, ensure all cli_XX functions return NTSTATUS. Jeremy.
2009-04-29Make cli_unlink async.Jeremy Allison9-108/+108
Jeremy.
2009-04-28Convert cli_rename to async.Jeremy Allison2-6/+6
Jeremy.
2009-04-28Convert cli_posix_unlink() and cli_posix_rmdir()Jeremy Allison1-2/+2
to async. First trans calls I've done. Jeremy.
2009-04-23Fix a pointless staticVolker Lendecke1-1/+1
2009-04-22Make cli_chkpath async.Jeremy Allison1-5/+5
Jeremy
2009-04-22Fix some nonempty blank linesVolker Lendecke1-143/+142
2009-04-22Remove some shadowed definition warningsVolker Lendecke1-3/+3
2009-04-21Make rmdir async.Jeremy Allison3-3/+3
Jeremy.
2009-04-21Make cli_mkdir async. Change it to return NTSTATUS.Jeremy Allison3-7/+7
Jeremy.
2009-04-20Reproduce a bug with a custom GET_REAL_FILENAMEVolker Lendecke1-0/+54
2009-04-16Add torture tester to ensure we don't regress the ulogoff bug.Jeremy Allison1-0/+45
Jeremy.
2009-04-07s3:smbtorture Convert charcnv torture suite to use push_ucs2_talloc()Andrew Bartlett1-4/+4
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-06Add a bad hack to enable level 2 oplocks in torture_open_connection_shareVolker Lendecke1-2/+4
2009-04-06Re-add the CHAIN1 testVolker Lendecke1-0/+81
2009-04-06Convert cli_echo to tevent_reqVolker Lendecke1-14/+1