mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:23:34 +00:00
[NTOS:IO] RAW-FS: Minor code formatting only.
This commit is contained in:
parent
f527e23aa7
commit
a5ead049d9
1 changed files with 8 additions and 8 deletions
|
@ -108,6 +108,7 @@ RawCheckForDismount(IN PVCB Vcb,
|
||||||
Vcb->LocalVpb = NULL;
|
Vcb->LocalVpb = NULL;
|
||||||
Vcb->Vpb->Flags |= VPB_PERSISTENT;
|
Vcb->Vpb->Flags |= VPB_PERSISTENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Don't do anything */
|
/* Don't do anything */
|
||||||
Delete = FALSE;
|
Delete = FALSE;
|
||||||
}
|
}
|
||||||
|
@ -124,10 +125,10 @@ RawCheckForDismount(IN PVCB Vcb,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Release lock and return status */
|
/* Release the VPB lock */
|
||||||
IoReleaseVpbSpinLock(OldIrql);
|
IoReleaseVpbSpinLock(OldIrql);
|
||||||
|
|
||||||
/* If we were to delete, delete volume */
|
/* If we were to delete, delete the volume */
|
||||||
if (Delete)
|
if (Delete)
|
||||||
{
|
{
|
||||||
PVPB DelVpb;
|
PVPB DelVpb;
|
||||||
|
@ -311,7 +312,7 @@ RawCreate(IN PVCB Vcb,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Increase the open count and set the VPB */
|
/* Increase the open count and set the VPB */
|
||||||
Vcb->OpenCount += 1;
|
Vcb->OpenCount++;
|
||||||
IoStackLocation->FileObject->Vpb = Vcb->Vpb;
|
IoStackLocation->FileObject->Vpb = Vcb->Vpb;
|
||||||
|
|
||||||
/* Set IRP status and disable intermediate buffering */
|
/* Set IRP status and disable intermediate buffering */
|
||||||
|
@ -330,7 +331,7 @@ RawCreate(IN PVCB Vcb,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if the request failed */
|
/* Check if the request failed */
|
||||||
if (!(NT_SUCCESS(Status)) && !(Vcb->OpenCount))
|
if (!NT_SUCCESS(Status) && !Vcb->OpenCount)
|
||||||
{
|
{
|
||||||
/* Check if we can dismount the device */
|
/* Check if we can dismount the device */
|
||||||
Deleted = RawCheckForDismount(Vcb, TRUE);
|
Deleted = RawCheckForDismount(Vcb, TRUE);
|
||||||
|
@ -464,11 +465,10 @@ RawMountVolume(IN PIO_STACK_LOCATION IoStackLocation)
|
||||||
|
|
||||||
/* Increment OpenCount by two to avoid dismount when RawClose() will be called on ObDereferenceObject() */
|
/* Increment OpenCount by two to avoid dismount when RawClose() will be called on ObDereferenceObject() */
|
||||||
Volume->Vcb.OpenCount += 2;
|
Volume->Vcb.OpenCount += 2;
|
||||||
/* Notify for sucessful mount */
|
/* Notify for successful mount */
|
||||||
FsRtlNotifyVolumeEvent(FileObject, FSRTL_VOLUME_MOUNT);
|
FsRtlNotifyVolumeEvent(FileObject, FSRTL_VOLUME_MOUNT);
|
||||||
/* Decrease refcount to 0 to make FileObject being released */
|
/* It's not opened anymore, decrease the reference count to 0 to make FileObject being released */
|
||||||
ObDereferenceObject(FileObject);
|
ObDereferenceObject(FileObject);
|
||||||
/* It's not open anymore, go back to 0 */
|
|
||||||
Volume->Vcb.OpenCount -= 2;
|
Volume->Vcb.OpenCount -= 2;
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue