summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/getinfo.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-19 05:55:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:29 -0500
commit7d6f36682eab29cb23c40dd915acad61fb5d68cb (patch)
tree010c93a8e05e068af92ea1673bff3ea890a59556 /source4/torture/smb2/getinfo.c
parent931b1974a27b929b5b40d65d986f6381a0bc0daa (diff)
downloadsamba-7d6f36682eab29cb23c40dd915acad61fb5d68cb.tar.gz
r11800: - filled in unknown fields in SMB2 all_info level
- allow setting of the ALL_EAS flags bits in SMB2 getinfo (This used to be commit 8c7c54a46dfb91c053d07a5e606892a41213c605)
Diffstat (limited to 'source4/torture/smb2/getinfo.c')
-rw-r--r--source4/torture/smb2/getinfo.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source4/torture/smb2/getinfo.c b/source4/torture/smb2/getinfo.c
index b8e61ebe344..7c0fe7fbd7d 100644
--- a/source4/torture/smb2/getinfo.c
+++ b/source4/torture/smb2/getinfo.c
@@ -92,6 +92,7 @@ static BOOL torture_smb2_fileinfo(struct smb2_tree *tree)
goto failed;
}
+ printf("Testing file info levels\n");
torture_smb2_all_info(tree, hfile);
torture_smb2_all_info(tree, hdir);
@@ -100,6 +101,12 @@ static BOOL torture_smb2_fileinfo(struct smb2_tree *tree)
file_levels[i].finfo.query_secdesc.secinfo_flags = 0x7;
file_levels[i].dinfo.query_secdesc.secinfo_flags = 0x7;
}
+ if (file_levels[i].level == RAW_FILEINFO_SMB2_ALL_EAS) {
+ file_levels[i].finfo.all_eas.ea_flags =
+ SMB2_GETINFO_EA_FLAG_RESTART;
+ file_levels[i].dinfo.all_eas.ea_flags =
+ SMB2_GETINFO_EA_FLAG_RESTART;
+ }
file_levels[i].finfo.generic.level = file_levels[i].level;
file_levels[i].finfo.generic.in.handle = hfile;
file_levels[i].fstatus = smb2_getinfo_file(tree, tree, &file_levels[i].finfo);
@@ -130,7 +137,8 @@ static BOOL torture_smb2_fsinfo(struct smb2_tree *tree)
NTSTATUS status;
struct smb2_handle handle;
- status = torture_smb2_testdir(tree, DNAME, &handle);
+ printf("Testing fsinfo levels\n");
+ status = smb2_util_roothandle(tree, &handle);
if (!NT_STATUS_IS_OK(status)) {
printf("Unable to create test directory '%s' - %s\n", DNAME, nt_errstr(status));
return False;