Opened 7 years ago

Last modified 6 years ago

#832 new patch

Enable / disable the certain device features by specifying feature value and sector count value.

Reported by: JonghwanChoi Owned by:
Priority: minor Milestone: undecided
Component: smartctl Version: 6.5
Keywords: Cc:


There are many device features. To support these features, we have to add a lot of code.
This patch set enable / disable the certain device features by specifying feature value and sector count value.

example) ./smartctl -s features,0x64,0x2 /dev/sdb -> DSN control

Do not turn dangerous features on.Use with care.
This patch is quite useful for the FW developer.

Attachments (1)

0001-Enable-Disable-the-certain-device-features-by-specif.patch (6.6 KB ) - added by JonghwanChoi 7 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Christian Franke, 7 years ago

Milestone: undecided

Of course this useful for FW developers - but possibly dangerous (disconnect or brick device, damage data) for our typical user audience.

I'm not yet sure whether we want such send arbitrary ATA commands functionality in smartctl. Please discuss on smartmontools-devel mailing list.

Review of patch is left for later.

comment:2 by Christian Franke, 7 years ago

Component: allsmartctl

comment:3 by Alex Samorukov, 6 years ago

I think smartctl should not be a tool doing this. Some of my arguments:

  1. User is not expecting that smartctl/smartd can do any hard and we are trying to avoid it as much as we can (e.g. by blacklisting some "known to be bad" commands on some controllers)
  1. On some OS/controllers there is only limited interface (e.g. on Darwin, some raid-s) which simply not allowing to send anything but predefined commands, so it will not work anyway.

May be its could be some other binary in the same source.

Note: See TracTickets for help on using tickets.