summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/torture_util.c5
1 files changed, 4 insertions, 1 deletions
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);