summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-02-27 11:50:30 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-02-28 09:50:58 +0100
commit17f81ee3cb41764d34c2f09a2b92c40a41f78841 (patch)
tree3b8f9f44018e91cc31da2dcb50dd70ef3a30c22b /cpukit
parent6ec60de37d899646552f988d974017d5f54c4e3c (diff)
downloadrtems-17f81ee3cb41764d34c2f09a2b92c40a41f78841.tar.bz2
dosfs: Fix FAT32 formatter
The second FAT entry contains a bit to indicate if the FAT32 filesystem is not dirty and a bit to indicate if there was no IO error. Set both bits for a fresh filesystem. This prevents a warning if mounted on Windows. Update #2913.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libfs/src/dosfs/msdos_format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_format.c b/cpukit/libfs/src/dosfs/msdos_format.c
index a7d72c3390..17e435d65a 100644
--- a/cpukit/libfs/src/dosfs/msdos_format.c
+++ b/cpukit/libfs/src/dosfs/msdos_format.c
@@ -1204,8 +1204,8 @@ int msdos_format
case FAT_FAT32:
/* FAT entry 0: 0xffffff00|media_type */
FAT_SET_VAL32(tmp_sec,0,0xffffff00|fmt_params.media_code);
- /* FAT entry 1: EOC */
- FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
+ /* FAT entry 1: Not dirty, no IO error, EOC */
+ FAT_SET_VAL32(tmp_sec,4,0xc0000000|FAT_FAT32_EOC);
break;
default: