[FORMATTING] Fix indentation

svn path=/trunk/; revision=32025
This commit is contained in:
Pierre Schweitzer 2008-01-27 13:16:52 +00:00
parent e44b25d2c4
commit 34482cc96a

View file

@ -39,9 +39,9 @@
static NTSTATUS static NTSTATUS
NtfsGetStandardInformation(PFCB Fcb, NtfsGetStandardInformation(PFCB Fcb,
PDEVICE_OBJECT DeviceObject, PDEVICE_OBJECT DeviceObject,
PFILE_STANDARD_INFORMATION StandardInfo, PFILE_STANDARD_INFORMATION StandardInfo,
PULONG BufferLength) PULONG BufferLength)
/* /*
* FUNCTION: Retrieve the standard file information * FUNCTION: Retrieve the standard file information
*/ */
@ -56,7 +56,7 @@ NtfsGetStandardInformation(PFCB Fcb,
ASSERT(Fcb != NULL); ASSERT(Fcb != NULL);
RtlZeroMemory(StandardInfo, RtlZeroMemory(StandardInfo,
sizeof(FILE_STANDARD_INFORMATION)); sizeof(FILE_STANDARD_INFORMATION));
StandardInfo->AllocationSize = Fcb->RFCB.AllocationSize; StandardInfo->AllocationSize = Fcb->RFCB.AllocationSize;
StandardInfo->EndOfFile = Fcb->RFCB.FileSize; StandardInfo->EndOfFile = Fcb->RFCB.FileSize;
@ -71,8 +71,8 @@ NtfsGetStandardInformation(PFCB Fcb,
static NTSTATUS static NTSTATUS
NtfsGetPositionInformation(PFILE_OBJECT FileObject, NtfsGetPositionInformation(PFILE_OBJECT FileObject,
PFILE_POSITION_INFORMATION PositionInfo, PFILE_POSITION_INFORMATION PositionInfo,
PULONG BufferLength) PULONG BufferLength)
{ {
DPRINT("NtfsGetPositionInformation() called\n"); DPRINT("NtfsGetPositionInformation() called\n");
@ -84,7 +84,7 @@ NtfsGetPositionInformation(PFILE_OBJECT FileObject,
// FileObject->CurrentByteOffset.QuadPart; // FileObject->CurrentByteOffset.QuadPart;
DPRINT("Getting position %I64x\n", DPRINT("Getting position %I64x\n",
PositionInfo->CurrentByteOffset.QuadPart); PositionInfo->CurrentByteOffset.QuadPart);
*BufferLength -= sizeof(FILE_POSITION_INFORMATION); *BufferLength -= sizeof(FILE_POSITION_INFORMATION);
return(STATUS_SUCCESS); return(STATUS_SUCCESS);
@ -93,10 +93,10 @@ NtfsGetPositionInformation(PFILE_OBJECT FileObject,
static NTSTATUS static NTSTATUS
NtfsGetBasicInformation(PFILE_OBJECT FileObject, NtfsGetBasicInformation(PFILE_OBJECT FileObject,
PFCB Fcb, PFCB Fcb,
PDEVICE_OBJECT DeviceObject, PDEVICE_OBJECT DeviceObject,
PFILE_BASIC_INFORMATION BasicInfo, PFILE_BASIC_INFORMATION BasicInfo,
PULONG BufferLength) PULONG BufferLength)
{ {
DPRINT("NtfsGetBasicInformation() called\n"); DPRINT("NtfsGetBasicInformation() called\n");
@ -125,10 +125,10 @@ NtfsGetBasicInformation(PFILE_OBJECT FileObject,
static NTSTATUS static NTSTATUS
NtfsGetNameInformation(PFILE_OBJECT FileObject, NtfsGetNameInformation(PFILE_OBJECT FileObject,
PFCB Fcb, PFCB Fcb,
PDEVICE_OBJECT DeviceObject, PDEVICE_OBJECT DeviceObject,
PFILE_NAME_INFORMATION NameInfo, PFILE_NAME_INFORMATION NameInfo,
PULONG BufferLength) PULONG BufferLength)
/* /*
* FUNCTION: Retrieve the file name information * FUNCTION: Retrieve the file name information
*/ */
@ -147,8 +147,8 @@ NtfsGetNameInformation(PFILE_OBJECT FileObject,
NameInfo->FileNameLength = NameLength; NameInfo->FileNameLength = NameLength;
memcpy(NameInfo->FileName, memcpy(NameInfo->FileName,
Fcb->PathName, Fcb->PathName,
NameLength + sizeof(WCHAR)); NameLength + sizeof(WCHAR));
// wcscpy(NameInfo->FileName, L"\\"); // wcscpy(NameInfo->FileName, L"\\");
*BufferLength -= *BufferLength -=
@ -160,8 +160,8 @@ NtfsGetNameInformation(PFILE_OBJECT FileObject,
static NTSTATUS static NTSTATUS
NtfsGetInternalInformation(PFCB Fcb, NtfsGetInternalInformation(PFCB Fcb,
PFILE_INTERNAL_INFORMATION InternalInfo, PFILE_INTERNAL_INFORMATION InternalInfo,
PULONG BufferLength) PULONG BufferLength)
{ {
DPRINT("NtfsGetInternalInformation() called\n"); DPRINT("NtfsGetInternalInformation() called\n");
@ -182,7 +182,7 @@ NtfsGetInternalInformation(PFCB Fcb,
NTSTATUS STDCALL NTSTATUS STDCALL
NtfsQueryInformation(PDEVICE_OBJECT DeviceObject, NtfsQueryInformation(PDEVICE_OBJECT DeviceObject,
PIRP Irp) PIRP Irp)
/* /*
* FUNCTION: Retrieve the specified file information * FUNCTION: Retrieve the specified file information
*/ */
@ -207,51 +207,51 @@ NtfsQueryInformation(PDEVICE_OBJECT DeviceObject,
BufferLength = Stack->Parameters.QueryFile.Length; BufferLength = Stack->Parameters.QueryFile.Length;
switch (FileInformationClass) switch (FileInformationClass)
{ {
case FileStandardInformation: case FileStandardInformation:
Status = NtfsGetStandardInformation(Fcb, Status = NtfsGetStandardInformation(Fcb,
DeviceObject, DeviceObject,
SystemBuffer, SystemBuffer,
&BufferLength); &BufferLength);
break; break;
case FilePositionInformation: case FilePositionInformation:
Status = NtfsGetPositionInformation(FileObject, Status = NtfsGetPositionInformation(FileObject,
SystemBuffer, SystemBuffer,
&BufferLength); &BufferLength);
break; break;
case FileBasicInformation: case FileBasicInformation:
Status = NtfsGetBasicInformation(FileObject, Status = NtfsGetBasicInformation(FileObject,
Fcb, Fcb,
DeviceObject, DeviceObject,
SystemBuffer, SystemBuffer,
&BufferLength); &BufferLength);
break; break;
case FileNameInformation: case FileNameInformation:
Status = NtfsGetNameInformation(FileObject, Status = NtfsGetNameInformation(FileObject,
Fcb, Fcb,
DeviceObject, DeviceObject,
SystemBuffer, SystemBuffer,
&BufferLength); &BufferLength);
break; break;
case FileInternalInformation: case FileInternalInformation:
Status = NtfsGetInternalInformation(Fcb, Status = NtfsGetInternalInformation(Fcb,
SystemBuffer, SystemBuffer,
&BufferLength); &BufferLength);
break; break;
case FileAlternateNameInformation: case FileAlternateNameInformation:
case FileAllInformation: case FileAllInformation:
Status = STATUS_NOT_IMPLEMENTED; Status = STATUS_NOT_IMPLEMENTED;
break; break;
default: default:
DPRINT("Unimplemented information class %u\n", FileInformationClass); DPRINT("Unimplemented information class %u\n", FileInformationClass);
Status = STATUS_NOT_SUPPORTED; Status = STATUS_NOT_SUPPORTED;
} }
Irp->IoStatus.Status = Status; Irp->IoStatus.Status = Status;
if (NT_SUCCESS(Status)) if (NT_SUCCESS(Status))