mirror of
https://github.com/reactos/reactos.git
synced 2025-05-17 16:27:00 +00:00
[VFATLIB]
When we're done with formatting, attempt to umount the volume, so that it can be remounted properly by FastFAT. svn path=/trunk/; revision=65130
This commit is contained in:
parent
ab38eafc21
commit
b3fd4ef2f0
1 changed files with 17 additions and 0 deletions
|
@ -251,6 +251,23 @@ VfatFormat(IN PUNICODE_STRING DriveRoot,
|
|||
Status = STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
/* Attempt to dismount formatted volume */
|
||||
LockStatus = NtFsControlFile(FileHandle,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&Iosb,
|
||||
FSCTL_DISMOUNT_VOLUME,
|
||||
NULL,
|
||||
0,
|
||||
NULL,
|
||||
0);
|
||||
if (!NT_SUCCESS(LockStatus))
|
||||
{
|
||||
DPRINT1("Failed to umount volume (Status: 0x%x)\n", LockStatus);
|
||||
}
|
||||
|
||||
|
||||
LockStatus = NtFsControlFile(FileHandle,
|
||||
NULL,
|
||||
NULL,
|
||||
|
|
Loading…
Reference in a new issue