* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: fsctl.c,v 1.2 2002/04/26 23:21:28 ekohl Exp $
+/* $Id: fsctl.c,v 1.3 2002/05/01 13:15:42 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
#include <ddk/ntddk.h>
-//#define NDEBUG
+#define NDEBUG
#include <debug.h>
#include "cdfs.h"
Vcb->CdInfo.RootStart = Pvd->RootDirRecord.ExtentLocationL;
Vcb->CdInfo.RootSize = Pvd->RootDirRecord.DataLengthL;
- DPRINT1("VolumeSerial: %08lx\n", Vpb->SerialNumber);
- DPRINT1("VolumeLabel: '%S'\n", Vpb->VolumeLabel);
- DPRINT1("VolumeLabelLength: %lu\n", Vpb->VolumeLabelLength);
- DPRINT1("VolumeSize: %lu\n", Pvd->VolumeSpaceSizeL);
- DPRINT1("RootStart: %lu\n", Pvd->RootDirRecord.ExtentLocationL);
- DPRINT1("RootSize: %lu\n", Pvd->RootDirRecord.DataLengthL);
+ DPRINT("VolumeSerial: %08lx\n", Vpb->SerialNumber);
+ DPRINT("VolumeLabel: '%S'\n", Vpb->VolumeLabel);
+ DPRINT("VolumeLabelLength: %lu\n", Vpb->VolumeLabelLength);
+ DPRINT("VolumeSize: %lu\n", Pvd->VolumeSpaceSizeL);
+ DPRINT("RootStart: %lu\n", Pvd->RootDirRecord.ExtentLocationL);
+ DPRINT("RootSize: %lu\n", Pvd->RootDirRecord.DataLengthL);
}
if (strncmp(Svd->EscapeSequences, "%/@", 3) == 0)
{
- DPRINT1("Joliet extension found (UCS-2 Level 1)\n");
+ DPRINT("Joliet extension found (UCS-2 Level 1)\n");
JolietLevel = 1;
}
else if (strncmp(Svd->EscapeSequences, "%/C", 3) == 0)
{
- DPRINT1("Joliet extension found (UCS-2 Level 2)\n");
+ DPRINT("Joliet extension found (UCS-2 Level 2)\n");
JolietLevel = 2;
}
else if (strncmp(Svd->EscapeSequences, "%/E", 3) == 0)
{
- DPRINT1("Joliet extension found (UCS-2 Level 3)\n");
+ DPRINT("Joliet extension found (UCS-2 Level 3)\n");
JolietLevel = 3;
}
Vcb->CdInfo.RootStart = Svd->RootDirRecord.ExtentLocationL;
Vcb->CdInfo.RootSize = Svd->RootDirRecord.DataLengthL;
- DPRINT1("RootStart: %lu\n", Svd->RootDirRecord.ExtentLocationL);
- DPRINT1("RootSize: %lu\n", Svd->RootDirRecord.DataLengthL);
+ DPRINT("RootStart: %lu\n", Svd->RootDirRecord.ExtentLocationL);
+ DPRINT("RootSize: %lu\n", Svd->RootDirRecord.DataLengthL);
}
//#endif
}
ULONG Sector;
PVD_HEADER VdHeader;
-
Sector = CDFS_PRIMARY_DESCRIPTOR_LOCATION;
Buffer = ExAllocatePool(NonPagedPool,
switch (VdHeader->VdType)
{
case 0:
- DPRINT1("BootVolumeDescriptor found!\n");
+ DPRINT("BootVolumeDescriptor found!\n");
break;
case 1:
- DPRINT1("PrimaryVolumeDescriptor found!\n");
+ DPRINT("PrimaryVolumeDescriptor found!\n");
CdfsGetPVDData(Buffer, Vcb, DeviceObject->Vpb);
break;
case 2:
- DPRINT1("SupplementaryVolumeDescriptor found!\n");
+ DPRINT("SupplementaryVolumeDescriptor found!\n");
CdfsGetSVDData(Buffer, Vcb);
break;
case 3:
- DPRINT1("VolumePartitionDescriptor found!\n");
+ DPRINT("VolumePartitionDescriptor found!\n");
break;
case 255:
- DPRINT1("VolumeDescriptorSetTerminator found!\n");
+ DPRINT("VolumeDescriptorSetTerminator found!\n");
break;
default:
- DPRINT1("VolumeDescriptor type %u found!\n", VdHeader->VdType);
+ DPRINT1("Unknown volume descriptor type %u found!\n", VdHeader->VdType);
break;
}
return(STATUS_INSUFFICIENT_RESOURCES);
}
- DPRINT1("CDFS: Checking on mount of device %08x\n", DeviceToMount);
+ DPRINT("CDFS: Checking on mount of device %08x\n", DeviceToMount);
Status = CdfsReadSectors(DeviceToMount,
CDFS_PRIMARY_DESCRIPTOR_LOCATION,
}
Buffer[6] = 0;
- DPRINT1("CD-identifier: [%.5s]\n", Buffer + 1);
+ DPRINT("CD-identifier: [%.5s]\n", Buffer + 1);
Status = (Buffer[0] == 1 &&
Buffer[1] == 'C' &&
PCCB Ccb = NULL;
NTSTATUS Status;
- DPRINT1("CdfsMountVolume() called\n");
+ DPRINT("CdfsMountVolume() called\n");
if (DeviceObject != CdfsGlobalData->DeviceObject)
{
IoDeleteDevice(NewDeviceObject);
}
- DPRINT1("CdfsMountVolume() done (Status: %lx)\n", Status);
+ DPRINT("CdfsMountVolume() done (Status: %lx)\n", Status);
return(Status);
}
UCHAR Part[4];
} Serial;
- DPRINT1("CdfsVerifyVolume() called\n");
+ DPRINT("CdfsVerifyVolume() called\n");
if (DeviceObject != CdfsGlobalData->DeviceObject)
{
Serial.Part[3] += Buffer[i+0];
}
- DPRINT1("Current serial number %08lx Vpb serial number %08lx\n",
+ DPRINT("Current serial number %08lx Vpb serial number %08lx\n",
Serial.Value, DeviceToVerify->Vpb->SerialNumber);
if (Serial.Value == DeviceToVerify->Vpb->SerialNumber)
// Status = STATUS_INVALID_DEVICE_REQUEST;
- DPRINT1("CdfsVerifyVolume() done (Status: %lx)\n", Status);
+ DPRINT("CdfsVerifyVolume() done (Status: %lx)\n", Status);
return(Status);
}