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

Re: [Xen-devel] [PATCH] xen-blkfront: remove type check from blkfront_setup_discard



On 01/10/2014 05:49 PM, Olaf Hering wrote:
On Fri, Jan 10, Boris Ostrovsky wrote:

I think we should at clear feature_discard and print an error in the log if
*either* of xenbus_gather() calls fail.
Are you sure about that? AFAIK many other properties are optional as
well. I dont think there is a formal spec about the discard related
properties. Should every backend be required to provide all four
properties?

It's not whether the properties are required or not. It's that they may have been set by the admin but we ignored them. I am particularly concerned about security setting.

Can you determine from the error whether the call failed or the property wasn't available?

Alternatively, we may have to require the toolstack that if feature-discard is provided then all three of these are provided as well. And then you disable discard on any error.

-boris

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.