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

[Xen-devel] xenstore transactions


  • To: Xen Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Daniel Stekloff <dsteklof@xxxxxxxxxx>
  • Date: Tue, 18 Oct 2005 05:40:43 -0700
  • Delivery-date: Tue, 18 Oct 2005 12:38:04 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Instead of having two handles for xenstore functions, xs_handle and
xs_transaction_handle, wouldn't it be easier to just put the
xs_transaction_handle in the xs_handle? 

If users wanted to make a single xs_read or xs_write, they wouldn't have
to open xs_handle, open xs_transaction_handle, read or write, close
xs_transaction, and close xs_handle. The transaction could be done for
them. 

If, however, they want to a multi command transaction, they still use
xs_transaction_start and xs_transaction_end. These functions would open
the xs_transaction_handle and assign it to the xs_handle. 

The xs_read and other functions would check to see if that transaction
handle exists. If it doesn't, they'd open and close it. 

Just a thought.....

Thanks,

Dan


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