Skip to content

Conversation

@benreese0
Copy link
Contributor

Refactoring to have an sfx-types.h and sfx-nvme.h
Adding an equivalent to sfx-status into sfx nvme-cli plugin JSON and normal prints working
Added drive lifetime WAF in sfx status output

Co-authored-by: Ben Reese [email protected]
Co-authored-by: Jayden Stenfort [email protected]

Signed-off-by: Ben Reese [email protected]

@igaw
Copy link
Collaborator

igaw commented Dec 11, 2024

Could you please split up the different changes into patches instead just one single change which does several things.

  • E.g. fixing typos ('Intel' -> 'ScaleFlux')
  • NVME_NSID_ALL
  • moving code into the header file
  • adding the newly json output

For the last point, please check your coding style here. There are plenty of whitespace violation, e.g. overlong lines, missing spaces, space and tabs mixed.

checkpatch.pl can help you here to identify those. See how to use it out of the Linux kernel tree

The general direction looks good. Thanks

@benreese0
Copy link
Contributor Author

Thanks, I'll get those done

@benreese0
Copy link
Contributor Author

eep, sorry, I thought I had resolved all the issues checkpatch.pl was flagging let me get that branch in the right spot

A-Fellow-Comrade and others added 4 commits December 17, 2024 17:15
Moving types associated with ScaleFlux into new file sfx-types.h

Signed-off-by: Jayden Stenfort <[email protected]>
Fixing spelling and typos

Signed-off-by: Jayden Stenfort <[email protected]>
Using NVME_NSID_ALL macro instead of 0xffffffff magic number

Signed-off-by: Jayden Stenfort <[email protected]>
Adding ScaleFlux status command, equivalent to vendor unique utility.

Signed-off-by: Ben Reese <[email protected]>
@igaw
Copy link
Collaborator

igaw commented Dec 20, 2024

Thanks!

BTW, you might want to look into the _cleanup_fd_ helper. This makes the error code handling way simpler. Also, you could separate the normal output from the json ouput a bit better,e.g. by moving into separate functions and guard the json part with a ifdef. Then we can build this plugin even when json-c is not present.

@igaw igaw merged commit f258dca into linux-nvme:master Dec 20, 2024
16 of 17 checks passed
@benreese0 benreese0 deleted the sfx-status-update branch December 20, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants