1d7e5a040e
Add definitions for e2fs_daddr_t, e4fs_daddr_t in addition to the already existing e2fs_lbn_t and adjust them for ext4. Other than making the code more readable these changes should fix problems related to big filesystems. Setting the proper types can be tricky so the process was helped by looking at UFS. In our implementation, logical block numbers can be negative and the code depends on it. In ext2, block numbers are unsigned so it is convenient to keep e2fs_daddr_t unsigned and use the complete 32 bits. In the case of e4fs_daddr_t, while the value should be unsigned, for ext4 we only need to support 48 bits so preserving an extra bit from the sign is not an issue. While here also drop the ext2_setblock() prototype that was never used. Discussed with: mckusick, bde MFC after: 3 weeks |
||
---|---|---|
.. | ||
ext2_alloc.c | ||
ext2_balloc.c | ||
ext2_bmap.c | ||
ext2_dinode.h | ||
ext2_dir.h | ||
ext2_extents.c | ||
ext2_extents.h | ||
ext2_extern.h | ||
ext2_hash.c | ||
ext2_htree.c | ||
ext2_inode_cnv.c | ||
ext2_inode.c | ||
ext2_lookup.c | ||
ext2_mount.h | ||
ext2_subr.c | ||
ext2_vfsops.c | ||
ext2_vnops.c | ||
ext2fs.h | ||
fs.h | ||
htree.h | ||
inode.h |