diff options
author | Boris Lytochkin <lytboris@gmail.com> | 2025-08-27 18:49:12 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2025-08-27 19:18:50 +0000 |
commit | 9ce29249ec5d7d1d0a9f5f7655e1b37d54622665 (patch) | |
tree | 6fbc1daf201ec62e6d89d8d0c5d716fdf7996f6d /sys/contrib/device-tree/src/arm64/marvell | |
parent | cb2887746f8b9dd4ad6b1e757cdc053a08b25a2e (diff) |
When building an ffs image containing large file(s), space requirements
were calculated incorrectly yielding a bigger image than necessary.
The reason is that amount of indirect blocks estimation was done wrong:
- single indirect block was treated as it can hold just 12 data blocks
- nested indirect blocks were not taken into account at all
Add support for indirect blocks and fix another tiny bug with
underestimated space requirement for files with size between
(UFS_NDADDR-1)*blksz+fragsz ... (UFS_NDADDR)*blksz requesting N>1
fragments instead of a whole block.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D52120
Diffstat (limited to 'sys/contrib/device-tree/src/arm64/marvell')
0 files changed, 0 insertions, 0 deletions