search for: xml_error

Displaying 15 results from an estimated 15 matches for "xml_error".

Did you mean: ml_error
2018 Nov 02
0
[PATCH v3 2/4] common/utils: Move libxml2 writer macros to a common header file.
...acros make it easier to write XML. To use them correctly + * you must be aware of these assumptions: + * + * =over 4 + * + * =item * + * + * The C<xmlTextWriterPtr> is called C<xo>. It is used implicitly + * by all the macros. + * + * =item * + * + * On failure, a function called C<xml_error> is called which you must + * define (usually as a macro). You must use C<CLEANUP_*> macros in + * your functions if you want correct cleanup of local variables along + * the error path. + * + * =item * + * + * All the "bad" casting is hidden inside the macros. + * + * =back + *...
2017 Jan 25
4
why "DEFAULT" ?
Hello, Rsync. --log-file-format="|%i|%B|%U|%G|%l|[%M]|// %n" After backup log to get this line: 2017/01/25 17:30:09 [8781] |hf |rw-r--r--|500|DEFAULT|83875|[2014/02/10-18:22:09]|// xml_error.txt groupID = DEFAULT The server looks like this: ls -lan | grep xml_error.txt -rw-r--r-- 1 500 1002 83875 Фев 10 2014 xml_error.txt groupID = 1002 The documentation is written: https://download.samba.org/pub/rsync/rsyncd.conf.html %G the gid of the file (decimal) or "DEFAULT"...
2018 Oct 04
0
[PATCH v2 2/4] common/utils: Move libxml2 writer macros to a common header file.
...acros make it easier to write XML. To use them correctly + * you must be aware of these assumptions: + * + * =over 4 + * + * =item * + * + * The C<xmlTextWriterPtr> is called C<xo>. It is used implicitly + * by all the macros. + * + * =item * + * + * On failure, a function called C<xml_error> is called which you must + * define (usually as a macro). You must use C<CLEANUP_*> macros in + * your functions if you want correct cleanup of local variables along + * the error path. + * + * =item * + * + * All the "bad" casting is hidden inside the macros. + * + * =back + *...
2018 Nov 02
7
[PATCH v3 0/4] common/utils: Move libxml2 writer macros to a common header file.
v1 was here: https://www.redhat.com/archives/libguestfs/2018-October/msg00047.html v2 was here: https://www.redhat.com/archives/libguestfs/2018-October/msg00051.html v3: - Back to using string/string_format and attribute/attribute_format. - Add both single_element and single_element_format. - Rebased and retested. Rich.
2014 Jan 17
0
[PATCH INCOMPLETE] launch: libvirt: Use C macros to simplify XML generation.
...OK provided you + * always use CLEANUP_* macros. + * + * - All the "bad" casting is hidden inside the macros. + */ + +/* <element */ +#define start_element(element) \ + if (xmlTextWriterStartElement (xo, BAD_CAST (element)) == -1) { \ + xml_error ("xmlTextWriterStartElement"); \ + return -1; \ + } \ + do + +/* finish current </element> */ +#define end_element()...
2018 Oct 04
2
[PATCH 0/2] Use common macros to help with libxml2 writer.
Consolidate and extend the use of funky start_element() etc macros. Rich.
2017 Jan 25
0
why "DEFAULT" ?
...D as it was told to do. On 01/25/2017 10:22 AM, Дугин Сергей wrote: > Hello, Rsync. > > --log-file-format="|%i|%B|%U|%G|%l|[%M]|// %n" > > After backup log to get this line: > 2017/01/25 17:30:09 [8781] |hf |rw-r--r--|500|DEFAULT|83875|[2014/02/10-18:22:09]|// xml_error.txt > > groupID = DEFAULT > > > > The server looks like this: > ls -lan | grep xml_error.txt > -rw-r--r-- 1 500 1002 83875 Фев 10 2014 xml_error.txt > > groupID = 1002 > > The documentation is written: > https://download.samba.org/pub/rsync/rsyncd....
2018 Oct 04
6
[PATCH v2 0/4] common/utils: Move libxml2 writer macros to a common header file.
v1 was here: https://www.redhat.com/archives/libguestfs/2018-October/msg00047.html However it was broken in a few ways. First of all the documentation was broken because "/**" enhanced comments were not permitted on macros. This is fixed in the new 1/4 patch. Secondly we didn't use single_element() everywhere possible, which is fixed in the new 4/4 patch. Lastly I've
2019 Jul 09
7
[PATCH 0/5] Split virt-p2v in own repository
Hi, as it was already discussed on this list, here it is my attempt in splitting virt-p2v in an own repository. Sadly there are things that must be copied from libguestfs, as it cannot be avoided. The approach taken was to run a script (will send separately) to just get the "p2v" subdirectory with its history as own repository, and then add in few followup commits all the bits needed
2018 Oct 04
0
[PATCH v2 3/4] inspector: Use libxml writer macros.
...rite a string encoded as base64: + * + * base64 (data, size); + */ +#define base64(data, size) \ + do { \ + if (xmlTextWriterWriteBase64 (xo, (data), 0, (size)) == -1) { \ + xml_error ("xmlTextWriterWriteBase64"); \ + } \ + } while (0) + /** * To define a comment in the XML, use: * diff --git a/inspector/inspector.c b/inspector/inspector.c index 9be8f5110..cc5b49545 100...
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...oto cleanup; } @@ -912,30 +912,30 @@ static int construct_libvirt_xml_appliance (guestfs_h *g, const struct libvirt_x */ /* <element */ -#define start_element(element) \ - if (xmlTextWriterStartElement (xo, BAD_CAST (element)) == -1) { \ - xml_error ("xmlTextWriterStartElement"); \ - return -1; \ - } \ +#define start_element(element) \ + if (xmlTextWriterStartElement (xo, BAD_CAST...
2015 Oct 05
3
[PATCH 1/2] Change 'fprintf (stdout,...)' -> printf.
Result of earlier copy and paste. --- align/scan.c | 35 ++++++++++--------- cat/cat.c | 39 +++++++++++---------- cat/filesystems.c | 69 +++++++++++++++++++------------------- cat/log.c | 35 ++++++++++--------- cat/ls.c | 61 +++++++++++++++++---------------- df/main.c | 43 ++++++++++++------------ diff/diff.c | 67
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...title = hash[:title] || "Internal Server Error" - status = hash[:status] || :internal_server_error - respond_to do |format| - format.html { html_error_page(title, msg) } - format.json { render :json => json_error_hash(msg, status) } - format.xml { render :xml => xml_errors(msg), :status => status } - end - end - - def html_error_page(title, msg) - @title = title - @errmsg = msg - @ajax = params[:ajax] - @nolayout = params[:nolayout] - if @layout - render :layout => @layout - elsif @ajax - render :template => 'layouts/pop...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is time to remove it from libguestfs. [1] https://github.com/libguestfs/virt-p2v [2] http://download.libguestfs.org/virt-p2v/ Pino Toscano (2): Remove virt-p2v Remove remaining virt-p2v bits .gitignore | 4 - Makefile.am | 7 +- bash/Makefile.am