From baa3cba4c461fe62abe7bb65dc3fdbdc5007ef5f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 16 Nov 2005 04:35:49 +0000 Subject: r11736: display EAs and streams in smb2 torture tests (This used to be commit 2baea9a5ec0a805b90c8b48454e395ce40a35a74) --- source4/torture/smb2/util.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'source4') diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c index 7c4c99e777..73217152ee 100644 --- a/source4/torture/smb2/util.c +++ b/source4/torture/smb2/util.c @@ -60,6 +60,34 @@ void torture_smb2_all_info(struct smb2_tree *tree, struct smb2_handle handle) d_printf("\tunknown6: 0x%llx\n", io.all_info.unknown6); d_printf("\tfname: '%s'\n", io.all_info.fname); + /* the EAs, if any */ + status = smb2_getinfo_level(tree, tmp_ctx, handle, + SMB2_GETINFO_FILE_ALL_EAS, &io); + if (NT_STATUS_IS_OK(status)) { + int i; + for (i=0;i