[cifs-protocol] SMB2-WRITE with offset=-2

Ralph Boehme slow at samba.org
Fri Nov 22 09:56:50 UTC 2024


Hello dochelp,

according to MS-FSA 2.1.5.4 "Server Requests a Write"

   If ByteOffset equals -2, then set ByteOffset to
   Open.CurrentByteOffset.

a write at this magic offset should happen at the at of the file.

However, if I try this over SMB3 against a Windows server this just 
fails with STATUS_INVALID_PARAMETER.

Is this not supposed to work over the wire?

Trace attached, cf packets 45+46.

Thanks!
-slow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: append-io.pcapng
Type: application/x-pcapng
Size: 4528 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/cifs-protocol/attachments/20241122/9b34191d/append-io.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/cifs-protocol/attachments/20241122/9b34191d/OpenPGP_signature.sig>


More information about the cifs-protocol mailing list