vfs: propagate snapshot enumeration errors
commitca3998d0436747f637b04eb32eb6c17fce3e2159
authorDavid Disseldorp <ddiss@samba.org>
Thu, 27 Feb 2014 18:46:14 +0000 (27 19:46 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 27 Feb 2014 21:42:50 +0000 (27 22:42 +0100)
tree1755d9cd6417c7007b08ab99d8bd770510ed008b
parentabf08ed544ce05ea5a6e6ea2e531b6a2d97e15cc
vfs: propagate snapshot enumeration errors

The current FSCTL_GET_SHADOW_COPY_DATA/FSCTL_SRV_ENUMERATE_SNAPSHOTS
handler squashes all non-ENOSYS errors into an NT_STATUS_UNSUCCESSFUL
response.
This commit ensures that all errors are propagated up to the client, to
aid debugging.
The Windows Explorer "Previous Versions" dialogue doesn't appear to
distinguish between error codes. It displays "There are no previous
versions available".

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Feb 27 22:42:50 CET 2014 on sn-devel-104
source3/modules/vfs_default.c