From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: qdisk vs. file as vbd type Date: Fri, 10 Jan 2014 10:29:48 -0500 Message-ID: <20140110152948.GA20640@phenom.dumpdata.com> References: <20140110144024.GA19611@aepfle.de> <1389365236.19142.54.camel@kazak.uk.xensource.com> <20140110150000.GA20287@aepfle.de> <20140110151551.GB20152@phenom.dumpdata.com> <20140110151956.GA22646@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20140110151956.GA22646@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, Jan 10, 2014 at 04:19:56PM +0100, Olaf Hering wrote: > [ removing Li who is no longer with Novell ] > > On Fri, Jan 10, Konrad Rzeszutek Wilk wrote: > > > You are looking at: > > ed30bf317 (Li Dongyang 2011-09-01 18:39:09 +0800 1664) } else if (strncmp(type, "file", 4) == 0) > > ed30bf317 (Li Dongyang 2011-09-01 18:39:09 +0800 1665) info->feature_discard = 1; > > ed30bf317 (Li Dongyang 2011-09-01 18:39:09 +0800 1666) > > ed30bf317 (Li Dongyang 2011-09-01 18:39:09 +0800 1667) kfree(type); > > ed30bf317 (Li Dongyang 2011-09-01 18:39:09 +0800 1668)} > > ed30bf317 (Li Dongyang 2011-09-01 18:39:09 +0800 1669) > > > > My recollection is that at the time the patches were developed, loop > > was not able to do discard operations. That has since changed and > > loop can do it. Hence the force of =1 was added in. > > If the backend cant do discard then it should not advertise the feature. > > Are you ok with me sending a patch which simplifies this function? Yes of course! > > Olaf