(ufs|ext2)_getlbns() will return the logical block numbers of indirect
blocks needed to address a block.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/ufs/ufs/ufs_bmap.c | ||
---|---|---|
104 ↗ | (On Diff #55111) | Can you replace it by description what the function returns, de-facto ? |
Comment Actions
I would preface the actual condition "The nbp parameter is non-NULL when the mapping is for a block that contains data, one of an external data block, a direct block, or the final block in a chain of indirect blocks." before the correct clarification "If mapping an extended attribute block, nbp must point to a buffer for that block."
Comment Actions
@kib pointed out that this doesn't make much sense given that nbp is only actually used when mapping an extended attribute block. In practice, ufs_strategy() will specify the buffer when reading data blocks, but it doesn't have to. Is this what you were referring to?