1. 12 1月, 2018 3 次提交
  2. 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
  3. 16 10月, 2017 1 次提交
  4. 13 6月, 2017 1 次提交
  5. 15 12月, 2016 1 次提交
  6. 14 11月, 2016 1 次提交
  7. 26 9月, 2016 1 次提交
  8. 20 9月, 2016 1 次提交
  9. 14 9月, 2016 1 次提交
  10. 07 9月, 2016 1 次提交
  11. 10 8月, 2016 1 次提交
    • E
      virt-admin: Fix the error when an invalid URI has been provided · 4914494e
      Erik Skultety 提交于
      After commit 9d479dd1 fiddled with the cmdConnect's output which used to be a
      bit more verbose prior to the mentioned commit, the program flow would result
      in a quite confusing error if an invalid URI has been provided:
      
          error: Failed to connect to the admin server
          Connected to the admin server
          error: <some error>
      
      The problem is that the commit mentioned above relied on the fact that
      connect routine always succeeds which is not true.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      4914494e
  12. 28 7月, 2016 1 次提交
  13. 19 7月, 2016 1 次提交
  14. 29 6月, 2016 1 次提交
  15. 19 5月, 2016 1 次提交
  16. 10 5月, 2016 1 次提交
  17. 03 5月, 2016 2 次提交
    • E
      virt-admin: Introduce command client-info · 9662315d
      Erik Skultety 提交于
      Wire-up the client identity getter into virt-admin tool. This patch adjusts
      man-page accordingly.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      9662315d
    • E
      virt-admin: Introduce srv-clients-list command · de770391
      Erik Skultety 提交于
      Wire-up the public client listing API. Along with this change, a private time
      simple conversion method to interpret client's timestamp obtained from server
      has been added as well. Format used to for time output is as follows:
      YYYY-mm-DD HH:MM:SS+ZZZZ.
      
      Although libvirt exposes methods time-related methods through virtime.h
      internally, it utilizes millisecond precision which we don't need in this case,
      especially when connection timestamps use precision to seconds only.
      This is just a convenience int to string conversion method.
      
      To reflect the new API, man page has been adjusted accordingly.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      de770391
  18. 02 5月, 2016 1 次提交
    • M
      tools: Fix connect command · 0c56d943
      Martin Kletzander 提交于
      The man page says: "(Re)-Connect to the hypervisor. When the shell is
      first started, this is automatically run with the URI parameter
      requested by the "-c" option on the command line."  However, if you run:
      
        virsh -c 'test://default' 'connect; uri'
      
      the output will not be 'test://default'.  That's because the 'connect'
      command does not care about any virsh-only related settings and if it is
      run without parameters, it connects with @uri == NULL.  Not only that
      doesn't comply to what the man page describes, but it also doesn't make
      sense.  It also means you aren't able to reconnect to whatever you are
      connected currently.
      
      So let's fix that in both virsh and virt-admin add a test case for it.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      0c56d943
  19. 18 4月, 2016 1 次提交
  20. 15 4月, 2016 1 次提交
  21. 06 4月, 2016 1 次提交
  22. 11 3月, 2016 2 次提交
  23. 04 3月, 2016 1 次提交
  24. 17 2月, 2016 1 次提交
  25. 21 12月, 2015 1 次提交
    • E
      Revert "admin: Rename virAdmConnect to virAdmDaemon" · 3245e178
      Erik Skultety 提交于
      Commmit df8192aa introduced admin related rename and some minor
      (caused by automated approach, aka sed) and some more severe isues along with
      it. First reason to revert is the inconsistency with libvirt library.
      Although we deal with the daemon directly rather than with a specific
      hypervisor, we still do have a connection. That being said, contributors might
      get under the impression that AdmDaemonNew would spawn/start a new daemon
      (since it's admin API, why not...), or AdmDaemonClose would do the exact
      opposite or they might expect DaemonIsAlive report overall status of the daemon
      which definitely isn't the case.
      The second reason to revert this patch is renaming virt-admin client. The
      client tool does not necessarily have to reflect the names of the API's it's
      using in his internals. An example would be 's/vshAdmConnect/vshAdmDaemon'
      where noone can be certain of what the latter function really does. The former
      is quite expressive about some connection magic it performs, but the latter does
      not say anything, especially when vshAdmReconnect and vshAdmDisconnect were
      left untouched.
      3245e178
  26. 01 12月, 2015 1 次提交
    • M
      admin: Rename virAdmConnect to virAdmDaemon · df8192aa
      Martin Kletzander 提交于
      virAdmConnect was named after virConnect, but after some discussions,
      most of the APIs called will be working with remote daemon and starting
      them virAdmDaemon will make more sense.  Only possibly controversal name
      is CloseCallback (de)registration, and connecting to the daemon (which
      will still be Open/Close), but even this makes sense if one thinks about
      the daemon being opened and closed, e.g. as file, etc.
      
      This way all the APIs working with the daemon will start with
      virAdmDaemon prefix, they will accept virAdmDaemonPtr as first parameter
      and that will better suit with other namings as well (virDomain*,
      virAdmServer*, etc.).
      
      Because in virt-admin, the connection name does not refer to a struct
      that would have a connect in its name, also adjust 'connname' in
      clients.  And because it is not used anywhere in the vsh code, move it
      from there into each client.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      df8192aa
  27. 30 11月, 2015 5 次提交
    • E
      admin: Introduce virAdmConnectGetLibVersion · a474371f
      Erik Skultety 提交于
      Introduce a new API to get libvirt version. It is worth noting, that
      libvirt-admin and libvirt share the same version number. Unfortunately,
      our existing API isn't generic enough to be used with virAdmConnectPtr
      as well. Also this patch wires up this API to the virt-admin client
      as a generic cmdVersion command.
      a474371f
    • E
      admin: Add support for connection close callbacks · 6dd7e42d
      Erik Skultety 提交于
      As we need a client disconnect handler, we also need a mechanism to register
      such handlers for a client. This patch introduced both the close callbacks and
      also the client vshAdmCatchDisconnect handler to be registered with it. By
      registering the handler we still need to make sure the client can react to
      daemon's events like disconnect or keepalive, so asynchronous I/O event polling
      is necessary to be enabled too.
      6dd7e42d
    • E
      admin: Add URI support and introduce virAdmGetDefaultURI · dbecb87f
      Erik Skultety 提交于
      Since virt-admin should be able to connect to various admin servers
      on hosted different daemons, we need to provide URI support to
      libvirt-admin.
      dbecb87f
    • E
      admin: Introduce virAdmConnectIsAlive · 47a089f0
      Erik Skultety 提交于
      Since most of our APIs rely on an acive functional connection to a daemon and
      we have such a mechanism in libvirt already, there's need to have such a way in
      libvirt-admin as well. By introducing a new public API, this patch provides
      support to check for an active connection.
      47a089f0
    • E
      virt-admin: Introduce first working skeleton · 64095787
      Erik Skultety 提交于
      This patch introduces virt-admin client which is based on virsh client,
      but had to reimplement several methods to meet virt-admin specific needs
      or remove unnecessary virsh specific logic.
      64095787