1. 18 3月, 2019 2 次提交
  2. 21 2月, 2019 2 次提交
  3. 14 2月, 2019 1 次提交
  4. 04 2月, 2019 1 次提交
  5. 14 12月, 2018 3 次提交
    • D
      Enforce a standard header file guard symbol name · 568a4172
      Daniel P. Berrangé 提交于
      Require that all headers are guarded by a symbol named
      
        LIBVIRT_$FILENAME
      
      where $FILENAME is the uppercased filename, with all characters
      outside a-z changed into '_'.
      
      Note we do not use a leading __ because that is technically a
      namespace reserved for the toolchain.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      568a4172
    • D
      Fix many mistakes & inconsistencies in header file layout · 4cfd7090
      Daniel P. Berrangé 提交于
      This introduces a syntax-check script that validates header files use a
      common layout:
      
        /*
         ...copyright header...
         */
        <one blank line>
        #ifndef SYMBOL
        # define SYMBOL
        ....content....
        #endif /* SYMBOL */
      
      For any file ending priv.h, before the #ifndef, we will require a
      guard to prevent bogus imports:
      
        #ifndef SYMBOL_ALLOW
        # error ....
        #endif /* SYMBOL_ALLOW */
        <one blank line>
      
      The many mistakes this script identifies are then fixed.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      4cfd7090
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  6. 12 11月, 2018 1 次提交
    • E
      conf: Add new module node_device_util · f1e8d2f0
      Erik Skultety 提交于
      There's a lot of stuff going on in src/conf/nodedev_conf which is
      sometimes not directly related to config and we're not really consistent
      with putting only parser/formatter related stuff here, e.g. like we do
      for domains. So, let's start simply by adding a new module
      node_device_util containing some of the helpers. Unfortunately, even
      though these helpers tend to open a secondary driver connection and would
      be much therefore better suited as a nodedev driver module, we can't do
      that without pulling headers from the driver into conf/ and that's wrong
      because we want conf/ to stay driver-agnostic.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      f1e8d2f0
  7. 05 11月, 2018 1 次提交
    • J
      nodedev: Document the udevEventHandleThread · 29183778
      John Ferlan 提交于
      Commit cdbe1332 neglected to document the API. So let's add some
      details about the algorithm and why it was used to help future
      readers understand the issues encountered.
      
      NB: Management of the processing udev device notification is a
      delicate balance between the udev process, the scheduler, and when
      exactly the data from/for the socket is received. The balance is
      particularly important for environments when multiple devices are
      added into the system more or less simultaneously such as is done
      for mdev or SRIOV. In these cases old libudev blocking on the udev
      recv() occurs more frequently. It's expected that future devices
      will follow similar algorithms. Even though the algorithm does
      present some challenges for older OS's (such as Centos 6), trying
      to rewrite the algorithm to fit both models would be more complex
      and involve pulling the monitor object out of the private data
      lockable object and would need to be guarded by a separate lock.
      Devising such an algorithm to work around issues with older OS's
      at the expense of more modern OS algorithms in newer event processing
      code may result in unexpected issues, so the choice is to encourage
      use of newer OS's with newer udev event processing code.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      29183778
  8. 20 9月, 2018 2 次提交
  9. 12 6月, 2018 1 次提交
  10. 18 4月, 2018 2 次提交
  11. 12 4月, 2018 3 次提交
  12. 06 3月, 2018 1 次提交
  13. 01 2月, 2018 1 次提交
  14. 29 1月, 2018 5 次提交
  15. 16 1月, 2018 1 次提交
  16. 04 1月, 2018 1 次提交
  17. 24 11月, 2017 1 次提交
  18. 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
  19. 19 10月, 2017 8 次提交
  20. 17 8月, 2017 2 次提交