git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4712940
)
s3: add comment about what the FSCTL_QUERY_ALLOCATED_RANGES currently does
author
Björn Jacke
<bj@sernet.de>
Wed, 7 Apr 2010 10:21:07 +0000
(12:21 +0200)
committer
Björn Jacke
<bj@sernet.de>
Wed, 7 Apr 2010 10:22:47 +0000
(12:22 +0200)
source3/smbd/nttrans.c
patch
|
blob
|
history
diff --git
a/source3/smbd/nttrans.c
b/source3/smbd/nttrans.c
index 46edc066861740863d06199e6156977372be8e09..a03a0b1a55b92b86c004f98205c143d448697717 100644
(file)
--- 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;