[Samba] (DeviceIoControl, FSCTL_SET_SPARSE)

David Disseldorp ddiss at samba.org
Wed Feb 15 13:23:09 UTC 2017


On Tue, 14 Feb 2017 23:16:22 -0800, brian lamb via samba wrote:

> Thanks for your response. 
> 
> The Error message is for e.g.:
> 
> Cannot write file attributes of "\\MYHOST\backup\sparse\My Family Tree 6.0.zip.ffs_tmp".
> Error Code 1: Incorrect function. (DeviceIoControl, FSCTL_SET_SPARSE)

Hmm, that seems to indicate that the initial fsctl request is failing.
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



More information about the samba mailing list