From: Keir Fraser Subject: Re: [PATCH 2/2] Add trim operation to xen block devices Date: Tue, 21 Dec 2010 18:05:57 +0000 Message-ID: References: <1292950702-15312-5-git-send-email-owen.smith@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1292950702-15312-5-git-send-email-owen.smith@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Owen Smith , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 21/12/2010 16:58, "Owen Smith" wrote: > +/* > + * Recognised only if "feature-trim" is present in backend xenbus info. > + * The "feature-trim" node contains a boolean indicating whether trim > + * requests are likely to succeed or fail. Either way, a trim request > + * may fail at any time with BLKIF_RSP_EOPNOTSUPP if it is unsupported by > + * the underlying block-device hardware. The boolean simply indicates whether > + * or not it is worthwhile for the frontend to attempt trim requests. > + * If a backend does not recognise BLKIF_OP_TRIM, it should *not* > + * create the "feature-trim" node! > + */ > +#define BLKIF_OP_TRIM 4 What is a 'trim operation'? It's not documented in the patch description(s) or in the protocol-defining header file. -- Keir