1. 10 1月, 2017 9 次提交
    • J
      storage: Add overwrite flag checking for logical pool · f573f84e
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1373711
      
      Add support and documentation for the [NO_]OVERWRITE flags for the
      logical backend.
      
      Update virsh.pod with a description of the process for usage of
      the flags and building of the pool's volume group.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      f573f84e
    • J
      storage: Move and rename disk backend label checking · a48c674f
      John Ferlan 提交于
      Rather than have the Disk code having to use PARTED to determine if
      there's something on the device, let's use the virStorageBackendDeviceProbe.
      and only fallback to the PARTED probing if the BLKID code isn't built in.
      
      This will also provide a mechanism for the other current caller (File
      System Backend) to utilize a PARTED parsing algorithm in the event that
      BLKID isn't built in to at least see if *something* exists on the disk
      before blindly trying to use. The PARTED error checking will not find
      file system types, but if there is a partition table set on the device,
      it will at least cause a failure.
      
      Move virStorageBackendDiskValidLabel and virStorageBackendDiskFindLabel
      to storage_backend and rename/rework the code to fit the new model.
      
      Update the virsh.pod description to provide a more generic description
      of the process since we could now use either blkid or parted to find
      data on the target device.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      a48c674f
    • J
      storage: Fix implementation of no-overwrite for file system backend · f23d4bbc
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1363586
      
      Commit id '27758859' introduced the "NO_OVERWRITE" flag check for
      file system backends; however, the implementation, documentation,
      and algorithm was inconsistent. For the "flag" description for the
      API the flag was described as "Do not overwrite existing pool";
      however, within the storage backend code the flag is described
      as "it probes to determine if filesystem already exists on the
      target device, renurning an error if exists".
      
      The code itself was implemented using the paradigm to set up the
      superblock probe by creating a filter that would cause the code
      to only search for the provided format type. If that type wasn't
      found, then the algorithm would return success allowing the caller
      to format the device. If the format type already existed on the
      device, then the code would fail indicating that the a filesystem
      of the same type existed on the device.
      
      The result is that if someone had a file system of one type on the
      device, it was possible to overwrite it if a different format type
      was specified in updated XML effectively trashing whatever was on
      the device already.
      
      This patch alters what NO_OVERWRITE does for a file system backend
      to be more realistic and consistent with what should be expected when
      the caller requests to not overwrite the data on the disk.
      
      Rather than filter results based on the expected format type, the
      code will allow success/failure be determined solely on whether the
      blkid_do_probe calls finds some known format on the device. This
      adjustment also allows removal of the virStoragePoolProbeResult
      enum that was under utilized.
      
      If it does find a formatted file system different errors will be
      generated indicating a file system of a specific type already exists
      or a file system of some other type already exists.
      
      In the original virsh support commit id 'ddcd5674', the description
      for '--no-overwrite' within the 'pool-build' command help output
      has an ambiguous "of this type" included in the short description.
      Compared to the longer description within the "Build a given pool."
      section of the virsh.pod file it's more apparent that the meaning
      of this flag would cause failure if a probe of the target already
      has a filesystem.
      
      So this patch also modifies the short description to just be the
      antecedent of the 'overwrite' flag, which matches the API description.
      This patch also modifies the grammar in virsh.pod for no-overwrite
      as well as reworking the paragraph formats to make it easier to read.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      f23d4bbc
    • L
      docs: fix list of domain states in virsh manpage · 24d4a0a1
      Laine Stump 提交于
      The virsh manpage lists "shutdown" and "dying" as two of the possible
      domain states that could be listed in the output of the "virsh list"
      command. However, a domain that is being shutdown will be listed as
      "in shutdown", and the "dying" state doesn't even exist (and never
      has, as far as I can tell from looking through git history - it was
      shown in the original import of the virsh.pod file in 2006; there was
      no VIR_DOMAIN_DYING state then, there wasn't one when those lines of
      virsh.pod were tweaked in 2008, and there still isn't one
      today. Apparently it was just something that sounded like a good idea
      to someone at some time, but was never implemented...)
      
      Resolves: https://bugzilla.redhat.com/1408778
      24d4a0a1
    • N
      perf: Add cache_l1d perf event support · ae16c95f
      Nitesh Konkar 提交于
      This patch adds support and documentation for
      a generalized hardware cache event called cache_l1d
      perf event.
      Signed-off-by: NNitesh Konkar <nitkon12@linux.vnet.ibm.com>
      ae16c95f
    • N
      docs: Reword virsh manpage for --uuid --name --table options · 0977ada8
      Nitesh Konkar 提交于
      The virsh manpage lists options --uuid and --name as
      mutually exclusive along option --table when actually
      the option --table is mutually exclusive and can't go
      with options --uuid and/or --name. This patch rewords the
      virsh manpage to state the correct meaning.
      Signed-off-by: NNitesh Konkar <nitkon12@linux.vnet.ibm.com>
      0977ada8
    • N
      virsh: Display perf enabled/disabled message for set operations · 0289b8b2
      Nitesh Konkar 提交于
      When setting perf events, the enabled/disabled perf events are not
      listed. Since we know which events were changed it's possible to
      print out the values on successful set, such as :
      
          virsh perf Domain --enable instructions --disable cache_misses
          instructions   : enabled
          cache_misses   : disabled
      
      Created a helper to print the messages - use the vshPrintExtra to
      adhere to the --quiet|-q option being set by some script. This will
      cause the get code to print nothing, but will return success/failure.
      Signed-off-by: NNitesh Konkar <nitkon12@linux.vnet.ibm.com>
      0289b8b2
    • N
      virsh: Fix English grammar in the virsh perf manpage · 779073c5
      Nitesh Konkar 提交于
      779073c5
    • D
      secret: add support for value change events · 42241208
      Daniel P. Berrange 提交于
      Emit an event whenever a secret value changes
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      42241208
  2. 09 1月, 2017 2 次提交
  3. 07 1月, 2017 1 次提交
  4. 21 12月, 2016 1 次提交
    • J
      virsh: Allow display of the physical volume size · f62e418c
      John Ferlan 提交于
      Add a new qualifier '--physical' to the 'vol-info' command in order to
      dispaly the physical size of the volume. The size can differ from the
      allocation value depending on the volume file time. In particular, qcow2
      volumes will have a physical value larger than allocation. This also occurs
      for sparse files, although for those the capacity is the largest size;
      whereas, for qcow2 capacity is the logical size.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      f62e418c
  5. 16 12月, 2016 4 次提交
  6. 15 12月, 2016 1 次提交
  7. 13 12月, 2016 1 次提交
  8. 09 12月, 2016 3 次提交
  9. 07 12月, 2016 1 次提交
  10. 06 12月, 2016 5 次提交
  11. 02 12月, 2016 1 次提交
  12. 25 11月, 2016 1 次提交
    • M
      virstring: Unify string list function names · c2a5a4e7
      Michal Privoznik 提交于
      We have couple of functions that operate over NULL terminated
      lits of strings. However, our naming sucks:
      
      virStringJoin
      virStringFreeList
      virStringFreeListCount
      virStringArrayHasString
      virStringGetFirstWithPrefix
      
      We can do better:
      
      virStringListJoin
      virStringListFree
      virStringListFreeCount
      virStringListHasString
      virStringListGetFirstWithPrefix
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      c2a5a4e7
  13. 24 11月, 2016 1 次提交
  14. 23 11月, 2016 3 次提交
  15. 14 11月, 2016 3 次提交
  16. 11 11月, 2016 1 次提交
  17. 07 11月, 2016 1 次提交
  18. 04 11月, 2016 1 次提交