summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-12-10 08:48:19 -0700
committerVolker Lendecke <vlendec@samba.org>2010-12-19 23:25:06 +0100
commitd082701ea5131b02a49321ef29d1aa58a80ee92a (patch)
treefb2cd69cc60daacb16b983c7930b7e43835ee723
parent356add8a638b737cf72181beaa13342ab920ace8 (diff)
downloadsamba-d082701ea5131b02a49321ef29d1aa58a80ee92a.tar.gz
samba-d082701ea5131b02a49321ef29d1aa58a80ee92a.tar.bz2
samba-d082701ea5131b02a49321ef29d1aa58a80ee92a.zip
s3: Reply correctly to FSCTL_IS_VOLUME_DIRTY
-rw-r--r--source3/include/ntioctl.h1
-rw-r--r--source3/smbd/nttrans.c9
2 files changed, 10 insertions, 0 deletions
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) {