]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture: Allow running on FS that does not support EAs
authorGordon Ross <gwr@nexenta.com>
Mon, 9 May 2016 17:45:07 +0000 (13:45 -0400)
committerJeremy Allison <jra@samba.org>
Mon, 7 Oct 2019 22:05:59 +0000 (22:05 +0000)
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

source4/torture/smb2/util.c

index 04212650c30c60a6f045115911eafbb0e165e59a..bdae7886edef68036add3a395cd8881ca48b6469 100644 (file)
@@ -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);