Page MenuHomeFreeBSD

Implement a devtype command.
ClosedPublic

Authored by imp on Jul 15 2019, 6:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 3:22 PM
Unknown Object (File)
Tue, Oct 29, 7:54 PM
Unknown Object (File)
Oct 12 2024, 4:21 PM
Unknown Object (File)
Oct 6 2024, 3:46 PM
Unknown Object (File)
Oct 6 2024, 9:56 AM
Unknown Object (File)
Oct 5 2024, 7:36 AM
Unknown Object (File)
Oct 5 2024, 3:31 AM
Unknown Object (File)
Oct 3 2024, 11:02 PM

Details

Summary
Implement a devtype command.

List the device's protocol. The returned value is one of the following:
        ata     direct attach ATA or SATA device
        satl    a SATA device attached via SAS
        scsi    A parallel SCSI or SAS
        nvme    A direct attached NVMe device
        mmcsd   A MMC or SD attached device

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25355
Build 24008: arc lint + arc unit

Event Timeline

val_packett.cool added inline comments.
sbin/camcontrol/camcontrol.8
2534

The wording is a bit funny, device attached via device…

Maybe "attached via an SD/MMC controller"?

sbin/camcontrol/camcontrol.8
2527

The term sat or satl is a more mainstream term here. I know that the CC_DT_ATA_BEHIND_SCSI name already exists, but for user-facing functionality, let's do it differently (and I wouldn't mind if the CC_DT name changed also).

2538

Something to consider would be a raid devtype, since there are a fair number of drivers that have devices of this type.

sbin/camcontrol/camcontrol.c
271

Use satl here.

sbin/camcontrol/camcontrol.8
2527

I'll go with satl and move these changes through.

2534

It's from the department of redundancy department. I'll fix their incursion into my work.

2538

What distinguishes this? all the other things are basically a protocol level thing, while this I'm unsure how to implement.

sbin/camcontrol/camcontrol.c
271

will do

updates from scott's comments

imp marked 4 inline comments as done.
imp added inline comments.
sbin/camcontrol/camcontrol.8
2538

I'll add 'raid' in the future once we get sorted out what that means.

rpokala added inline comments.
sbin/camcontrol/camcontrol.8
2523

I haven't looked at the larger context of this manpage, but shouldn't cam be at least capitalized, if not flagged as an acronym?

2528

Perhaps spell out SCSI-ATA Translation Layer here?

2540

s/Some crazy/An unexpected/

#professional ;-)

imp edited the summary of this revision. (Show Details)

Make it #professional, per rpokala

Looks reasonable to my not-very-CAM-savvy eyes.

This revision is now accepted and ready to land.Jul 15 2019, 9:41 PM
This revision was automatically updated to reflect the committed changes.

As this looks like a minor typo for me, I am trying to submit without any "add action".

head/sbin/camcontrol/camcontrol.c
5418 ↗(On Diff #59789)

I am sorry, but didn't you mean "attached"?