prevent breaking smartd service with extra options

Description

PR: https://github.com/truenas/middleware/pull/10421

Seen in the wild. Someone had put `-d nvme` as an extra smart option in our API. Surprisingly, we do 0 validation here. We statically generate the smartd config and don't "overwrite" the config with any of these flags so it's best to prevent them here to prevent the smartd.conf from being generated incorrectly which ultimately prevents the smartd service from starting.

Problem/Justification

None

Impact

None

relates to

Activity

Show:

Bug Clerk January 13, 2023 at 2:46 PM

Automation for Jira January 13, 2023 at 2:46 PM

This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Priority

More fields

Katalon Platform

Created January 13, 2023 at 1:58 PM
Updated February 27, 2025 at 10:09 PM
Resolved January 13, 2023 at 2:51 PM