IopMountFileSystem(): Cosmetic fix of debug message typo
[reactos.git] / ntoskrnl / io / fs.c
index fa340d8..e8da549 100644 (file)
@@ -199,7 +199,15 @@ IoShutdownRegisteredFileSystems(VOID)
      {
        current = CONTAINING_RECORD(current_entry,FILE_SYSTEM_OBJECT,Entry);
        if (current==current_last)
-           KeBugCheck(0);      /* filesystem forgot to call IoUnregisterFileSystem() */
+         {
+           /* At least ntfs.sys-NT5.1sp1 appears to not to unregister itself.
+            * It does not import symbol IoUnregisterFileSystem() at all!
+            * BTW also ext2fsd.sys<=v0.10A also forgets to call IoUnregisterFileSystem().
+            */
+           DPRINT("IoShutdownRegisteredFileSystems(): WARNING: filesystem forgot to call IoUnregisterFileSystem() !!!\n");
+           IoUnregisterFileSystem(current->DeviceObject);
+           continue;
+         }
        current_last=current;
 
        /* send IRP_MJ_SHUTDOWN */
@@ -235,7 +243,7 @@ IopMountFileSystem(PDEVICE_OBJECT DeviceObject,
   PIRP Irp;
   NTSTATUS Status;
 
-  DPRINT("IoAskFileSystemToMountDevice(DeviceObject %x, DeviceToMount %x)\n",
+  DPRINT("IopMountFileSystem(DeviceObject %x, DeviceToMount %x)\n",
         DeviceObject,DeviceToMount);
 
   assert_irql(PASSIVE_LEVEL);