From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoshiaki Tamura Subject: [RFC][PATCH 09/13] Kemari: add XenbusStateAttached to xenbus Date: Thu, 12 Mar 2009 10:20:28 +0900 Message-ID: <49B8635C.902@lab.ntt.co.jp> References: <49B86208.2020205@lab.ntt.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49B86208.2020205@lab.ntt.co.jp> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: =?ISO-2022-JP?B?IhskQkx4XzcyQk4kGyhCKHlhbmFnaXNhd2EgeW9zaGlzYXRvKSI=?= , Ian Pratt , ian.jackson@eu.citrix.com, Keir Fraser , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org This is an updated version of the following patch. No major changes. http://lists.xensource.com/archives/html/xen-devel/2009-03/msg00378.html Signed-off-by: Yoshi Tamura Signed-off-by: Yoshisato Yanagisawa --- drivers/xen/xenbus/xenbus_client.c | 3 ++- include/xen/interface/io/xenbus.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff -r 0430b1dbfb3a -r e183d2114ea1 include/xen/interface/io/xenbus.h --- a/include/xen/interface/io/xenbus.h Fri Mar 06 12:51:33 2009 +0000 +++ b/include/xen/interface/io/xenbus.h Tue Mar 10 15:40:44 2009 +0900 @@ -63,6 +63,8 @@ enum xenbus_state { */ XenbusStateReconfiguring = 7, - XenbusStateReconfigured = 8 + XenbusStateReconfigured = 8, + + XenbusStateAttached = 9 }; typedef enum xenbus_state XenbusState; diff -r 0430b1dbfb3a -r e183d2114ea1 drivers/xen/xenbus/xenbus_client.c --- a/drivers/xen/xenbus/xenbus_client.c Fri Mar 06 12:51:33 2009 +0000 +++ b/drivers/xen/xenbus/xenbus_client.c Tue Mar 10 15:40:44 2009 +0900 @@ -52,8 +52,9 @@ const char *xenbus_strstate(enum xenbus_ [ XenbusStateInitialised ] = "Initialised", [ XenbusStateConnected ] = "Connected", [ XenbusStateClosing ] = "Closing", - [ XenbusStateClosed ] = "Closed", + [ XenbusStateClosed ] = "Closed", + [ XenbusStateAttached ] = "Attached", }; return (state < ARRAY_SIZE(name)) ? name[state] : "INVALID"; }