Changeset 17f81ee in rtems


Ignore:
Timestamp:
02/27/17 10:50:30 (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11
Children:
35a3d815
Parents:
6ec60de3
git-author:
Sebastian Huber <sebastian.huber@…> (02/27/17 10:50:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/28/17 08:50:58)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/dosfs/msdos_format.c

    r6ec60de3 r17f81ee  
    12051205      /* FAT entry 0: 0xffffff00|media_type */
    12061206      FAT_SET_VAL32(tmp_sec,0,0xffffff00|fmt_params.media_code);
    1207       /* FAT entry 1: EOC */
    1208       FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
     1207      /* FAT entry 1: Not dirty, no IO error, EOC */
     1208      FAT_SET_VAL32(tmp_sec,4,0xc0000000|FAT_FAT32_EOC);
    12091209      break;
    12101210
Note: See TracChangeset for help on using the changeset viewer.