[Samba] (DeviceIoControl, FSCTL_SET_SPARSE)

David Disseldorp
Wed, 15 Feb 2017 13:23:09 -0000

Could you please try manually setting a file on the Samba share as
sparse with "fsutil sparse setflag <file_on_samba_share>":
https://technet.microsoft.com/en-us/library/cc788025(v=ws.11).aspx

Does it succeed when Samba is configured as per below?

> Samba Version:
> Samba version 4.4.4
> PID     Username     Group        Machine
Protocol Version  Encryption           Signing
>
----------------------------------------------------------------------------------------------------------------------------------------
> 21582   backupadmin sys1       myhost (ipv4:192.168.1.99:55068)
SMB2_10           -                    -
>
> I just tried the option   " store dos attributes = no"
> Im getting the same error as above still unfortunately, but im doing some
more thorough testing on that.  WOud you happen to know if I want the other two
options set, and to what, at all? (> strict allocate & share:fake_fscaps
= 0)

Given that the application is complaining about FSCTL_SET_SPARSE
failure, I would guess that it requires sparse-file support. Please
set "store dos attributes = yes" and drop the fake_fscaps setting.

Cheers, David