[Samba] libsmbclient ftruncate
clalancette at illuminari.org
Tue Oct 19 17:22:12 GMT 2004
I am trying to build some SMB functionality into one of my
existing programs using libsmbclient. The interface has everything I
need, except for the ability to shrink files (basically do an ftruncate).
Looking at some ethereal captures, it looks like when a client wants to
do a shrink of a file, it issues a TRANS2 with SET_FILE_INFO and
SMB_FILE_END_OF_FILE_INFO, and SMB_FILE_ALLOCATION_INFO. Is there any way
I can approximate this using the current smbc_* functions, or do I have to
write it myself? Thanks in advance for any replies.
(P.S. Please CC me on any correspondence; I am not subscribed to the
More information about the samba