s4:torture: test setting EOF of a stream to 0 with enabled AAPL extensions
commit1a500dfef3d31f6f37af3ef7b2f72837ba99a102
authorRalph Boehme <slow@samba.org>
Thu, 17 May 2018 14:43:49 +0000 (17 16:43 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 12 Jul 2018 11:11:21 +0000 (12 13:11 +0200)
treeb46531fa864fa360d8f5a08abfbc876b86140699
parentc5ed2b3e9ca1ef7beddaa8c09e6036ee3859b1c3
s4:torture: test setting EOF of a stream to 0 with enabled AAPL extensions

macOS SMB server uses xattrs as storage backend for streams, directly
exposing xattr get/set characteristics. Setting EOF on a stream to 0
just deletes the xattr as macOS doesn't support 0-byte sized xattrs.

Note that this does not apply to the AFP_AfpInfo and AFP_Resource
streams, they have even stranger semantics and we have other tests
for those.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13441

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit cf5d471544f0cb0d072e4af1ee36798580d32897)
selftest/knownfail.d/samba3.vfs.fruit
source4/torture/vfs/fruit.c