summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-21 13:46:52 +0100
committerVolker Lendecke <vl@samba.org>2009-11-21 14:01:56 +0100
commit37e4e387db869600b68d28d4d7b5290fe8b110ae (patch)
tree3770d817f87e7c9d7ec3dbce71d1a43a131b6884 /source3/torture
parent5a1606269aeeeb1b777974d88c33df543d1b6f4d (diff)
downloadsamba-37e4e387db869600b68d28d4d7b5290fe8b110ae.tar.gz
samba-37e4e387db869600b68d28d4d7b5290fe8b110ae.tar.bz2
samba-37e4e387db869600b68d28d4d7b5290fe8b110ae.zip
s3: Convert cli_get_fs_attr_info to the async API
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 840dc94256..bf89ca35b1 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -2827,6 +2827,8 @@ static bool run_trans2test(int dummy)
const char *fname2 = "\\trans2\\trans2.tst";
char pname[1024];
bool correct = True;
+ NTSTATUS status;
+ uint32_t fs_attr;
printf("starting trans2 test\n");
@@ -2834,6 +2836,13 @@ static bool run_trans2test(int dummy)
return False;
}
+ status = cli_get_fs_attr_info(cli, &fs_attr);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("ERROR: cli_get_fs_attr_info returned %s\n",
+ nt_errstr(status));
+ correct = false;
+ }
+
cli_unlink(cli, fname, aSYSTEM | aHIDDEN);
cli_open(cli, fname,
O_RDWR | O_CREAT | O_TRUNC, DENY_NONE, &fnum);