s3: Reply correctly to FSCTL_IS_VOLUME_DIRTY
[obnox/samba-ctdb.git] / source3 / smbd / nttrans.c
index fcb2f8d2bd57ce8e587b415803967ad15896cbad..29652354976cb6c24a34619a0962fa8068092304 100644 (file)
@@ -2115,6 +2115,15 @@ static void call_nt_transact_ioctl(connection_struct *conn,
                send_nt_replies(conn, req, NT_STATUS_OK, NULL, 0, NULL, 0);
                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:
                if (!logged_ioctl_message) {
                        logged_ioctl_message = true; /* Only print this once... */