Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Aug 2011 21:47:26 -0700
From:      Jeremy Chadwick <freebsd@jdc.parodius.com>
To:        Steven Hartland <killing@multiplay.co.uk>
Cc:        freebsd-fs@FreeBSD.ORG
Subject:   Re: Questions about erasing an ssd to restore performance under FreeBSD
Message-ID:  <20110805044725.GA48395@icarus.home.lan>
In-Reply-To: <20110805033001.GA47366@icarus.home.lan>
References:  <13BEC27B17D24D0CBF2E6A98FD3227F3@multiplay.co.uk> <20110728012437.GA23430@icarus.home.lan> <FD3A11BEFD064193AA24C1DF09EDD719@multiplay.co.uk> <20110728103234.GA33275@icarus.home.lan> <A6828B6CE6764E13A44B1ABF61CF3FED@multiplay.co.uk> <20110728145917.GA37805@icarus.home.lan> <2A07CD8AE6AE49A5BAED59A7E547D1F9@multiplay.co.uk> <2D117F9F212A4CCBA6B7F51E8705BDB7@multiplay.co.uk> <20110805033001.GA47366@icarus.home.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 04, 2011 at 08:30:01PM -0700, Jeremy Chadwick wrote:
> I can put that patch up on the web, but be aware it's more of a "hack"
> because /usr/include/sys/ata.h needs certain bits added to it, which I
> just defined in camcontrol.c for the time being.  There's also user
> interface pieces which are half-written which I need to remove.  I
> wouldn't want people patching their camcontrol for this functionality
> with a half-ass patch is what I'm saying.  :-)

I've cleaned up the patch (removed the half-written usage stuff) and
made it available.

http://jdc.parodius.com/freebsd/camcontrol_ata_security/

If this is committed to base the #define ATA_SECURITY_* entries should
be moved into include/sys/ata.h.

Steve, if you want to put up your patch somewhere I can review it, but
an official review from someone more familiar with CAM (e.g. mav@) would
be best.

I'm also not sure how you implemented all the features,
UI-wise (command-line-argument-wise).  This is what I came up with, from
my internal docs, with comparative syntax in Linux hdparm:

NOTE: Should try to avoid using -C, -E, -n, -t, -u, or -v

camcontrol security -U -p PWD   == unlock         (--security-unlock PWD)
camcontrol security -S -p PWD   == set password   (--security-set-pass PWD)
camcontrol security -D -p PWD   == disable        (--security-disable PWD)
camcontrol security -X -p PWD   == erase          (--security-erase PWD)
camcontrol security -Z -p PWD   == enhanced erase (--security-erase-enhanced PWD)
camcontrol security -i TYPE ... == {user,master}  (--user-master USER)

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                   Mountain View, CA, US |
| Making life hard for others since 1977.               PGP 4BD6C0CB |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110805044725.GA48395>