Bug 212155 - Incorrect documentation in cam(4) for wired scsi device hints.
Summary: Incorrect documentation in cam(4) for wired scsi device hints.
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-25 17:29 UTC by mbrian
Modified: 2023-10-08 14:12 UTC (History)
4 users (show)

See Also:


Attachments
This patch fixes the described problem (1.24 KB, patch)
2023-03-29 20:42 UTC, Tom Hukins
no flags Details | Diff
This patch fixes awkward text near the previous change (684 bytes, patch)
2023-03-29 20:43 UTC, Tom Hukins
no flags Details | Diff
This patch incorporates Graham Perrin's suggestion (962 bytes, patch)
2023-04-01 20:11 UTC, Tom Hukins
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mbrian 2016-08-25 17:29:54 UTC
The documentation on device hints for wired scsi devices in cam(4) is not
correct. The documentation describes the hint as:

hint.da.<n>.unit=<lun_number>

The code in cam_periph.c actually looks for

hint.da.<n>.lun=<lun_number>
Comment 1 Tom Hukins 2023-03-29 20:42:28 UTC
Created attachment 241192 [details]
This patch fixes the described problem
Comment 2 Tom Hukins 2023-03-29 20:43:09 UTC
Created attachment 241193 [details]
This patch fixes awkward text near the previous change
Comment 3 Tom Hukins 2023-03-29 20:49:53 UTC
The patches I attached to this ticket can be applied using git-am(1):

  git am 0001-CAM-4-Fix-device-hints-documentation.patch
  git am 0002-CAM-4-Remove-redundant-words.patch
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2023-04-01 18:28:09 UTC
Comment on attachment 241193 [details]
This patch fixes awkward text near the previous change

Smart. 

If you like, also remove the word 'living' from the subsequent paragraph (below the hints).
Comment 5 Tom Hukins 2023-04-01 20:11:35 UTC
Created attachment 241252 [details]
This patch incorporates Graham Perrin's suggestion

Thanks for the review, Graham.  I've incorporated your suggestion into this patch.
Comment 6 commit-hook freebsd_committer freebsd_triage 2023-09-17 15:17:09 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=c2909b0c9a29cd6fa0019ed9998dde9e054bdad2

commit c2909b0c9a29cd6fa0019ed9998dde9e054bdad2
Author:     Tom Hukins <tom@FreeBSD.org>
AuthorDate: 2023-09-17 15:12:22 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-09-17 15:13:49 +0000

    cam(4): Fix device hints documentation

    The code in sys/cam/cam_periph.c that calls resource_int_value(9) looks
    for "lun" not "unit".

    PR: 212155
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/843

 share/man/man4/scsi.4 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Comment 7 Benedict Reuschling freebsd_committer freebsd_triage 2023-10-08 14:12:57 UTC
Close this PR. Warner committed a patch and no further work is needed.