Page MenuHomeFreeBSD

Remove incorrect comments.
ClosedPublic

Authored by markj on Mar 15 2019, 4:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 22, 12:44 AM
Unknown Object (File)
Wed, Dec 11, 8:36 AM
Unknown Object (File)
Tue, Dec 3, 8:21 PM
Unknown Object (File)
Nov 20 2024, 11:09 AM
Unknown Object (File)
Nov 19 2024, 2:37 AM
Unknown Object (File)
Nov 12 2024, 10:15 PM
Unknown Object (File)
Oct 20 2024, 10:48 AM
Unknown Object (File)
Oct 7 2024, 12:07 AM
Subscribers

Details

Summary

(ufs|ext2)_getlbns() will return the logical block numbers of indirect
blocks needed to address a block.

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 ?

  • Readd a comment explaining the return value.
sys/ufs/ufs/ufs_bmap.c
101 ↗(On Diff #55117)

to a physical block number,

102 ↗(On Diff #55117)

nbp must be provided when mapping extattr block, and is the buffer for that block.
runb and runp, if provided, store the contiguous block runs before and after the *bnp block.

  • Describe nbp, runb and runp parameters per kib's suggestion.
This revision is now accepted and ready to land.Mar 15 2019, 9:25 PM

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."

  • Update based on Kirk's comment.
This revision now requires review to proceed.Mar 17 2019, 5:03 PM

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."

@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?

This revision was not accepted when it landed; it landed in state Needs Review.Mar 17 2019, 5:34 PM
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state Needs Review.Apr 29 2019, 10:05 PM
This revision was automatically updated to reflect the committed changes.