Changeset 5446bee0 in mainline
- Timestamp:
 - 2008-04-09T00:58:38Z (18 years ago)
 - Branches:
 - lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
 - Children:
 - 3d99f68
 - Parents:
 - 79dbc3e
 - File:
 - 
      
- 1 edited
 
- 
          
  uspace/srv/fs/fat/fat_ops.c (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
uspace/srv/fs/fat/fat_ops.c
r79dbc3e r5446bee0 114 114 char name[FAT_NAME_LEN + 1 + FAT_EXT_LEN + 1]; 115 115 unsigned i, j; 116 unsigned bps; /* bytes per sector */ 116 117 unsigned dps; /* dentries per sector */ 117 118 unsigned blocks; … … 119 120 block_t *bb; 120 121 block_t *b; 121 fat_bs_t *bs;122 122 123 123 bb = block_get(parentp->dev_handle, BS_BLOCK); 124 124 if (!bb) 125 125 return NULL; 126 bs = (fat_bs_t *)bb->data; 127 dps = bs->bps / sizeof(fat_dentry_t); 128 blocks = parentp->size / bs->bps + (parentp->size % bs->bps != 0); 126 bps = uint16_t_le2host(((fat_bs_t *)bb->data)->bps); 129 127 block_put(bb); 128 dps = bps / sizeof(fat_dentry_t); 129 blocks = parentp->size / bps + (parentp->size % bps != 0); 130 130 for (i = 0; i < blocks; i++) { 131 131 unsigned dentries;  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  