1. 13 11月, 2019 1 次提交
  2. 12 11月, 2019 1 次提交
  3. 21 10月, 2019 1 次提交
  4. 17 10月, 2019 1 次提交
    • C
      storage: fix build with musl libc · 8e0c590c
      Carlos Santos 提交于
      On musl _PATH_MOUNTED is defined in paths.h, not in mntent.h, which
      causes compilation errors:
      
      storage/storage_backend_fs.c: In function 'virStorageBackendFileSystemIsMounted':
      storage/storage_backend_fs.c:255:23: error: '_PATH_MOUNTED' undeclared (first use in this function); did you mean 'XPATH_POINT'?
           if ((mtab = fopen(_PATH_MOUNTED, "r")) == NULL) {
                             ^~~~~~~~~~~~~
                             XPATH_POINT
      
      Fix this including paths.h if _PATH_MOUNTED is still not defined after
      including mntent.h. This also works with glibc and uClibc-ng.
      Signed-off-by: NCarlos Santos <casantos@redhat.com>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      8e0c590c
  5. 16 10月, 2019 3 次提交
  6. 15 10月, 2019 1 次提交
  7. 23 8月, 2019 1 次提交
  8. 21 8月, 2019 5 次提交
  9. 12 4月, 2019 1 次提交
  10. 13 2月, 2019 1 次提交
  11. 12 2月, 2019 2 次提交
  12. 31 1月, 2019 1 次提交
  13. 30 1月, 2019 1 次提交
    • J
      storage: Add infrastructure to manage XML namespace options · 7a227688
      John Ferlan 提交于
      Introduce the virStoragePoolFSMountOptionsDef to be used to
      manage the Storage Pool XML Namespace for mount options.
      
      Using a new virStorageBackendNamespaceInit function, set the
      virStoragePoolXMLNamespace into the _virStoragePoolOptions when
      the storage backend is loaded.
      
      Modify the storagepool.rng to allow for the usage of a different
      XML namespace to parse the fs_mount_opts to be included with
      the fs and netfs storage pool definitions.
      
      Modify the storagepoolxml2xmltest to utilize a properly modified
      XML file to parse and format the namespace for a netfs storage pool.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      7a227688
  14. 14 12月, 2018 2 次提交
    • J
      storage: Fix build issue with MOUNT and VGCHANGE commands · e6f53e7a
      John Ferlan 提交于
      Turns out there some build platforms that must not define MOUNT
      or VGCHANGE in config.h... So moving the commands from the storage
      backend specific module into a common storage_util module causes
      issues for those platforms.
      
      So instead of assuming they are there, let's just pass the command
      string to the storage util API's from the storage backend specific
      code (as would have been successful before).  Also modify the test
      to determine whether the MOUNT and/or VGCHANGE doesn't exist and
      just define it to (for example) what Fedora has for the path. Could
      have just used "mount" and "vgchange" in the call, but that defeats
      the purpose of adding the call to virTestClearCommandPath.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      e6f53e7a
    • 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
  15. 13 12月, 2018 3 次提交
  16. 20 9月, 2018 2 次提交
  17. 03 5月, 2018 3 次提交
  18. 09 2月, 2018 2 次提交
  19. 01 2月, 2018 1 次提交
  20. 06 10月, 2017 1 次提交
  21. 11 7月, 2017 1 次提交
  22. 04 4月, 2017 1 次提交
    • P
      storage: util: Pass pool type to virStorageBackendFindGlusterPoolSources · a92160db
      Peter Krempa 提交于
      The native gluster pool source list data differs from the data used for
      attaching gluster volumes as netfs pools. Currently the only difference
      was the format. Since native pools don't use it and later there will be
      more differences add a more deterministic way to switch between the
      types instead.
      a92160db
  23. 21 2月, 2017 1 次提交
  24. 11 2月, 2017 2 次提交
  25. 27 1月, 2017 1 次提交
    • J
      storage: Fix build due to recent storage backend code movement · 448e2d5e
      John Ferlan 提交于
      Commit id '5f07c3c0' broke the freebsd build in the libvirt CI test
      environment because the UMOUNT was not defined unless WITH_STORAGE_FS
      is defined.
      
      So remove the virStorageBackendUmountLocal from storage_util.c,h and
      restore the code back in the storage_backend_fs.c and _vstorage.c
      modules.
      448e2d5e