Page MenuHomeFreeBSD

Implement a devtype command.
ClosedPublic

Authored by imp on Jul 15 2019, 6:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 11 2024, 8:45 PM
Unknown Object (File)
Jan 1 2024, 11:48 PM
Unknown Object (File)
Dec 20 2023, 4:53 AM
Unknown Object (File)
Nov 29 2023, 11:50 PM
Unknown Object (File)
Nov 26 2023, 6:50 PM
Unknown Object (File)
Sep 25 2023, 12:48 AM
Unknown Object (File)
Sep 18 2023, 9:49 AM
Unknown Object (File)
Sep 17 2023, 1:36 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 25354
Build 24007: 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"?