1. 27 7月, 2019 1 次提交
    • E
      backup: Introduce virDomainCheckpoint APIs · 0d44788f
      Eric Blake 提交于
      Introduce a bunch of new public APIs related to backup checkpoints.
      Checkpoints are modeled heavily after virDomainSnapshotPtr (both
      represent a point in time of the guest), although a snapshot exists
      with the intent of rolling back to that state, while a checkpoint
      exists to make it possible to create an incremental backup at a later
      time.  We may have a future hypervisor that can completely manage
      checkpoints without libvirt metadata, but the first two planned
      hypervisors (qemu and test) both always use libvirt for tracking
      metadata relations between checkpoints, so for now, I've deferred
      the counterpart of virDomainSnapshotHasMetadata for a separate
      API addition at a later date if there is ever a need for it.
      
      Note that until we allow snapshots and checkpoints to exist
      simultaneously on the same domain (although the actual prevention of
      this will be in a separate patch for the sake of an easier revert down
      the road), that it is not possible to branch out to create more than
      one checkpoint child to a given parent, although it may become
      possible later when we revert to a snapshot that coincides with a
      checkpoint.  This also means that for now, the decision of which
      checkpoint becomes the parent of a newly created one is the only
      checkpoint with no child (so while there are APIs for dealing with a
      current snapshot, we do not need those for checkpoints).  We may end
      up exposing a notion of a current checkpoint later, but it's easier to
      add stuff when proven needed than to blindly support it now and wish
      we hadn't exposed it.
      
      The following map shows the API relations to snapshots, with new APIs
      on the right:
      
      Operate on a domain object to create/redefine a child:
      virDomainSnapshotCreateXML          virDomainCheckpointCreateXML
      
      Operate on a child object for lifetime management:
      virDomainSnapshotDelete             virDomainCheckpointDelete
      virDomainSnapshotFree               virDomainCheckpointFree
      virDomainSnapshotRef                virDomainCheckpointRef
      
      Operate on a child object to learn more about it:
      virDomainSnapshotGetXMLDesc         virDomainCheckpointGetXMLDesc
      virDomainSnapshotGetConnect         virDomainCheckpointGetConnect
      virDomainSnapshotGetDomain          virDomainCheckpointGetDomain
      virDomainSnapshotGetName            virDomainCheckpiontGetName
      virDomainSnapshotGetParent          virDomainCheckpiontGetParent
      virDomainSnapshotHasMetadata        (deferred for later)
      virDomainSnapshotIsCurrent          (no counterpart, see note above)
      
      Operate on a domain object to list all children:
      virDomainSnapshotNum                (no counterparts, these are the old
      virDomainSnapshotListNames           racy interfaces)
      virDomainSnapshotListAllSnapshots   virDomainListAllCheckpoints
      
      Operate on a child object to list descendents:
      virDomainSnapshotNumChildren        (no counterparts, these are the old
      virDomainSnapshotListChildrenNames   racy interfaces)
      virDomainSnapshotListAllChildren    virDomainCheckpointListAllChildren
      
      Operate on a domain to locate a particular child:
      virDomainSnapshotLookupByName       virDomainCheckpointLookupByName
      virDomainSnapshotCurrent            (no counterpart, see note above)
      virDomainHasCurrentSnapshot         (no counterpart, old racy interface)
      
      Operate on a snapshot to roll back to earlier state:
      virDomainSnapshotRevert             (no counterpart, instead checkpoints
                                           are used in incremental backups via
      				     XML to virDomainBackupBegin)
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      0d44788f
  2. 17 7月, 2019 1 次提交
  3. 10 7月, 2019 1 次提交
  4. 20 6月, 2019 1 次提交
  5. 13 5月, 2019 3 次提交
  6. 11 4月, 2019 2 次提交
  7. 05 4月, 2019 1 次提交
    • C
      docs: Remove search.php and all references · fb0d6049
      Cole Robinson 提交于
      libvirt.org/search.php drops into some kind of screen which I guess
      is supposed to show a search bar with options, but presently for me
      renders as nothing but the following text:
      
      Search the documentation on Libvirt.org
      
      The search service indexes the libvirt APIs and documentation as well as the libvir-list@redhat.com mailing-list archives. To use it simply provide a set of keywords:
      
      The main page search bar now redirects to google, this page is broken,
      I say we just remove it and move on.
      Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      fb0d6049
  8. 24 8月, 2018 1 次提交
  9. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  10. 07 8月, 2017 1 次提交
  11. 03 8月, 2017 3 次提交
    • J
      docs: Fix syntax-check error · 89475046
      John Ferlan 提交于
      Commit id '94d2d642' caused a syntax-error check to fail:
      
      docs/Makefile.am:276:	$(AM_V_GEN)sed -e '/<span id="php_placeholder"><\/span>/r '"$(srcdir)/$@.code.in" \
      maint.mk: Wrap long lines in Makefiles
      cfg.mk:721: recipe for target 'sc_prohibit_long_lines' failed
      make: *** [sc_prohibit_long_lines] Error 1
      make: *** Waiting for unfinished jobs....
      
      Altered the line to put another line wrap between sed and -e
      89475046
    • D
      docs: make xmllint & xsltproc compulsory · 94d2d642
      Daniel P. Berrange 提交于
      We already require libxml to be installed, so it is not unreasonable
      to require xmllint and xsltproc to be installed too - any platform
      with the former will have the latter too.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      94d2d642
    • D
      docs: drop XHTML 1.0 validation of website · f802c9de
      Daniel P. Berrange 提交于
      The HTML pages are currently validated against an XHTML 1.0 DTD.
      This makes it impossible to take advantage of features that are
      introduced in HTML 5, because they'll fail validation.
      
      There is intentionally no DTD defined for HTML 5, so there's no
      alternative to XHTML 1.0 DTD that we could switch to. The only
      options are to stick with XHTML 1.0 forever, or drop the DTD
      validation, and we pick the latter.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      f802c9de
  12. 28 7月, 2017 1 次提交
  13. 26 7月, 2017 1 次提交
  14. 26 6月, 2017 1 次提交
    • A
      HACKING: Drop from the git repository · d6725518
      Andrea Bolognani 提交于
      Despite being a generated file, HACKING has been tracked in
      the git repository along with actual source files. As far as
      I'm aware, it's the only generated file for which that happens.
      
      Times and times again, people[1] have committed changes to
      the source file without refreshing the generated copy at the
      same time.
      
      The rationale for tracking the generated file is to help out
      people who just cloned the git repository looking to contribue;
      however, README-hacking already contains enough information to
      get perspective contributors to a place where they can simply
      look at docs/hacking.html instead.
      
      [1] Mostly me, to be honest
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      d6725518
  15. 12 5月, 2017 1 次提交
  16. 05 4月, 2017 1 次提交
  17. 11 1月, 2017 1 次提交
    • A
      NEWS: Improve building pipeline · be36ea4b
      Andrea Bolognani 提交于
      Currently, building the NEWS file involves using a XSLT stylesheet
      to extract information from the same HTML file that's used on the
      libvirt website.
      
      The process works, but it's quite fiddly in that it requires the
      source HTML to be formatted in a very precise way, and a single
      missing newline can mess up the resulting plain text considerably.
      
      Moreover, the XSLT stylesheet itself encodes a lot of the details
      of converting to plain text in a way that's not necessarily easy
      to understand, tweak or fix.
      
      To improve the process, move all existing entries to a new XML
      file that contains exactly the information we care about in a
      simple structured format, and start generating both the HTML and
      plain text versions of the release notes using XSLT stylesheets
      that can now afford to be almost trivial.
      be36ea4b
  18. 07 12月, 2016 1 次提交
    • J
      docs: Rebuild apihtml docs when source changes · 55bddd5e
      John Ferlan 提交于
      When changing one of the src/libvirt-*.c files to alter the docs, the
      adjusted files weren't being built.  Added them into APIBUILD_STAMP and
      then added that to the html/index.html rule which is used for the
      $(apihtml_generated) generated rule.
      
      Also, for clean we can remove the html/*.html files
      55bddd5e
  19. 11 11月, 2016 7 次提交
  20. 06 10月, 2016 2 次提交
  21. 08 8月, 2016 1 次提交
    • M
      docs: Distribute subsite.xsl · e396de03
      Michal Privoznik 提交于
      So, I've ran into very interesting problem lately. When doing the
      following, I've encountered an error:
      
        libvirt.git $ make dist && tar -xJf libvirt-2.2.0.tar.xz && \
                      cd libvirt-2.2.0 && ./configure && \
                      rm docs/formatdomain.html && make -C docs
      
        make: Entering directory 'docs'
        make: *** No rule to make target 'formatdomain.html', needed by 'web'.  Stop.
        make: Leaving directory 'docs'
      
      I had no idea what was going on, so I've nailed down the commit
      that "broke it" via running git-bisect. It was this one:
      7659bd92. But that shed no more light until I realized
      that the commit might actually just exposed a problem we had. And
      guess what - I've nailed it down. Of course we are not
      distributing subsite.xsl that's why make prints error message.
      Very misleading one I must say.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      e396de03
  22. 26 6月, 2016 1 次提交
  23. 26 4月, 2016 1 次提交
    • A
      docs: Pass relative paths to apibuild.py · 22a592a4
      Andrea Bolognani 提交于
      Since commit d195cffa, both $(srcdir) and $(abs_builddir)
      are passed to the apibuild.py script; however, since the
      former is a relative path and the latter an absolute one, the
      script might not be able to detect whether they point to the
      same location.
      
      Pass both as relative paths to avoid the issue.
      22a592a4
  24. 25 4月, 2016 1 次提交
    • P
      docs: apibuild: Fix VPATH build · d195cffa
      Peter Krempa 提交于
      libvirt-common.h is generated into builddir/include/libvirt. apibuild.py
      only operated on srcdir/inlcude/libvirt. With VPATH build
      srcdir/docs/libvirt-libvirt-common.html would not get generated and make
      RPM failed.
      d195cffa
  25. 21 4月, 2016 1 次提交
    • P
      api: Generate docs for libvirt-common.h · 99283874
      Peter Krempa 提交于
      Since commit f5d9c5d0 moved the virTypedParam stuff into
      libvirt-common we did not generate any docs for them and neither did we
      populate them into libvirt-api.xml. This broke the sanity check in
      libvirt python. Fix it by generating docs for libvirt-common.h too.
      99283874
  26. 20 4月, 2016 2 次提交
  27. 11 3月, 2016 1 次提交