mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[FASTFAT]
Optimize the FAT mount process: there is no need to recognize the FS twice on mounting. svn path=/trunk/; revision=73727
This commit is contained in:
parent
826536350c
commit
9869fa33f8
1 changed files with 1 additions and 29 deletions
|
@ -332,30 +332,6 @@ VfatHasFileSystem(
|
|||
return Status;
|
||||
}
|
||||
|
||||
/*
|
||||
* FUNCTION: Mounts the device
|
||||
*/
|
||||
static
|
||||
NTSTATUS
|
||||
VfatMountDevice(
|
||||
PDEVICE_EXTENSION DeviceExt,
|
||||
PDEVICE_OBJECT DeviceToMount)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
BOOLEAN RecognizedFS;
|
||||
|
||||
DPRINT("Mounting VFAT device...\n");
|
||||
|
||||
Status = VfatHasFileSystem(DeviceToMount, &RecognizedFS, &DeviceExt->FatInfo, FALSE);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
return Status;
|
||||
}
|
||||
DPRINT("MountVfatdev %u, PAGE_SIZE = %d\n", DeviceExt->FatInfo.BytesPerCluster, PAGE_SIZE);
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* FUNCTION: Mount the filesystem
|
||||
|
@ -443,11 +419,7 @@ VfatMount(
|
|||
DeviceObject->Vpb = Vpb;
|
||||
DeviceToMount->Vpb = Vpb;
|
||||
|
||||
Status = VfatMountDevice(DeviceExt, DeviceToMount);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
goto ByeBye;
|
||||
}
|
||||
RtlCopyMemory(&DeviceExt->FatInfo, &FatInfo, sizeof(FATINFO));
|
||||
|
||||
DPRINT("BytesPerSector: %u\n", DeviceExt->FatInfo.BytesPerSector);
|
||||
DPRINT("SectorsPerCluster: %u\n", DeviceExt->FatInfo.SectorsPerCluster);
|
||||
|
|
Loading…
Reference in a new issue