Author: pschweitzer Date: Thu Oct 30 21:12:38 2014 New Revision: 65130
URL: http://svn.reactos.org/svn/reactos?rev=65130&view=rev Log: [VFATLIB] When we're done with formatting, attempt to umount the volume, so that it can be remounted properly by FastFAT.
Modified: trunk/reactos/lib/fslib/vfatlib/vfatlib.c
Modified: trunk/reactos/lib/fslib/vfatlib/vfatlib.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/vfatlib/vfatlib.c... ============================================================================== --- trunk/reactos/lib/fslib/vfatlib/vfatlib.c [iso-8859-1] (original) +++ trunk/reactos/lib/fslib/vfatlib/vfatlib.c [iso-8859-1] Thu Oct 30 21:12:38 2014 @@ -251,6 +251,23 @@ 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,