From d082701ea5131b02a49321ef29d1aa58a80ee92a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 10 Dec 2010 08:48:19 -0700 Subject: s3: Reply correctly to FSCTL_IS_VOLUME_DIRTY --- source3/include/ntioctl.h | 1 + source3/smbd/nttrans.c | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'source3') diff --git a/source3/include/ntioctl.h b/source3/include/ntioctl.h index c565b8f9a4..41b1dcefa2 100644 --- a/source3/include/ntioctl.h +++ b/source3/include/ntioctl.h @@ -38,6 +38,7 @@ #define FSCTL_UNLOCK_VOLUME 0x0009001C #define FSCTL_GET_COMPRESSION 0x0009003C #define FSCTL_SET_COMPRESSION 0x0009C040 +#define FSCTL_IS_VOLUME_DIRTY 0x00090078 #define FSCTL_REQUEST_FILTER_OPLOCK 0x0009008C #define FSCTL_FIND_FILES_BY_SID 0x0009008F #define FSCTL_FILESYS_GET_STATISTICS 0x00090090 diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index cccb47a97f..da1231c83b 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -2432,6 +2432,15 @@ static void call_nt_transact_ioctl(connection_struct *conn, } return; } + case FSCTL_IS_VOLUME_DIRTY: + DEBUG(10,("FSCTL_IS_VOLUME_DIRTY: called on FID[0x%04X] " + "(but not implemented)\n", (int)fidnum)); + /* + * http://msdn.microsoft.com/en-us/library/cc232128%28PROT.10%29.aspx + * says we have to respond with NT_STATUS_INVALID_PARAMETER + */ + reply_nterror(req, NT_STATUS_INVALID_PARAMETER); + return; default: /* Only print this once... */ if (!logged_ioctl_message) { -- cgit