mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:45:50 +00:00
[NTFS] - Fix some formatting / style issues, per CR-123.
svn path=/branches/GSoC_2016/NTFS/; revision=75290
This commit is contained in:
parent
5ab24a5aae
commit
430ce0a9e3
5 changed files with 11 additions and 8 deletions
|
@ -316,7 +316,8 @@ AddRun(PNTFS_VCB Vcb,
|
||||||
NextVBN = AttrContext->Record.NonResident.HighestVCN + 1;
|
NextVBN = AttrContext->Record.NonResident.HighestVCN + 1;
|
||||||
|
|
||||||
// Add newly-assigned clusters to mcb
|
// Add newly-assigned clusters to mcb
|
||||||
_SEH2_TRY{
|
_SEH2_TRY
|
||||||
|
{
|
||||||
if (!FsRtlAddLargeMcbEntry(&AttrContext->DataRunsMCB,
|
if (!FsRtlAddLargeMcbEntry(&AttrContext->DataRunsMCB,
|
||||||
NextVBN,
|
NextVBN,
|
||||||
NextAssignedCluster,
|
NextAssignedCluster,
|
||||||
|
@ -796,7 +797,7 @@ FreeClusters(PNTFS_VCB Vcb,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( LargeLbn != -1)
|
if (LargeLbn != -1)
|
||||||
{
|
{
|
||||||
// deallocate this cluster
|
// deallocate this cluster
|
||||||
RtlClearBits(&Bitmap, LargeLbn, 1);
|
RtlClearBits(&Bitmap, LargeLbn, 1);
|
||||||
|
|
|
@ -77,7 +77,7 @@ CompareTreeKeys(PB_TREE_KEY Key1, PB_TREE_KEY Key2, BOOLEAN CaseSensitive)
|
||||||
= Key2->IndexEntry->FileName.NameLength * sizeof(WCHAR);
|
= Key2->IndexEntry->FileName.NameLength * sizeof(WCHAR);
|
||||||
|
|
||||||
// Are the two keys the same length?
|
// Are the two keys the same length?
|
||||||
if(Key1Name.Length == Key2Name.Length)
|
if (Key1Name.Length == Key2Name.Length)
|
||||||
return RtlCompareUnicodeString(&Key1Name, &Key2Name, !CaseSensitive);
|
return RtlCompareUnicodeString(&Key1Name, &Key2Name, !CaseSensitive);
|
||||||
|
|
||||||
// Is Key1 shorter?
|
// Is Key1 shorter?
|
||||||
|
@ -416,7 +416,9 @@ DumpBTreeKey(PB_TREE_KEY Key, ULONG Number, ULONG Depth)
|
||||||
DbgPrint(" '%wZ'\n", &FileName);
|
DbgPrint(" '%wZ'\n", &FileName);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
DbgPrint(" (Dummy Key)\n");
|
DbgPrint(" (Dummy Key)\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
|
@ -299,7 +299,7 @@ NtfsOpenFile(PDEVICE_EXTENSION DeviceExt,
|
||||||
ParentFcb);
|
ParentFcb);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!NT_SUCCESS (Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT("Could not make a new FCB, status: %x\n", Status);
|
DPRINT("Could not make a new FCB, status: %x\n", Status);
|
||||||
|
|
||||||
|
@ -347,7 +347,7 @@ NtfsCreateFile(PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
||||||
DeviceExt = DeviceObject->DeviceExtension;
|
DeviceExt = DeviceObject->DeviceExtension;
|
||||||
ASSERT(DeviceExt);
|
ASSERT(DeviceExt);
|
||||||
Stack = IoGetCurrentIrpStackLocation (Irp);
|
Stack = IoGetCurrentIrpStackLocation(Irp);
|
||||||
ASSERT(Stack);
|
ASSERT(Stack);
|
||||||
|
|
||||||
RequestedDisposition = ((Stack->Parameters.Create.Options >> 24) & 0xff);
|
RequestedDisposition = ((Stack->Parameters.Create.Options >> 24) & 0xff);
|
||||||
|
|
|
@ -617,7 +617,7 @@ NtfsGetFCBForFile(PNTFS_VCB Vcb,
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
/* Trivial case, open of the root directory on volume */
|
/* Trivial case, open of the root directory on volume */
|
||||||
if (pFileName [0] == L'\0' || wcscmp(pFileName, L"\\") == 0)
|
if (pFileName[0] == L'\0' || wcscmp(pFileName, L"\\") == 0)
|
||||||
{
|
{
|
||||||
DPRINT("returning root FCB\n");
|
DPRINT("returning root FCB\n");
|
||||||
|
|
||||||
|
|
|
@ -448,7 +448,7 @@ SetAttributeDataLength(PFILE_OBJECT FileObject,
|
||||||
|
|
||||||
if (NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
if(AttrContext->Record.IsNonResident)
|
if (AttrContext->Record.IsNonResident)
|
||||||
Fcb->RFCB.AllocationSize.QuadPart = AttrContext->Record.NonResident.AllocatedSize;
|
Fcb->RFCB.AllocationSize.QuadPart = AttrContext->Record.NonResident.AllocatedSize;
|
||||||
else
|
else
|
||||||
Fcb->RFCB.AllocationSize = *DataSize;
|
Fcb->RFCB.AllocationSize = *DataSize;
|
||||||
|
@ -1319,7 +1319,7 @@ WriteAttribute(PDEVICE_EXTENSION Vcb,
|
||||||
} // end while (Length > 0) [more data to write]
|
} // end while (Length > 0) [more data to write]
|
||||||
|
|
||||||
// TEMPTEMP
|
// TEMPTEMP
|
||||||
if(Context->Record.IsNonResident)
|
if (Context->Record.IsNonResident)
|
||||||
ExFreePoolWithTag(TempBuffer, TAG_NTFS);
|
ExFreePoolWithTag(TempBuffer, TAG_NTFS);
|
||||||
|
|
||||||
Context->CacheRun = DataRun;
|
Context->CacheRun = DataRun;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue