From: Gordon Ross Date: Mon, 9 May 2016 17:45:07 +0000 (-0400) Subject: torture: Allow running on FS that does not support EAs X-Git-Tag: talloc-2.3.1~473 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=78161550bac4bdbbea7f187b70413c55ef62fad2;p=thirdparty%2Fsamba.git torture: Allow running on FS that does not support EAs Signed-off-by: Gordon Ross Reviewed-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Mon Oct 7 22:05:59 UTC 2019 on sn-devel-184 --- diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c index 04212650c30..bdae7886ede 100644 --- a/source4/torture/smb2/util.c +++ b/source4/torture/smb2/util.c @@ -102,6 +102,13 @@ static NTSTATUS smb2_create_complex(struct torture_context *tctx, } status = smb2_create(tree, tmp_ctx, &io); + if (NT_STATUS_EQUAL(status, NT_STATUS_EAS_NOT_SUPPORTED)) { + torture_comment( + tctx, "EAs not supported, creating: %s\n", fname); + io.in.eas.num_eas = 0; + status = smb2_create(tree, tmp_ctx, &io); + } + talloc_free(tmp_ctx); NT_STATUS_NOT_OK_RETURN(status);