diff options
author | Ralf Kirchner <ralf.kirchner@embedded-brains.de> | 2012-10-31 11:08:09 +0100 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2018-01-11 13:00:15 -0500 |
commit | 95f3656ae96a3446529d86b4fb53506f85db4bd9 (patch) | |
tree | 6249eaf3f9e18e7b7a932f3ac82defd8768e10b3 /cpukit/libfs/src/dosfs/msdos_format.c | |
parent | libnetworking: Disconnect after mbuf shortage (diff) | |
download | rtems-95f3656ae96a3446529d86b4fb53506f85db4bd9.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libfs/src/dosfs/msdos_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_format.c b/cpukit/libfs/src/dosfs/msdos_format.c index 890fdd2e9d..4e74662f87 100644 --- a/cpukit/libfs/src/dosfs/msdos_format.c +++ b/cpukit/libfs/src/dosfs/msdos_format.c @@ -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 */ |