Changeset a60db69 in rtems


Ignore:
Timestamp:
Feb 27, 2017, 10:50:30 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
08d85992
Parents:
267de79a
git-author:
Sebastian Huber <sebastian.huber@…> (02/27/17 10:50:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/28/17 08:31:04)
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.

Close #2913.

File:
1 edited

Legend:

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

    r267de79a ra60db69  
    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.