SMB2 Write truncate

Stefan Metzmacher metze at samba.org
Tue Jan 14 17:11:44 UTC 2020


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>
> [https://www.suse.com/email/img/2016/email_signature_suse.png]<http://www.suse.com/>
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20200114/4f765f08/signature.sig>


More information about the samba-technical mailing list