With increase in use of both SSD's and ZFS and the lack of TRIM support under ZFS SSD's need to be secure erased periodically to return performance to that when they are new. The attached patch adds the relavent options to camcontrol that enables an admin to perform all the ATA security options on a disk, including the ability to secure erase a disk. Given the dangerous nature of the commands added, the patch also adds long option support to camcontrol so that command line options used are understandable instead of random letters with little or no correspondence to the options they represent. This patch has been discussed on the fs mailing list here, where some changes where suggested an implemented:- http://lists.freebsd.org/pipermail/freebsd-fs/2011-August/012148.html Some more examples and info can also be found here:- http://blog.multiplay.co.uk/2011/08/freebsd-security-support-for-ata-devices-via-camcontrol/ Much credit to Daniel Roethlisberger for his work on adding security support to atacontrol, detailed in PR bin/127918 which was the basis of this code. http://www.roe.ch/ATA_Security http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/127918 Fix: N/A Patch attached with submission follows: How-To-Repeat: N/A
This incredibly useful PR/patch has been neglected for over a year. SSDs are mainstream now and being used commonly by FreeBSD users. This greatly increases the want for secure erase. Sure, we have TRIM for UFS, and HEAD/CURRENT has TRIM for ZFS, and that's good at keeping the FTL optimal on an SSD, but let's be reasonable here. Alexander and Andriy, I know you're both busy, but can either of you review this? If you need/want an updated patch (specifically for 8.3 and 9.x), I can provide updated ones (will take me some time of course). Thanks guys. -- | Jeremy Chadwick jdc@koitsu.org | | UNIX Systems Administrator http://jdc.koitsu.org/ | | Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |
----- Original Message ----- From: "Jeremy Chadwick" <jdc@koitsu.org> > This incredibly useful PR/patch has been neglected for over a year. > > SSDs are mainstream now and being used commonly by FreeBSD users. This > greatly increases the want for secure erase. Sure, we have TRIM for > UFS, and HEAD/CURRENT has TRIM for ZFS, and that's good at keeping > the FTL optimal on an SSD, but let's be reasonable here. > > Alexander and Andriy, I know you're both busy, but can either of you > review this? > > If you need/want an updated patch (specifically for 8.3 and 9.x), I can > provide updated ones (will take me some time of course). > > Thanks guys. I have an updated version of this patch which is waiting on finishing off some cam related patches that I'm working with mav@ on. So for now lets hold off on this one and I'll get the updated across once the dependencies are all place :) Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.
Responsible Changed From-To: freebsd-bugs->smh I'll take it.
State Changed From-To: open->patched Awaiting MFC of r249115
State Changed From-To: patched->closed Committed. Thanks!