Re: [Nbd] [PATCH] add support for NBD_CMD_TRIM, update docs
- To: Paolo Bonzini <pbonzini@...696...>
- Cc: nbd-general@...72...
- Subject: Re: [Nbd] [PATCH] add support for NBD_CMD_TRIM, update docs
- From: Wouter Verhelst <w@...112...>
- Date: Thu, 8 Sep 2011 18:47:28 +0200
- Message-id: <20110908164728.GE22384@...3...>
- In-reply-to: <20110908163813.GD22384@...3...>
- References: <1315476346-7155-1-git-send-email-pbonzini@...696...> <20110908163813.GD22384@...3...>
On Thu, Sep 08, 2011 at 06:38:13PM +0200, Wouter Verhelst wrote:
> On Thu, Sep 08, 2011 at 12:05:46PM +0200, Paolo Bonzini wrote:
> > + case NBD_CMD_TRIM:
> > + /* The kernel module sets discard_zeroes_data == 0,
> > + * so it is okay to do nothing. */
>
> except it would be nice to implement this anyway, so we can use
> FALLOCATE_PUNCH_HOLE (or what was it called again).
>
> I did look into this in the past, but since the necessary kernel-side
> stuff hadn't been done yet, did not spend too much time looking into it.
Forgot to mention:
thanks, applied
;-)
--
The volume of a pizza of thickness a and radius z can be described by
the following formula:
pi zz a
Reply to: