Author: pschweitzer
Date: Sat Nov 1 21:09:10 2014
New Revision: 65174
URL:
http://svn.reactos.org/svn/reactos?rev=65174&view=rev
Log:
[EXT2LIB]
Whatever happened during format, always unmount the volume.
This allows switching FS in usetup after formating an ext2 volume.
As a record, before (read, with the IopParseDevice) hack, this wasn't possible and if
formating with ext2 was possible, kernel would have written with either RawFS or FastFAT
driver. Which is not exactly what we want ;-).
But no joy guys... The Ext2Fsd needs to work in ReactOS first before we can effectively
install ReactOS on ext2 volumes.
In any case, that's a clear step forward :-)
Modified:
trunk/reactos/lib/fslib/ext2lib/Mke2fs.c
Modified: trunk/reactos/lib/fslib/ext2lib/Mke2fs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/ext2lib/Mke2fs.c…
==============================================================================
--- trunk/reactos/lib/fslib/ext2lib/Mke2fs.c [iso-8859-1] (original)
+++ trunk/reactos/lib/fslib/ext2lib/Mke2fs.c [iso-8859-1] Sat Nov 1 21:09:10 2014
@@ -987,16 +987,10 @@
ext2_free_block_bitmap(&FileSys);
ext2_free_inode_bitmap(&FileSys);
- if (!bRet)
+ if(bLocked)
{
Ext2DisMountVolume(&FileSys);
- }
- else
- {
- if(bLocked)
- {
- Ext2UnLockVolume(&FileSys);
- }
+ Ext2UnLockVolume(&FileSys);
}
Ext2CloseDevice(&FileSys);