[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Nbd] NBD, sparse files & TRIM



On Wed, Jan 05, 2011 at 04:53:01PM +0100, folkert wrote:
> An other enhancement could be:
> - compression (when cpu is faster than network connection)

That would be improper layering, IMO. You can already do compression by
using a compressed filesystem or some device-mapper thing.

> - not sending 0x00 pages but some flag in the responsheader indicating
>   an all 0x00 page

I do intend to write the changes that would be required for what
triggered this thread in such a way that it would (configurably) also
work even if the server isn't running off a filesystem that supports
sparse files (so that it would just write out 0x00 pages instead, rather
than deallocating them). Or did you mean something else?

-- 
The biometric identification system at the gates of the CIA headquarters
works because there's a guard with a large gun making sure no one is
trying to fool the system.
  http://www.schneier.com/blog/archives/2009/01/biometrics.html



Reply to: