summaryrefslogtreecommitdiff
path: root/source3/include/ntioctl.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-07-29 11:14:05 +0000
committerAndrew Tridgell <tridge@samba.org>2002-07-29 11:14:05 +0000
commit1ea873e0a07ed146ccfa61acd746de85df9ffb97 (patch)
treeaeac011a0b2be5a0b47b359d59e4a0c3bfd3293d /source3/include/ntioctl.h
parent8c85675b075404a333c8cc3d653b949e33ddc6a8 (diff)
downloadsamba-1ea873e0a07ed146ccfa61acd746de85df9ffb97.tar.gz
an initial fix for handling sparse files in smbd
This gets my test code working, where we previously failed with files above 20G in size. I'm still not completely happy with this. There are just too many fields in trans2.c that we don't fill in. (This used to be commit 7dfdb456d4c9bcf6ecb1f7e5c5e79989f95e5627)
Diffstat (limited to 'source3/include/ntioctl.h')
-rw-r--r--source3/include/ntioctl.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/source3/include/ntioctl.h b/source3/include/ntioctl.h
new file mode 100644
index 00000000000..4749842ddc5
--- /dev/null
+++ b/source3/include/ntioctl.h
@@ -0,0 +1,26 @@
+/*
+ Unix SMB/CIFS implementation.
+ NT ioctl code constants
+ Copyright (C) Andrew Tridgell 2002
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+/*
+ I'm guessing we will need to support a bunch of these eventually. For now
+ we only need the sparse flag
+*/
+
+#define NTIOCTL_SET_SPARSE 0x900c4