Changeset 6ea5e7a in mainline for uspace/lib/ext4/src/superblock.c
- Timestamp:
- 2018-12-13T13:32:42Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3c8b0a8
- Parents:
- e2f20b9e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/src/superblock.c
re2f20b9e r6ea5e7a 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 … … 1541 1541 fs_bsize = cfg->bsize; 1542 1542 switch (fs_bsize) { 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1543 case 1024: 1544 first_block = 1; 1545 fs_bsize_log = 0; 1546 blocks_group = 8192; 1547 break; 1548 case 2048: 1549 fs_bsize_log = 1; 1550 blocks_group = 8192 * 2; 1551 break; 1552 case 4096: 1553 fs_bsize_log = 2; 1554 blocks_group = 8192 * 4; 1555 break; 1556 default: 1557 return ENOTSUP; 1558 1558 } 1559 1559
Note:
See TracChangeset
for help on using the changeset viewer.