Re: [Nbd] NBD, sparse files & TRIM
- To: Paul Clements <paul.clements@...856...>
- Cc: nbd-general@...72...
- Subject: Re: [Nbd] NBD, sparse files & TRIM
- From: Wouter Verhelst <w@...112...>
- Date: Wed, 29 Dec 2010 22:14:12 +0100
- Message-id: <20101229211412.GB19035@...510...>
- In-reply-to: <AANLkTimYH-m5mabiY26VBXnuhomX6ZmAgkK2aU=-HMG4@...18...>
- References: <20091104173920.GJ6589@...421...> <20091106110734.GA9690@...510...> <20091106143449.GN6589@...421...> <20101228152306.GV9658@...855...> <20101229153211.GA19035@...510...> <AANLkTimYH-m5mabiY26VBXnuhomX6ZmAgkK2aU=-HMG4@...18...>
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: