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

Re: [xen-devel][RFC] xl disk configuration handling


  • To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
  • From: Kamala Narasimhan <kamala.narasimhan@xxxxxxxxx>
  • Date: Tue, 01 Feb 2011 09:00:35 -0500
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 01 Feb 2011 06:02:05 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=ulZlB+MtzqtxcbL8opJlHadxteTjO8j61VRf62KSxMm/rtmGSbaAMIvhugmwvFt6R7 rKBlNFLq2qkembQyIPrr2FjcVeqSsNwCvkAMkgMKjCWWgc47w7kzknEl1Hk3eSkjOXSp lvAx+yvKSHerp8hBAJwVl0XXjQJWg+GNgZ8eE=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

>>> do we really need to change the parsing function that much? I
>>> understand there are significant changes but this is a total rewrite.
>>> I am concerned about all the bugs we might find later after the
>>> release...
>>>
>> This is one change I would really like to go with.  Not only does it help 
>> with
>> the changes we needed, it also gets rid of code duplication.  With this 
>> change
>> block-attach can rely on the same parsing code (that is once I submit the
>> block-attach changes patch).
>  
> It took us several iterations to get the parsing right, I would like to
> keep the state machine and the field parsing as it is, but each case
> could have its own function to implement it.  In other words, would you
> be OK with calling parse_disk_attrib, parse_disk_vdev_info and
> parse_disk_pdev_info from the main switch under DSTATE_PHYSPATH,
> DSTATE_VIRTPATH, etc?

Sure, I will go with appropriate DSTATE_* for each chunk we parse.

Kamala


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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