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

Re: [Xen-devel] [PATCH] libxl: add option for discard support to xl disk configuration



On Wed, Jan 29, Ian Campbell wrote:

> > +Default value:         on
> 
> I think this default should be "on if, available for that backend type".

Ok, will make this change.

> What happens if the backed does not support discard?

The toolstack just does not know if a phy device supports it, or if file
backed storage can do hole punching. If feature-discard is set and the
frontend sends a discard request, the backend would return an error
(like ENOTSUPPORTED) and the frontend internally disables the discard
flag. Thats how it is done in pvops and the forward ported xenlinux
tree.

Up to now I have not prepared a change for the backend drivers. They
could either force feature-discard to be true so that the error paths
will be executed. Or they could ignore the discard-enable if the backing
storage does not support discard.

> >      disk->readwrite = 1;
> > +    disk->discard_enable = 1; /* Doing it twice?! */
> 
> Why?

Thats what I'm asking you. Why is readwrite set here, and later on also
in the .l file? At least just setting it here did not unconditionally
enable it if no discard= was specified. I have not traced the code why
that happens.

> > + * discard_enable
> 
> All of the existing properties use - not _.

I will make this change.

Thanks.

Olaf

_______________________________________________
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®.