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-api

Re: [Xen-API] linefeeds in state.db

To: George Shuklin <george.shuklin@xxxxxxxxx>
Subject: Re: [Xen-API] linefeeds in state.db
From: Mike McClurg <mike.mcclurg@xxxxxxxxxx>
Date: Tue, 27 Sep 2011 13:50:16 +0100
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 27 Sep 2011 05:50:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1317121315.2068.0.camel@mabase>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <1317121315.2068.0.camel@mabase>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
On 27/09/11 12:01, George Shuklin wrote:
> Good day.
>
> May be I'm saying strange thing, but current state.db for xapi not very
> suited for editing. I know at least two well-known cases, when editing
> by hand is proposed as 'quick fix' and I have few own cases when vi
> state.db was useful.
>
> But now state.db is one VERY long line, so editing is very
> discomforting. I use tidy (with -xml option) to clean up text, edit it
> and put back as state.db.
>
> I thinking: may be few linefeeds in state.db will improve situation? 
>

Well, we really don't want people to edit state.db by hand, so I don't
think it will be a priority to make it more human-readable. Whenever we
need to hand-edit a state.db, we just run it through 'xmllint --format'
first, which seems to work well.

Mike

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>