aboutsummaryrefslogtreecommitdiff
path: root/games/(public-mirror)
diff options
context:
space:
mode:
authorBoris Lytochkin <lytboris@gmail.com>2025-08-27 18:49:12 +0000
committerEd Maste <emaste@FreeBSD.org>2025-08-27 19:18:50 +0000
commit9ce29249ec5d7d1d0a9f5f7655e1b37d54622665 (patch)
tree6fbc1daf201ec62e6d89d8d0c5d716fdf7996f6d /games/(public-mirror)
parentcb2887746f8b9dd4ad6b1e757cdc053a08b25a2e (diff)
makefs: Calculate indirect block count properly for large files on ffsHEADmain
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 'games/(public-mirror)')
0 files changed, 0 insertions, 0 deletions