summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/clifile.c
Commit message (Collapse)AuthorAgeFilesLines
* s3: Fix the build on SolarisVolker Lendecke2009-11-171-6/+6
|
* s3:libsmb: avoid passing a function call as function parameterStefan Metzmacher2009-11-161-18/+18
| | | | | | | Using a helper variable makes it easier to "step" into the desired function within gdb. metze
* s3: Add min_setup, min_param and min_data to cli_trans_recvVolker Lendecke2009-11-141-85/+28
| | | | | | | | | | Every caller that expects to receive something needs to check if enough was sent. Make this check mandatory for everyone. Yes, this makes the parameter list for cli_trans a bit silly, but that's just the way it is: A silly protocol request :-) While there, convert some _done functions to tevent_req_simple_finish_ntstatus.
* s3:torture: Add a notify-bench testVolker Lendecke2009-10-131-0/+4
| | | | | | | This is a test that creates and deletes files in a directory as fast as the network allows it. At the same time, it opens a filechangenotify. This test is done to just torture handling a single directory together with the notify infrastructure.
* s3:libsmb: Add cli_notifyVolker Lendecke2009-10-131-0/+140
|
* Fix bug 6726 - Filename length overwrites oplock request field in ↵Jeremy Allison2009-09-141-1/+1
| | | | | | cli_nt_create(). Jeremy.
* Fix a valgrind error in cli_ctemp_doneVolker Lendecke2009-07-271-1/+3
| | | | | | | | | For performance reasons cli_smb_recv does not make copies of the buffers we received from the client, so both "vwv" and "bytes" vanish with TALLOC_FREE(subreq). I know this is a bit counter-intuitive, but I think in this case it's justified not to make copies. Comments?
* Make cli_unlock and cli_unlock64 async. Fix POSIX lock test.Jeremy Allison2009-07-151-64/+206
| | | | Jeremy.
* Make cli_posix_lock/unlock asynchronous.Jeremy Allison2009-07-131-58/+215
| | | | Jeremy.
* Make ctemp async. Fix the test to pass against W2K3.Jeremy Allison2009-06-101-36/+135
| | | | Jeremy.
* Make cli_ftruncate async. Also add a simple test.Jeremy Allison2009-06-051-72/+116
| | | | Jeremy.
* Make cli_nt_delete_on_close() async.Jeremy Allison2009-05-291-0/+130
| | | | Jeremy.
* Make cli_posix_chown()/cli_posix_chmod() async.Jeremy Allison2009-05-281-47/+213
| | | | Jeremy.
* Make cli_posix_stat() async.Jeremy Allison2009-05-281-52/+143
| | | | Jeremy.
* Make getfacl async.Jeremy Allison2009-05-281-40/+130
| | | | Jeremy.
* Add cli_posix_readlink() and a torture test for it.Jeremy Allison2009-05-271-1/+183
| | | | Jeremy.
* Add aync POSIX hardlink and symlink and torture test for them.Jeremy Allison2009-05-271-151/+300
| | | | | Missing call cli_readlink() is next. Jeremy.
* Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke2009-05-261-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Make cli_posix_open() and cli_posix_mkdir() async.Jeremy Allison2009-05-201-56/+217
| | | | Jeremy.
* s3: return proper error code in cli_smb_req_sendBo Yang2009-05-131-4/+16
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* Clean up assignments to iov_base, ensure it's always cast to void *. This ↵Jeremy Allison2009-05-121-1/+1
| | | | | | should quieten some warnings with picky compilers on the buildfarm. Jeremy.
* s3:libsmb: fix layering of cli_ntrename_internal and its callersStefan Metzmacher2009-05-091-29/+35
| | | | | | | | It's easier to have cli_ntrename_internal as a semetric async tevent_req function. cli_ntrename() and cli_nt_hardlink() should be callers on top of cli_ntrename_internal(). metze
* Async API needs all parameters to be kept around until sent,Jeremy Allison2009-05-071-55/+15
| | | | | | ensure they're attached to the state structure. Thanks to Metze for pointing this out. Jeremy.
* Make cli_setatr async.Jeremy Allison2009-05-061-0/+127
| | | | Jeremy.
* Make cli_setattrE async.Jeremy Allison2009-05-061-24/+96
| | | | Jeremy.
* Make cli_getatr() async.Jeremy Allison2009-05-051-26/+125
| | | | Jeremy.
* Make cli_getattrE async.Jeremy Allison2009-05-051-28/+128
| | | | Jeremy.
* Fix the async calls for the posix_unlink and posix_rmdir.Jeremy Allison2009-05-041-13/+49
| | | | Jeremy.
* Cause cli_close to return an NTSTATUS.Jeremy Allison2009-04-301-80/+3
| | | | Jeremy.
* Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison2009-04-301-29/+34
| | | | | | | 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.
* Make cli_unlink async.Jeremy Allison2009-04-291-26/+91
| | | | Jeremy.
* More async calls in libsmb/clifile.cJeremy Allison2009-04-291-50/+170
| | | | Jeremy.
* Doh ! Don't need "int dummy" when we have state :-).Jeremy Allison2009-04-281-1/+0
| | | | Jeremy.
* Convert cli_rename to async.Jeremy Allison2009-04-281-23/+106
| | | | Jeremy.
* Convert cli_posix_unlink() and cli_posix_rmdir()Jeremy Allison2009-04-281-63/+190
| | | | | to async. First trans calls I've done. Jeremy.
* find/replace. Change uintX types to uintX_t types to tidy up the code.Jeremy Allison2009-04-241-38/+38
| | | | Jeremy.
* Make dskattr async.Jeremy Allison2009-04-221-38/+102
| | | | Jeremy.
* Make cli_chkpath async.Jeremy Allison2009-04-221-0/+121
| | | | Jeremy
* s3:libsmb: always use the tevent_req_nomem() for checking allocation failuresStefan Metzmacher2009-04-211-6/+6
| | | | | | This will also make sure we cleanup 'req' in case of an error. metze
* Make rmdir async.Jeremy Allison2009-04-211-57/+91
| | | | Jeremy.
* Make cli_mkdir async. Change it to return NTSTATUS.Jeremy Allison2009-04-211-0/+110
| | | | Jeremy.
* Convert Samba3 to use the common lib/util/charset APIAndrew Bartlett2009-04-141-4/+4
| | | | | | | | | | | | This removes calls to push_*_allocate() and pull_*_allocate(), as well as convert_string_allocate, as they are not in the common API To allow transition to a common charcnv in future, provide Samba4-like strupper functions in source3/lib/charcnv.c (the actual implementation remains distinct, but the API is now shared) Andrew Bartlett
* Convert cli_open to tevent_reqVolker Lendecke2009-04-061-46/+102
|
* Convert cli_close to tevent_reqVolker Lendecke2009-04-061-20/+66
|
* Convert cli_ntcreate to tevent_reqVolker Lendecke2009-04-061-38/+68
|
* Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke2009-02-011-3/+3
|
* Add async cli_ntcreateVolker Lendecke2009-01-301-0/+132
|
* Add the strlen to push to smb_bytes_push_str, return the converted sizeVolker Lendecke2009-01-291-8/+11
| | | | | The pushed strlen replaces the STR_TERMINATE flag which I personally always find very confusing.
* Decouple clistr_pull from struct cli_state->inbufVolker Lendecke2009-01-261-1/+1
|
* Fix an error path memleakVolker Lendecke2009-01-251-0/+1
|