dosfs: Fix msdos_format()

For FAT32 msdos_format() used to initialize first FAT entries to
non-zero values only if a volume label was given.  Absence of these
entries made mounting such a FAT32 volume fail.
This commit is contained in:
Ralf Kirchner
2012-10-31 11:08:09 +01:00
committed by Sebastian Huber
parent 2858aeb9b3
commit 9683b2721c

View File

@@ -1063,7 +1063,7 @@ int msdos_format
* write FAT entry 1 as EOC
* allocate directory in a FAT32 FS
*/
if ((ret_val == 0) && fmt_params.VolLabel_present){
if (ret_val == 0) {
/*
* empty sector: all clusters are free/do not link further on
*/