From 21934c09bdcad04633f0e77ad8136b8f2c21b9e5 Mon Sep 17 00:00:00 2001 From: Andrew Walker Date: Fri, 7 May 2021 06:37:25 -0400 Subject: 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 Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Mon May 10 20:16:21 UTC 2021 on sn-devel-184 --- source3/param/loadparm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/param') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 55184e9b798..85e578eda9e 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -197,6 +197,7 @@ static const struct loadparm_service _sDefault = .map_hidden = false, .map_archive = true, .store_dos_attributes = true, + .smbd_max_xattr_size = 65536, .dmapi_support = false, .locking = true, .strict_locking = Auto, -- cgit v1.2.1