Changeset 8863338 in rtems


Ignore:
Timestamp:
Nov 8, 2012, 1:45:27 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
0f0db894
Parents:
84ff9a47
git-author:
Sebastian Huber <sebastian.huber@…> (11/08/12 13:45:27)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/13/12 08:38:03)
Message:

dosfs: Use FAT_UNDEFINED_VALUE

Location:
cpukit/libfs/src/dosfs
Files:
2 edited

Legend:

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

    r84ff9a47 r8863338  
    577577                vol->free_cls = FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);
    578578                vol->next_cl = FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);
    579                 rc = fat_fat32_update_fsinfo_sector(fs_info, 0xFFFFFFFF,
    580                                                     0xFFFFFFFF);
     579                rc = fat_fat32_update_fsinfo_sector(fs_info, FAT_UNDEFINED_VALUE,
     580                                                    FAT_UNDEFINED_VALUE);
    581581                if ( rc != RC_OK )
    582582                {
     
    593593        vol->mirror = 0;
    594594        vol->afat = 0;
    595         vol->free_cls = 0xFFFFFFFF;
    596         vol->next_cl = 0xFFFFFFFF;
     595        vol->free_cls = FAT_UNDEFINED_VALUE;
     596        vol->next_cl = FAT_UNDEFINED_VALUE;
    597597    }
    598598
  • cpukit/libfs/src/dosfs/fat_fat_operations.c

    r84ff9a47 r8863338  
    131131            {
    132132                    fs_info->vol.next_cl = save_cln;
    133                     if (fs_info->vol.free_cls != 0xFFFFFFFF)
     133                    if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
    134134                        fs_info->vol.free_cls -= (*cls_added);
    135135                *last_cl = save_cln;
     
    145145
    146146        fs_info->vol.next_cl = save_cln;
    147         if (fs_info->vol.free_cls != 0xFFFFFFFF)
     147        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
    148148            fs_info->vol.free_cls -= (*cls_added);
    149149
Note: See TracChangeset for help on using the changeset viewer.