SMB2 Write truncate
David Mulder
dmulder at suse.com
Tue Jan 14 17:40:21 UTC 2020
I see that this is very messy. I'll move on for now. Looks to me like these tests will need to be completely re-written, since the behavior has changed.
On 1/14/20 10:11 AM, Stefan Metzmacher wrote:
Hi David,
it's good that you work on the smb2 tests, thanks!
But watch out for source4/torture/basic/delaywrite.c, the write time
update handling is one of the most complex topic.
Windows behaves differently depending on the OS version and
protocol and also the cross protocol behavior brings a lot of strange
things.
See https://bugzilla.samba.org/show_bug.cgi?id=13541 and
https://bugzilla.samba.org/show_bug.cgi?id=13594 for a lot of work
in progress patches and open questions.
Maybe you want to skip source4/torture/basic/delaywrite.c for now
and do the easy stuff first...
metze
Am 14.01.20 um 16:09 schrieb David Mulder via samba-technical:
To truncate in SMB2 you can call setinfo on a handle
with SMB_FILE_END_OF_FILE_INFORMATION.
Ah, I missed that SET_INFO call. Thanks Jeremy and Ronnie.
--
David Mulder
Labs Software Engineer, Samba
SUSE
1800 Novell Place
Provo, UT 84606
(P)+1 801.861.6571
dmulder at suse.com<mailto:dmulder at suse.com><mailto:dmulder at suse.com><mailto:dmulder at suse.com>
[https://www.suse.com/email/img/2016/email_signature_suse.png]<http://www.suse.com/><http://www.suse.com/>
--
David Mulder
Labs Software Engineer, Samba
SUSE
1800 Novell Place
Provo, UT 84606
(P)+1 801.861.6571
dmulder at suse.com<mailto:dmulder at suse.com>
[https://www.suse.com/email/img/2016/email_signature_suse.png]<http://www.suse.com/>
More information about the samba-technical
mailing list