]> git.ipfire.org Git - thirdparty/samba.git/commit
libsmb: Implement SMB_FIND_FILE_UNIX_INFO2 dir listing
authorVolker Lendecke <vl@samba.org>
Fri, 28 Feb 2020 10:10:47 +0000 (11:10 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 3 Mar 2020 17:48:37 +0000 (17:48 +0000)
commit890c94d5852c445cc866dd61fbfbcc8596726302
treec37f436585326fec7695c853a3312925a69e1deb
parent128545ba4f25e493736bf8f816f7d7490bd68fcb
libsmb: Implement SMB_FIND_FILE_UNIX_INFO2 dir listing

This keeps the original SMB_STRUCT_STAT coming from posix as part of
struct file_info. It is a slight waste of space, as the timestamps are
kept twice, but having a full SMB_STRUCT_STAT with the nlink!=0
validity check makes thinking about which mode/size/etc is the correct
one a no-brainer. We can save space later by referencing only one set
of time stamps for example.

This for the time fixes readdirplus2, but for the wrong reason: We don't yet
create files the "proper" way using posix create.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail.d/libsmbclient
source3/include/client.h
source3/libsmb/clilist.c