vfs_default: properly track written bytes for copy-chunk
authorRalph Boehme <slow@samba.org>
Fri, 25 Jun 2021 13:47:38 +0000 (15:47 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 30 Jun 2021 16:51:29 +0000 (16:51 +0000)
commite2d524d4baee193b0d03df3e7edda48b3cb4bddf
tree84b668706b98a1da7ed74b7eb970513820e82a67
parent4dcc04228df233be15efe9c31bcbaba822b140c4
vfs_default: properly track written bytes for copy-chunk

No change in behavour, this just makes the logic slightly more
understandable. In theory it would also allow the logic to be adjusted for
allowing short reads which is not quite clear from MS-SMB2 if we should allow
it. The file could be truncated while we're reading it.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12033

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_default.c