WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] xenstore transactions

To: Xen Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] xenstore transactions
From: Daniel Stekloff <dsteklof@xxxxxxxxxx>
Date: Tue, 18 Oct 2005 05:40:43 -0700
Delivery-date: Tue, 18 Oct 2005 12:38:04 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] xenstore transactions, Daniel Stekloff <=