summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-04-07 12:21:07 +0200
committerBjörn Jacke <bj@sernet.de>2010-04-07 12:22:47 +0200
commit3fdebc06465cd6493617c2b129759e08200097f7 (patch)
tree758beee439f4995e0b499e5b637d88c81eb8d23c /source3
parent4712940e7cbd0d05a30b548d23e96a4d0b741e78 (diff)
downloadsamba-3fdebc06465cd6493617c2b129759e08200097f7.tar.gz
samba-3fdebc06465cd6493617c2b129759e08200097f7.tar.bz2
samba-3fdebc06465cd6493617c2b129759e08200097f7.zip
s3: add comment about what the FSCTL_QUERY_ALLOCATED_RANGES currently does
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/nttrans.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 46edc06686..a03a0b1a55 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -2217,6 +2217,12 @@ static void call_nt_transact_ioctl(connection_struct *conn,
}
case FSCTL_QUERY_ALLOCATED_RANGES:
{
+ /* FIXME: This is just a dummy reply, telling that all of the
+ * file is allocated. MKS cp needs that.
+ * Adding the real allocated ranges via FIEMAP on Linux
+ * and SEEK_DATA/SEEK_HOLE on Solaris is needed to make
+ * this FSCTL correct for sparse files.
+ */
NTSTATUS status;
uint64_t offset, length;