Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Mar 2015 18:21:45 -0500
From:      "Matthew D. Fuller" <fullermd@over-yonder.net>
To:        Steven Hartland <killing@multiplay.co.uk>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: RFC: Pass TRIM through GELI
Message-ID:  <20150308232145.GT1742@over-yonder.net>
In-Reply-To: <54FCD5B9.3090101@multiplay.co.uk>
References:  <20150308000131.GP1742@over-yonder.net> <54FC4E99.4080202@multiplay.co.uk> <20150308223552.GR1742@over-yonder.net> <54FCCFC3.4000007@multiplay.co.uk> <20150308225046.GS1742@over-yonder.net> <54FCD5B9.3090101@multiplay.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 08, 2015 at 11:05:29PM +0000 I heard the voice of
Steven Hartland, and lo! it spake thus:
> 
> IIRC ufs doesn't support TRIM by default, it needs to be manually
> enabled.

But if you `newfs -t` it, and then mount on a stack that doesn't
support TRIM, it notices and doesn't send any BIO_DELETE's.


> GELI is kind of different though given is use, I'm sure users of it
> would expect delete to leave no trace of the data which was there,
> which is what I was under the impression it does, correct me if I'm
> wrong?

Oh, I see where you're coming from.  No, there's a comment suggesting
it could shred the data, but that's never been implemented.  The
current code just falls through to the default case of the switch and
denies it:


.   case BIO_DELETE:
.   .   /*
.   .    * We could eventually support BIO_DELETE request.
.   .    * It could be done by overwritting requested sector with
.   .    * random data g_eli_overwrites number of times.
.   .    */
.   default:
.   .   g_io_deliver(bp, EOPNOTSUPP);
.   .   return;



-- 
Matthew Fuller     (MF4839)   |  fullermd@over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.



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