[ros-diffs] [cgutman] 37265: - Don't complete unimplemented IOCTL_DISK_FORMAT_TRACKS/IOCTL_DISK_FORMAT_TRACKS_EX with STATUS_SUCCESS - Floppy drivers don't need to support IOCTL_DISK_GET_PARTITION_INFO so complete the irp with STATUS_INVALID_DEVICE_REQUEST

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sun Nov 9 17:15:51 CET 2008


Author: cgutman
Date: Sun Nov  9 10:15:50 2008
New Revision: 37265

URL: http://svn.reactos.org/svn/reactos?rev=37265&view=rev
Log:
 - Don't complete unimplemented IOCTL_DISK_FORMAT_TRACKS/IOCTL_DISK_FORMAT_TRACKS_EX with STATUS_SUCCESS
 - Floppy drivers don't need to support IOCTL_DISK_GET_PARTITION_INFO so complete the irp with STATUS_INVALID_DEVICE_REQUEST

Modified:
    trunk/reactos/drivers/storage/floppy/ioctl.c

Modified: trunk/reactos/drivers/storage/floppy/ioctl.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/floppy/ioctl.c?rev=37265&r1=37264&r2=37265&view=diff
==============================================================================
--- trunk/reactos/drivers/storage/floppy/ioctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/floppy/ioctl.c [iso-8859-1] Sun Nov  9 10:15:50 2008
@@ -250,11 +250,13 @@
     case IOCTL_DISK_FORMAT_TRACKS:
     case IOCTL_DISK_FORMAT_TRACKS_EX:
       ERR_(FLOPPY, "Format called; not supported yet\n");
+      Irp->IoStatus.Status = STATUS_NOT_IMPLEMENTED;
+      Irp->IoStatus.Information = 0;
       break;
 
     case IOCTL_DISK_GET_PARTITION_INFO:
-      INFO_(FLOPPY, "IOCTL_DISK_GET_PARTITION_INFO Called; not supported\n");
-      Irp->IoStatus.Status = STATUS_NOT_SUPPORTED;
+      INFO_(FLOPPY, "IOCTL_DISK_GET_PARTITION_INFO Called; not supported by a floppy driver\n");
+      Irp->IoStatus.Status = STATUS_INVALID_DEVICE_REQUEST;
       Irp->IoStatus.Information = 0;
       break;
 



More information about the Ros-diffs mailing list