summaryrefslogtreecommitdiff
path: root/source3/libsmb/clifile.c
AgeCommit message (Collapse)AuthorFilesLines
2009-07-15Make cli_unlock and cli_unlock64 async. Fix POSIX lock test.Jeremy Allison1-64/+206
Jeremy.
2009-07-13Make cli_posix_lock/unlock asynchronous.Jeremy Allison1-58/+215
Jeremy.
2009-06-10Make ctemp async. Fix the test to pass against W2K3.Jeremy Allison1-36/+135
Jeremy.
2009-06-05Make cli_ftruncate async. Also add a simple test.Jeremy Allison1-72/+116
Jeremy.
2009-05-29Make cli_nt_delete_on_close() async.Jeremy Allison1-0/+130
Jeremy.
2009-05-28Make cli_posix_chown()/cli_posix_chmod() async.Jeremy Allison1-47/+213
Jeremy.
2009-05-28Make cli_posix_stat() async.Jeremy Allison1-52/+143
Jeremy.
2009-05-28Make getfacl async.Jeremy Allison1-40/+130
Jeremy.
2009-05-27Add cli_posix_readlink() and a torture test for it.Jeremy Allison1-1/+183
Jeremy.
2009-05-27Add aync POSIX hardlink and symlink and torture test for them.Jeremy Allison1-151/+300
Missing call cli_readlink() is next. Jeremy.
2009-05-26Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke1-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.
2009-05-20Make cli_posix_open() and cli_posix_mkdir() async.Jeremy Allison1-56/+217
Jeremy.
2009-05-13s3: return proper error code in cli_smb_req_sendBo Yang1-4/+16
Signed-off-by: Bo Yang <boyang@samba.org>
2009-05-12Clean up assignments to iov_base, ensure it's always cast to void *. This ↵Jeremy Allison1-1/+1
should quieten some warnings with picky compilers on the buildfarm. Jeremy.
2009-05-09s3:libsmb: fix layering of cli_ntrename_internal and its callersStefan Metzmacher1-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
2009-05-07Async API needs all parameters to be kept around until sent,Jeremy Allison1-55/+15
ensure they're attached to the state structure. Thanks to Metze for pointing this out. Jeremy.
2009-05-06Make cli_setatr async.Jeremy Allison1-0/+127
Jeremy.
2009-05-06Make cli_setattrE async.Jeremy Allison1-24/+96
Jeremy.
2009-05-05Make cli_getatr() async.Jeremy Allison1-26/+125
Jeremy.
2009-05-05Make cli_getattrE async.Jeremy Allison1-28/+128
Jeremy.
2009-05-04Fix the async calls for the posix_unlink and posix_rmdir.Jeremy Allison1-13/+49
Jeremy.
2009-04-30Cause cli_close to return an NTSTATUS.Jeremy Allison1-80/+3
Jeremy.
2009-04-30Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison1-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.
2009-04-29Make cli_unlink async.Jeremy Allison1-26/+91
Jeremy.
2009-04-29More async calls in libsmb/clifile.cJeremy Allison1-50/+170
Jeremy.
2009-04-28Doh ! Don't need "int dummy" when we have state :-).Jeremy Allison1-1/+0
Jeremy.
2009-04-28Convert cli_rename to async.Jeremy Allison1-23/+106
Jeremy.
2009-04-28Convert cli_posix_unlink() and cli_posix_rmdir()Jeremy Allison1-63/+190
to async. First trans calls I've done. Jeremy.
2009-04-24find/replace. Change uintX types to uintX_t types to tidy up the code.Jeremy Allison1-38/+38
Jeremy.
2009-04-22Make dskattr async.Jeremy Allison1-38/+102
Jeremy.
2009-04-22Make cli_chkpath async.Jeremy Allison1-0/+121
Jeremy
2009-04-21s3:libsmb: always use the tevent_req_nomem() for checking allocation failuresStefan Metzmacher1-6/+6
This will also make sure we cleanup 'req' in case of an error. metze
2009-04-21Make rmdir async.Jeremy Allison1-57/+91
Jeremy.
2009-04-21Make cli_mkdir async. Change it to return NTSTATUS.Jeremy Allison1-0/+110
Jeremy.
2009-04-14Convert Samba3 to use the common lib/util/charset APIAndrew Bartlett1-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
2009-04-06Convert cli_open to tevent_reqVolker Lendecke1-46/+102
2009-04-06Convert cli_close to tevent_reqVolker Lendecke1-20/+66
2009-04-06Convert cli_ntcreate to tevent_reqVolker Lendecke1-38/+68
2009-02-01Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke1-3/+3
2009-01-30Add async cli_ntcreateVolker Lendecke1-0/+132
2009-01-29Add the strlen to push to smb_bytes_push_str, return the converted sizeVolker Lendecke1-8/+11
The pushed strlen replaces the STR_TERMINATE flag which I personally always find very confusing.
2009-01-26Decouple clistr_pull from struct cli_state->inbufVolker Lendecke1-1/+1
2009-01-25Fix an error path memleakVolker Lendecke1-0/+1
2009-01-25Make smb_bytes_push_str deal with a NULL buf returning NULLVolker Lendecke1-1/+6
2008-12-19Pass "bytes_alignment" up through cli_request_sendVolker Lendecke1-2/+2
This parameter makes smb_spice_chain add padding before the bytes field
2008-12-08Simplify async programming a bit with helper routinesVolker Lendecke1-6/+5
Introduce async_req_is_error() and async_req_simple_recv()
2008-11-18libsmb: Fix up pointer passed to cli_send_trans in cli_link_internalKai Blin1-1/+1
2008-10-14Use {u,}int64_t instead of SMB_BIG_{U,}INT.Jelmer Vernooij1-6/+6
2008-09-09make smb_bytes_push_str publicVolker Lendecke1-1/+1
(This used to be commit d611f599b45ad9dad1027a16a0e8da7d4b96e608)
2008-09-01Fix typoVolker Lendecke1-1/+1
(This used to be commit 544d1fd19a7e85af5f522c5b6b4b68c6beb093a6)