s3:smbd - support streams larger than 64 KiB
authorAndrew Walker <awalker@ixsystems.com>
Fri, 7 May 2021 10:37:25 +0000 (06:37 -0400)
committerJeremy Allison <jra@samba.org>
Mon, 10 May 2021 20:16:21 +0000 (20:16 +0000)
commit21934c09bdcad04633f0e77ad8136b8f2c21b9e5
treece970097ef17fc02e0b1c837d5b2413be67032ac
parentac78b921dafa3372eee747caabd094fb5a05cf6b
s3:smbd - support streams larger than 64 KiB

Add support for streams that are larger than 64 KiB in size. Upper
and lower bound are controlled by the parameters smbd max_xattr_size.
Testing against ReFS on Windows (where ADS size is limited in size
shows the server responding with STATUS_FILESYSTEM_LIMITATION.
Do the same in samba for this case.

Currently, large xattrs are supported in FreeBSD.

Signed-off-by: Andrew Walker <awalker@ixsystems.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon May 10 20:16:21 UTC 2021 on sn-devel-184
docs-xml/smbdotconf/misc/smbdmaxxattrsize.xml [new file with mode: 0644]
lib/param/loadparm.c
source3/modules/vfs_streams_xattr.c
source3/param/loadparm.c
source3/smbd/smb2_write.c
source3/smbd/trans2.c