summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorGordon Ross <gwr@nexenta.com>2016-05-09 13:45:07 -0400
committerJeremy Allison <jra@samba.org>2019-10-07 22:05:59 +0000
commit78161550bac4bdbbea7f187b70413c55ef62fad2 (patch)
treec45e0e3e176b78d7a3d31f18c270c9f238c114cf /source4/torture
parent222f2538636d247f6ca067e0f8a174799143b155 (diff)
downloadsamba-78161550bac4bdbbea7f187b70413c55ef62fad2.tar.gz
torture: Allow running on FS that does not support EAs
Signed-off-by: Gordon Ross <gordon.w.ross@gmail.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Oct 7 22:05:59 UTC 2019 on sn-devel-184
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smb2/util.c7
1 files changed, 7 insertions, 0 deletions
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);