Re: [libvirt] [PATCH 1/4] xml: Add element to allow short description of domains</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=libvir-list@redhat.com&q=from:%22Eric+Blake%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Eric Blake</span></span></a></span> <span class="date"><a href="/search?l=libvir-list@redhat.com&q=date:20120127" rel="nofollow">Fri, 27 Jan 2012 20:09:41 -0800</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>On 01/27/2012 10:22 AM, 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. > > *include/libvirt/libvirt.h.in > - add macro specifying maximal note length > *docs/formatdomain.html.in > *docs/schemas/domaincommon.rng > - add schema grammar for the new element and documentation > > *src/conf/domain_conf.c > *src/conf/domain_conf.h > - add field to hold the new attribute > - add code to parse and create XML with the new attribute > --- > This patch is basicaly identical with those in previous versions. I just > added a macro to set the maximal length of the <title> element to ease > future possible changes.</pre><pre> And yet length is the sticking point :) > +++ b/tests/qemuxml2argvdata/qemuxml2argv-minimal.xml > @@ -1,6 +1,11 @@ > <domain type='qemu'> > <name>QEMUGuest1</name> > <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid> > + <description> > + A test of qemu&apos;s minimal configuration. > + This test also tests the description and title elements. > + </description> > + <title>A description of the test machine.</title> Thanks for adding the tests. -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library <a rel="nofollow" href="http://libvirt.org">http://libvirt.org</a> </pre> <p><strong><a href="msg51223/signature.asc" ><img src="../attachment.png" alt="Attachment:" width=27 height=28></a> <a href="msg51223/signature.asc" >signature.asc</a></strong><br> <em>Description:</em> OpenPGP digital signature</p> <pre>-- libvir-list mailing list libvir-list@redhat.com <a rel="nofollow" href="https://www.redhat.com/mailman/listinfo/libvir-list">https://www.redhat.com/mailman/listinfo/libvir-list</a></pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg51205.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#51223">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#51223">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg51166.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg51162.html">[libvirt] [PATCH 0/4] API for modification of domain me...</a></span> <span class="sender italic">Peter Krempa</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg51163.html">[libvirt] [PATCH 4/4] qemu: Add support for virDom...</a></span> <span class="sender italic">Peter Krempa</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg51222.html">Re: [libvirt] [PATCH 4/4] qemu: Add support fo...</a></span> <span class="sender italic">Eric Blake</span></li> </ul></li> <li class="icons-email"><span class="subject"><a href="msg51164.html">[libvirt] [PATCH 2/4] API: Add api to set and get ...</a></span> <span class="sender italic">Peter Krempa</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg51220.html">Re: [libvirt] [PATCH 2/4] API: Add api to set ...</a></span> <span class="sender italic">Eric Blake</span></li> </ul></li> <li class="icons-email"><span class="subject"><a href="msg51165.html">[libvirt] [PATCH 1/4] xml: Add element <title&g...</a></span> <span class="sender italic">Peter Krempa</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg51167.html">Re: [libvirt] [PATCH 1/4] xml: Add element <...</a></span> <span class="sender italic">Daniel P. Berrange</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg51185.html">Re: [libvirt] [PATCH 1/4] xml: Add element...</a></span> <span class="sender italic">Dave Allan</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg51205.html">Re: [libvirt] [PATCH 1/4] xml: Add ele...</a></span> <span class="sender italic">Peter Krempa</span></li> </ul></li> </ul></li> <li class="icons-email tSliceCur"><span class="subject">Re: [libvirt] [PATCH 1/4] xml: Add element <...</span> <span class="sender italic">Eric Blake</span></li> </ul></li> <li class="icons-email"><span class="subject"><a href="msg51166.html">[libvirt] [PATCH 3/4] virsh: Add support for modif...</a></span> <span class="sender italic">Peter Krempa</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg51221.html">Re: [libvirt] [PATCH 3/4] virsh: Add support f...</a></span> <span class="sender italic">Eric Blake</span></li> </ul> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Re: [libvirt] [PATCH 1/4] xml: Add element <title> to allow short description of domains"> <input type="hidden" name="msgid" value="4F237382.6090001@redhat.com"> <input type="hidden" name="relpath" value="libvir-list@redhat.com/msg51223.html"> <input type="submit" value=" Eric Blake "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="libvir-list@redhat.com"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search libvir-list"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/libvir-list@redhat.com/">libvir-list - all messages</a></li> <li class="icons-about"><a href="/libvir-list@redhat.com/info.html">libvir-list - about the list</a></li> <li class="icons-expand"><a href="/search?l=libvir-list@redhat.com&q=subject:%22Re%5C%3A+%5C%5Blibvirt%5C%5D+%5C%5BPATCH+1%5C%2F4%5C%5D+xml%5C%3A+Add+element+%3Ctitle%3E+to+allow+short+description+of+domains%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg51205.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg51166.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">4F237382.6090001@redhat.com</li> </ul> </div> </body> </html>