s3:smbd: implement FSCTL_SET_SPARSE more correctly
authorBjörn Jacke <bj@sernet.de>
Thu, 18 Nov 2010 16:24:00 +0000 (17:24 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 17 Dec 2010 20:11:04 +0000 (21:11 +0100)
commit192c4a145f22d5d08586476793980c21db7793fe
tree725dd526f0b408ff119707d0c0022102762bf951
parent2c10c3496876892eb4a89b57c909c3ca397a7440
s3:smbd: implement FSCTL_SET_SPARSE more correctly

this is a port of a patch from metze for 3.3:

We don't do the "strict allocation" when the sparse bit isn't
set, but that shouldn't matter.

We now allow windows applications to set and unset the sparse
bit.

Note that in order to implement this 100% like described
in [MS-FSA], we'd have to change our data model and support
the sparse flag per stream.
source3/smbd/nttrans.c