From 6dbd4ac331e4b4f5d87892cba1706244c2b55c0f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 19 May 2006 14:10:14 +0000 Subject: r15713: - initialize ntioctl.in.max_data and ntioctl.in.blob - use define instead of hex value metze (This used to be commit 6725cbf9e221e29cbe15dbcc62eecd8749655973) --- source4/torture/torture_util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/torture/torture_util.c b/source4/torture/torture_util.c index 805249b6fd..647f0ec73f 100644 --- a/source4/torture/torture_util.c +++ b/source4/torture/torture_util.c @@ -22,6 +22,7 @@ #include "smb.h" #include "lib/cmdline/popt_common.h" #include "libcli/raw/libcliraw.h" +#include "libcli/raw/ioctl.h" #include "libcli/libcli.h" #include "system/shmem.h" #include "system/time.h" @@ -385,10 +386,12 @@ NTSTATUS torture_set_sparse(struct smbcli_tree *tree, int fnum) } nt.ntioctl.level = RAW_IOCTL_NTIOCTL; - nt.ntioctl.in.function = 0x900c4; + nt.ntioctl.in.function = FSCTL_SET_SPARSE; nt.ntioctl.in.file.fnum = fnum; nt.ntioctl.in.fsctl = True; nt.ntioctl.in.filter = 0; + nt.ntioctl.in.max_data = 0; + nt.ntioctl.in.blob = data_blob(NULL, 0); status = smb_raw_ioctl(tree, mem_ctx, &nt); -- cgit