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

Re: [Nbd] NBD, sparse files & TRIM



On Wed, Dec 29, 2010 at 11:35:19AM -0500, Paul Clements wrote:
> On Wed, Dec 29, 2010 at 10:32 AM, Wouter Verhelst <w@...112...> wrote:
> > - The kernel can now issue TRIM packets.
> >
> > The packet itself could be something like:
> >
> > .type: 3 (NBD_CMD_TRIM, or perhaps NBD_CMD_DELETE, doesn't really matter
> > all that much)
> > .from: offset to trim
> > .len: length of stuff to trim
> 
> Maybe NBD_CMD_DISCARD, since that's the block layer name for it. (TRIM
> is ATA, PUNCH is SCSI).

Yeah, that's probably quite sensible, then.

> Let me put this on my todo list. It shouldn't take too long to code up.

Great, thanks.

-- 
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: