Changeset 58fa3e6 in mainline


Ignore:
Timestamp:
2017-07-02T17:04:15Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2456fd0
Parents:
a927398
Message:

mkfat sets filesystem type field to invalid value for FAT12/16.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/mkfat/mkfat.c

    ra927398 r58fa3e6  
    500500
    501501                (void) fat_label_encode(&bs->label, bs_label);
    502                 memcpy(bs->type, "FAT   ", 8);
     502                if (cfg->fat_type == FAT12)
     503                        memcpy(bs->type, "FAT12   ", 8);
     504                else
     505                        memcpy(bs->type, "FAT16   ", 8);
    503506        }
    504507}
Note: See TracChangeset for help on using the changeset viewer.