Set filesystem characteristics.
[reactos.git] / reactos / drivers / filesystems / cdfs / fsctl.c
index c7c6ac0..897c081 100644 (file)
@@ -12,9 +12,9 @@
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
-*  You should have received a copy of the GNU General Public License
-*  along with this program; if not, write to the Free Software
-*  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*  You should have received a copy of the GNU General Public License along
+*  with this program; if not, write to the Free Software Foundation, Inc.,
+*  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 /*
 * COPYRIGHT:        See COPYING in the top level directory
@@ -332,7 +332,7 @@ CdfsMountVolume(PDEVICE_OBJECT DeviceObject,
         sizeof(DEVICE_EXTENSION),
         NULL,
         FILE_DEVICE_CD_ROM_FILE_SYSTEM,
-        0,
+        DeviceToMount->Characteristics,
         FALSE,
         &NewDeviceObject);
     if (!NT_SUCCESS(Status))
@@ -466,6 +466,7 @@ CdfsVerifyVolume(PDEVICE_OBJECT DeviceObject,
     Stack = IoGetCurrentIrpStackLocation (Irp);
     DeviceToVerify = Stack->Parameters.VerifyVolume.DeviceObject;
 
+    FsRtlEnterFileSystem();
     ExAcquireResourceExclusiveLite (&DeviceExt->VcbResource,
         TRUE);
 
@@ -473,6 +474,7 @@ CdfsVerifyVolume(PDEVICE_OBJECT DeviceObject,
     {
         DPRINT1 ("Volume has been verified!\n");
         ExReleaseResourceLite (&DeviceExt->VcbResource);
+        FsRtlExitFileSystem();
         return STATUS_SUCCESS;
     }
 
@@ -511,6 +513,7 @@ CdfsVerifyVolume(PDEVICE_OBJECT DeviceObject,
     DeviceToVerify->Flags &= ~DO_VERIFY_VOLUME;
 
     ExReleaseResourceLite (&DeviceExt->VcbResource);
+    FsRtlExitFileSystem();
 
     return Status;
 }