The output of "camcontrol tags" is out of sync with the fields descriptions made in the manual page. camcontrol tags ada0 -v (pass0:ata3:0:0:0): dev_openings 1 (pass0:ata3:0:0:0): dev_active 0 (pass0:ata3:0:0:0): allocated 0 <== (pass0:ata3:0:0:0): queued 0 <== (pass0:ata3:0:0:0): held 0 (pass0:ata3:0:0:0): mintags 2 (pass0:ata3:0:0:0): maxtags 32 The manual page lists those fields: dev_openings dev_active devq_openings <== devq_queued <== held mintags maxtags Arraws highlight discrepancies.
Created attachment 228326 [details] camcontrol(8) patch Patch camcontrol(8) to remove references to devq_openings and devq_queued; both symbols only exist in the camcontrol man page. Document the allocated tag for camcontrol so the man page matches the output.
The relevant change in code was committed as r271588 (959ec2581b23aefebb3bae26c527c1b25834a9e3) by mav@.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=d4cf7dc0df289ad0e16b5b40b076311c71e663dc commit d4cf7dc0df289ad0e16b5b40b076311c71e663dc Author: Felix Johnson <felix.the.red@gmail.com> AuthorDate: 2021-10-20 04:32:54 +0000 Commit: Guangyuan Yang <ygy@FreeBSD.org> CommitDate: 2021-10-20 04:32:54 +0000 camcontrol(8): Clean up references to removed symbols Patch the manpage to remove references to devq_openings and devq_queued. Document the allocated tag that has been added in the same commit. The relevant code change was committed as r271588 (959ec2581b23aefebb3bae26c527c1b25834a9e3) by mav@. PR: 223651 MFH after: 3 days Reported by: Bertrand Petit <bsdpr@phoe.frmug.org> sbin/camcontrol/camcontrol.8 | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=dcb72294601aea71c41780d8ba2c4766136d72fc commit dcb72294601aea71c41780d8ba2c4766136d72fc Author: Felix Johnson <felix.the.red@gmail.com> AuthorDate: 2021-10-20 04:32:54 +0000 Commit: Guangyuan Yang <ygy@FreeBSD.org> CommitDate: 2021-10-25 15:58:27 +0000 camcontrol(8): Clean up references to removed symbols Patch the manpage to remove references to devq_openings and devq_queued. Document the allocated tag that has been added in the same commit. The relevant code change was committed as r271588 (959ec2581b23aefebb3bae26c527c1b25834a9e3) by mav@. PR: 223651 Reported by: Bertrand Petit <bsdpr@phoe.frmug.org> (cherry picked from commit d4cf7dc0df289ad0e16b5b40b076311c71e663dc) sbin/camcontrol/camcontrol.8 | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-)