mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 00:16:40 +00:00
[CDFS]
Fix indentation and coding style. No code changes! svn path=/trunk/; revision=67990
This commit is contained in:
parent
d284e715f4
commit
ef692c9c85
2 changed files with 173 additions and 154 deletions
|
@ -19,7 +19,7 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: drivers/fs/cdfs/fsctl.c
|
||||
* FILE: drivers/filesystems/cdfs/fsctl.c
|
||||
* PURPOSE: CDROM (ISO 9660) filesystem driver
|
||||
* PROGRAMMER: Art Yerkes
|
||||
* Eric Kohl
|
||||
|
@ -41,8 +41,10 @@ int msf_to_lba (UCHAR m, UCHAR s, UCHAR f)
|
|||
}
|
||||
|
||||
|
||||
static VOID
|
||||
CdfsGetPVDData(PUCHAR Buffer,
|
||||
static
|
||||
VOID
|
||||
CdfsGetPVDData(
|
||||
PUCHAR Buffer,
|
||||
PCDINFO CdInfo)
|
||||
{
|
||||
PPVD Pvd;
|
||||
|
@ -150,8 +152,10 @@ CdfsGetPVDData(PUCHAR Buffer,
|
|||
}
|
||||
|
||||
|
||||
static VOID
|
||||
CdfsGetSVDData(PUCHAR Buffer,
|
||||
static
|
||||
VOID
|
||||
CdfsGetSVDData(
|
||||
PUCHAR Buffer,
|
||||
PCDINFO CdInfo)
|
||||
{
|
||||
PSVD Svd;
|
||||
|
@ -190,8 +194,10 @@ CdfsGetSVDData(PUCHAR Buffer,
|
|||
}
|
||||
|
||||
|
||||
static NTSTATUS
|
||||
CdfsGetVolumeData(PDEVICE_OBJECT DeviceObject,
|
||||
static
|
||||
NTSTATUS
|
||||
CdfsGetVolumeData(
|
||||
PDEVICE_OBJECT DeviceObject,
|
||||
PCDINFO CdInfo)
|
||||
{
|
||||
PUCHAR Buffer;
|
||||
|
@ -300,12 +306,14 @@ CdfsGetVolumeData(PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
ExFreePoolWithTag(Buffer, CDFS_TAG);
|
||||
|
||||
return(STATUS_SUCCESS);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
static NTSTATUS
|
||||
CdfsMountVolume(PDEVICE_OBJECT DeviceObject,
|
||||
static
|
||||
NTSTATUS
|
||||
CdfsMountVolume(
|
||||
PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp)
|
||||
{
|
||||
PDEVICE_EXTENSION DeviceExt = NULL;
|
||||
|
@ -388,6 +396,7 @@ CdfsMountVolume(PDEVICE_OBJECT DeviceObject,
|
|||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||
goto ByeBye;
|
||||
}
|
||||
|
||||
RtlZeroMemory(Ccb,
|
||||
sizeof(CCB));
|
||||
|
||||
|
@ -450,12 +459,14 @@ ByeBye:
|
|||
|
||||
DPRINT("CdfsMountVolume() done (Status: %lx)\n", Status);
|
||||
|
||||
return(Status);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
static NTSTATUS
|
||||
CdfsVerifyVolume(PDEVICE_OBJECT DeviceObject,
|
||||
static
|
||||
NTSTATUS
|
||||
CdfsVerifyVolume(
|
||||
PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp)
|
||||
{
|
||||
PDEVICE_EXTENSION DeviceExt;
|
||||
|
@ -466,7 +477,7 @@ CdfsVerifyVolume(PDEVICE_OBJECT DeviceObject,
|
|||
PFCB Fcb;
|
||||
PVPB VpbToVerify;
|
||||
|
||||
DPRINT1 ("CdfsVerifyVolume() called\n");
|
||||
DPRINT("CdfsVerifyVolume() called\n");
|
||||
|
||||
DeviceExt = DeviceObject->DeviceExtension;
|
||||
|
||||
|
@ -526,7 +537,8 @@ CdfsVerifyVolume(PDEVICE_OBJECT DeviceObject,
|
|||
}
|
||||
|
||||
|
||||
NTSTATUS NTAPI
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
CdfsSetCompression(
|
||||
IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PIRP Irp)
|
||||
|
@ -549,7 +561,8 @@ CdfsSetCompression(
|
|||
}
|
||||
|
||||
|
||||
NTSTATUS NTAPI
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
CdfsFileSystemControl(
|
||||
PCDFS_IRP_CONTEXT IrpContext)
|
||||
{
|
||||
|
@ -602,7 +615,7 @@ CdfsFileSystemControl(
|
|||
break;
|
||||
}
|
||||
|
||||
return(Status);
|
||||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: services/fs/vfat/volume.c
|
||||
* FILE: drivers/filesystems/cdfs/volume.c
|
||||
* PURPOSE: CDROM (ISO 9660) filesystem driver
|
||||
* PROGRAMMER: Art Yerkes
|
||||
* Eric Kohl
|
||||
|
@ -34,8 +34,10 @@
|
|||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
static NTSTATUS
|
||||
CdfsGetFsVolumeInformation(PDEVICE_OBJECT DeviceObject,
|
||||
static
|
||||
NTSTATUS
|
||||
CdfsGetFsVolumeInformation(
|
||||
PDEVICE_OBJECT DeviceObject,
|
||||
PFILE_FS_VOLUME_INFORMATION FsVolumeInfo,
|
||||
PULONG BufferLength)
|
||||
{
|
||||
|
@ -72,12 +74,14 @@ CdfsGetFsVolumeInformation(PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
DPRINT("BufferLength %lu\n", *BufferLength);
|
||||
|
||||
return(STATUS_SUCCESS);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
static NTSTATUS
|
||||
CdfsGetFsAttributeInformation(PDEVICE_EXTENSION DeviceExt,
|
||||
static
|
||||
NTSTATUS
|
||||
CdfsGetFsAttributeInformation(
|
||||
PDEVICE_EXTENSION DeviceExt,
|
||||
PFILE_FS_ATTRIBUTE_INFORMATION FsAttributeInfo,
|
||||
PULONG BufferLength)
|
||||
{
|
||||
|
@ -106,12 +110,13 @@ CdfsGetFsAttributeInformation(PDEVICE_EXTENSION DeviceExt,
|
|||
*BufferLength -= (sizeof(FILE_FS_ATTRIBUTE_INFORMATION) + 8);
|
||||
DPRINT("BufferLength %lu\n", *BufferLength);
|
||||
|
||||
return(STATUS_SUCCESS);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
static NTSTATUS
|
||||
CdfsGetFsSizeInformation(PDEVICE_OBJECT DeviceObject,
|
||||
CdfsGetFsSizeInformation(
|
||||
PDEVICE_OBJECT DeviceObject,
|
||||
PFILE_FS_SIZE_INFORMATION FsSizeInfo,
|
||||
PULONG BufferLength)
|
||||
{
|
||||
|
@ -122,7 +127,7 @@ CdfsGetFsSizeInformation(PDEVICE_OBJECT DeviceObject,
|
|||
DPRINT("FsSizeInfo = %p\n", FsSizeInfo);
|
||||
|
||||
if (*BufferLength < sizeof(FILE_FS_SIZE_INFORMATION))
|
||||
return(STATUS_BUFFER_OVERFLOW);
|
||||
return STATUS_BUFFER_OVERFLOW;
|
||||
|
||||
DeviceExt = DeviceObject->DeviceExtension;
|
||||
|
||||
|
@ -135,17 +140,16 @@ CdfsGetFsSizeInformation(PDEVICE_OBJECT DeviceObject,
|
|||
if (NT_SUCCESS(Status))
|
||||
*BufferLength -= sizeof(FILE_FS_SIZE_INFORMATION);
|
||||
|
||||
return(Status);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
static NTSTATUS
|
||||
CdfsGetFsDeviceInformation
|
||||
(
|
||||
static
|
||||
NTSTATUS
|
||||
CdfsGetFsDeviceInformation(
|
||||
PDEVICE_OBJECT DeviceObject,
|
||||
PFILE_FS_DEVICE_INFORMATION FsDeviceInfo,
|
||||
PULONG BufferLength
|
||||
)
|
||||
PULONG BufferLength)
|
||||
{
|
||||
DPRINT("CdfsGetFsDeviceInformation()\n");
|
||||
DPRINT("FsDeviceInfo = %p\n", FsDeviceInfo);
|
||||
|
@ -153,7 +157,7 @@ CdfsGetFsDeviceInformation
|
|||
DPRINT("Required length %lu\n", sizeof(FILE_FS_DEVICE_INFORMATION));
|
||||
|
||||
if (*BufferLength < sizeof(FILE_FS_DEVICE_INFORMATION))
|
||||
return(STATUS_BUFFER_OVERFLOW);
|
||||
return STATUS_BUFFER_OVERFLOW;
|
||||
|
||||
FsDeviceInfo->DeviceType = FILE_DEVICE_CD_ROM;
|
||||
FsDeviceInfo->Characteristics = DeviceObject->Characteristics;
|
||||
|
@ -163,11 +167,12 @@ CdfsGetFsDeviceInformation
|
|||
*BufferLength -= sizeof(FILE_FS_DEVICE_INFORMATION);
|
||||
DPRINT("BufferLength %lu\n", *BufferLength);
|
||||
|
||||
return(STATUS_SUCCESS);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
NTSTATUS NTAPI
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
CdfsQueryVolumeInformation(
|
||||
PCDFS_IRP_CONTEXT IrpContext)
|
||||
{
|
||||
|
@ -230,11 +235,12 @@ CdfsQueryVolumeInformation(
|
|||
else
|
||||
Irp->IoStatus.Information = 0;
|
||||
|
||||
return(Status);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
NTSTATUS NTAPI
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
CdfsSetVolumeInformation(
|
||||
PCDFS_IRP_CONTEXT IrpContext)
|
||||
{
|
||||
|
@ -248,7 +254,7 @@ CdfsSetVolumeInformation(
|
|||
Irp->IoStatus.Status = STATUS_NOT_SUPPORTED;
|
||||
Irp->IoStatus.Information = 0;
|
||||
|
||||
return(STATUS_NOT_SUPPORTED);
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue