PR: 295348
Reported by: Alastair Hogge <agh@riseup.net>
Fixes: bab04ddf1fd4 ("ufs: support unmapped bufs for indirect blocks in bmap")Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
The function scans the indirect blocks to find holes/data if the file is large enough. Then it needs to access the indirect block content, which requires the mapping.
Unlike ufs_bmap(), which only needs to read the single value at specific index, ufs_bmap_seekdata() often needs to scan the whole buffer of the indirect block. Due to this, it does not make sense to only map single page with sf_buf.
Comment Actions
Sorry for the delay in answering. I am in a remote area of California and the power / Internet has been out since just after I sent my question. Power outages are unfortunately routine enough for you that you can work around them, me not so much.