Skip to content

Seagate: Fix helium pressure trip issue in smartctl - #8

Open
sharma-nidhi wants to merge 1 commit into
mainfrom
FDOPENSRCE-364
Open

sharma-nidhi wants to merge 1 commit into
mainfrom
FDOPENSRCE-364

Conversation

@sharma-nidhi

Copy link
Copy Markdown

This pull request updates how the "Helium Pressure Threshold Tripped" value is extracted and displayed in both ATA and SCSI farm log outputs. The main change is to decode the field according to its format, ensuring that the reported value is accurate and consistent in both human-readable and JSON outputs.

Reliability statistics decoding improvements:

  • In both ataPrintFarmLog and scsiPrintFarmLog (in src/farmprint.cpp), the heliumPresureTrip field is now decoded to extract the correct value based on its format, instead of displaying the raw value. This ensures more accurate reporting of the "Helium Pressure Threshold Tripped" status. [1] [2]

JSON output consistency:

  • The JSON outputs for both ATA (jref5["helium_presure_trip"]) and SCSI (jref5["helium_pressure_threshold_tripped"]) logs now use the decoded heliumPressureTripped value instead of the raw field, ensuring consistency between the human-readable and JSON representations. [1] [2]

Signed-off-by: nidhi-sharma <nidhi.sharma@seagate.com>
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.

1 participant