update for HEAD-2003021201
[reactos.git] / drivers / fs / fs_rec / fs_rec.c
index 89943d1..8342d34 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  ReactOS kernel
- *  Copyright (C) 2002 ReactOS Team
+ *  Copyright (C) 2002,2003 ReactOS Team
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
- * FILE:             services/fs/fs_rec/fs_rec.c
+ * FILE:             drivers/fs/fs_rec/fs_rec.c
  * PURPOSE:          Filesystem recognizer driver
  * PROGRAMMER:       Eric Kohl
  */
@@ -81,12 +81,16 @@ FsRecFsControl(IN PDEVICE_OBJECT DeviceObject,
        Status = FsRecVfatFsControl(DeviceObject, Irp);
        break;
 
+      case FS_TYPE_NTFS:
+       Status = FsRecNtfsFsControl(DeviceObject, Irp);
+       break;
+
       case FS_TYPE_CDFS:
        Status = FsRecCdfsFsControl(DeviceObject, Irp);
        break;
 
-      case FS_TYPE_NTFS:
-       Status = FsRecNtfsFsControl(DeviceObject, Irp);
+      case FS_TYPE_UDFS:
+       Status = FsRecUdfsFsControl(DeviceObject, Irp);
        break;
 
       default:
@@ -192,7 +196,7 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
   ULONG DeviceCount;
   NTSTATUS Status;
 
-  DPRINT("FileSystem recognizer 0.0.1\n");
+  DPRINT("FileSystem recognizer 0.0.2\n");
 
   DeviceCount = 0;
 
@@ -215,6 +219,16 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
        {
          DeviceCount++;
        }
+
+      Status = FsRecRegisterFs(DriverObject,
+                              L"\\Udfs",
+                              L"\\FileSystem\\UdfsRecognizer",
+                              FILE_DEVICE_CD_ROM_FILE_SYSTEM,
+                              FS_TYPE_UDFS);
+      if (NT_SUCCESS(Status))
+       {
+         DeviceCount++;
+       }
     }
 
   Status = FsRecRegisterFs(DriverObject,