smbd/ioctl: match WS2016 ReFS get compression behaviour
authorDavid Disseldorp <ddiss@samba.org>
Mon, 3 Oct 2016 23:09:37 +0000 (01:09 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 20 Oct 2016 08:45:26 +0000 (10:45 +0200)
commit100e7809d4962661f0d360ebc5639b9029bc86ef
tree25ed3a9dc355a8b19d18da412656942809b1deab
parent8c9ac5b3d94b3f71c0073573b2e4f9c378c18b44
smbd/ioctl: match WS2016 ReFS get compression behaviour

ReFS doesn't support compression, but responds to get-compression FSCTLs
with a successful COMPRESSION_FORMAT_NONE response. set-compression
results in NT_STATUS_NOT_SUPPORTED.

This commit modifies Samba to match the ReFS behaviour, when run atop
a VFS that doesn't expose compression support.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12144

Reported-by: Nick Barrett
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 7a1000222877cdbc8967122b9de29021a42f4c8a)
source3/smbd/smb2_ioctl_filesys.c