[libvirt] [PATCH 1/4] xml: Add element <title> to allow short description of domains
Daniel P. Berrange
berrange at redhat.com
Fri Jan 27 17:31:20 UTC 2012
On Fri, Jan 27, 2012 at 06:22:16PM +0100, Peter Krempa wrote:
> This patch adds a new element <title> to the domain XML. This attribute
> can hold a short title defined by the user to ease the identification of
> domains. The title is limited to 40 bytes and can't contain newlines.
I'm not convinced that putting a hard limit on the title length
is a good idea. That feels like a limitation just to suit the
display used in virsh. If an app only has space to show 40
characters, then it is free to truncate and append '...'
Also note that 40 bytes may be equivalent to as few as 12-15
printable characters in UTF-8 with non-western languages
since single characters can take 3 bytes or even more
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list