Changeset 1e36e6a in mainline for uspace/lib/ext4/src/superblock.c
- Timestamp:
- 2018-12-13T08:37:56Z (6 years ago)
- Parents:
- ee23f85
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/src/superblock.c
ree23f85 r1e36e6a 1316 1316 uint64_t total_blocks = 1317 1317 ext4_superblock_get_blocks_count(sb); 1318 uint32_t first_block =1318 uint32_t first_block = 1319 1319 ext4_superblock_get_first_data_block(sb); 1320 1320 … … 1530 1530 fs_bsize = cfg->bsize; 1531 1531 switch (fs_bsize) { 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1532 case 1024: 1533 first_block = 1; 1534 fs_bsize_log = 0; 1535 blocks_group = 8192; 1536 break; 1537 case 2048: 1538 fs_bsize_log = 1; 1539 blocks_group = 8192 * 2; 1540 break; 1541 case 4096: 1542 fs_bsize_log = 2; 1543 blocks_group = 8192 * 4; 1544 break; 1545 default: 1546 return ENOTSUP; 1547 1547 } 1548 1548
Note:
See TracChangeset
for help on using the changeset viewer.