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:05 +0000 (12:11 -0800)
commit659e627424a011bb3cad33e50976036fd55c7010
treecf936a6cbc80801fbea2c9d923a190ded3aa2419
parentf00383bc3bfc190ed690b0f564a9465d8a1947ea
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