smbd/ioctl: match WS2016 ReFS get compression behaviour
authorDavid Disseldorp <ddiss@samba.org>
Mon, 3 Oct 2016 23:09:37 +0000 (01:09 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 6 Oct 2016 00:30:17 +0000 (02:30 +0200)
commit7a1000222877cdbc8967122b9de29021a42f4c8a
tree457838a317f149fd8fe94dd92c178a009f960d35
parentfb155a946d995de2c518d22bdb44f3d7f0b8dca3
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>
source3/smbd/smb2_ioctl_filesys.c