Changeset 521550d in mainline for uspace/srv/fs/fat/fat_directory.c


Ignore:
Timestamp:
2011-08-15T18:09:32Z (13 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b289005
Parents:
e8976b59
Message:

FAT: fix block count bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_directory.c

    re8976b59 r521550d  
    4343#include <mem.h>
    4444#include <str.h>
     45#include <align.h>
    4546
    4647int fat_directory_block_load(fat_directory_t *);
     
    5556
    5657        di->bs = block_bb_get(di->nodep->idx->devmap_handle);
    57         di->blocks = di->nodep->size / BPS(di->bs);
     58        di->blocks = ROUND_UP(nodep->size, BPS(di->bs))/BPS(di->bs);
    5859        di->pos = 0;
    5960        di->bnum = 0;
Note: See TracChangeset for help on using the changeset viewer.