r16874: query all information
authorStefan Metzmacher <metze@samba.org>
Sat, 8 Jul 2006 11:05:24 +0000 (11:05 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:09:56 +0000 (14:09 -0500)
metze
(This used to be commit 0ff9c5775724a4644dee10ce1476d728b515a569)

source4/torture/smb2/util.c

index cd5cfdafa642f29721c3b19196d6d202ee1d720a..da74e47c0ad15453ea4b5aca761d816ee854c28d 100644 (file)
@@ -160,7 +160,7 @@ static NTSTATUS smb2_create_complex(struct smb2_tree *tree, const char *fname,
        }
 
        /* make sure all the timestamps aren't the same */
-       fileinfo.generic.level = RAW_FILEINFO_BASIC_INFORMATION;
+       fileinfo.generic.level = RAW_FILEINFO_SMB2_ALL_INFORMATION;
        fileinfo.generic.in.file.handle = *handle;
 
        status = smb2_getinfo_file(tree, tree, &fileinfo);
@@ -171,7 +171,7 @@ static NTSTATUS smb2_create_complex(struct smb2_tree *tree, const char *fname,
        }
 
 #define CHECK_TIME(field) do {\
-       if (setfile.basic_info.in.field != fileinfo.basic_info.out.field) { \
+       if (setfile.basic_info.in.field != fileinfo.all_info2.out.field) { \
                printf("(%s) " #field " not setup correctly: %s(%llu) => %s(%llu)\n", \
                        __location__, \
                        nt_time_string(tree, setfile.basic_info.in.field), \