Skip to content
Snippets Groups Projects
  1. Oct 01, 2020
  2. Sep 23, 2020
    • Rebecca Turner's avatar
      glnx-fdio: try $TMPDIR if /var/tmp doesn't exist · 1ea9158c
      Rebecca Turner authored
      `glnx_open_anonymous_tmpfile` attempts to create an fd in `/var/tmp`
      regardless of the value of `$TMPDIR`.
      
      This is _usually_ okay, but can fail in some contexts, such as in the
      [NixOS][1] build environment, which doesn't have `/var` mapped at all.
      
      To avoid failing in this case, if the inner call to
      `glnx_open_anonymous_tmpfile_full` fails, we retrieve the value of
      `$TMPDIR` and try calling `glnx_open_anonymous_tmpfile_full` again with
      that directory instead.
      
      In the fast path (i.e. where `/var/tmp` exists), functionality is
      unchanged.
      
      [1]: https://nixos.org/
      1ea9158c
  3. Sep 10, 2020
  4. Jun 16, 2020
    • Colin Walters's avatar
      Merge branch 'fix-wrpseudo-grammar' into 'master' · 84b981a2
      Colin Walters authored
      libglnx.m4: Fix grammar in help string
      
      See merge request GNOME/libglnx!17
      84b981a2
    • Colin Walters's avatar
      Merge branch 'pr/cfr-nfs' into 'master' · cd5a57e8
      Colin Walters authored
      glnx-fdio: handle EOPNOTSUPP for copy_file_range
      
      See merge request GNOME/libglnx!18
      cd5a57e8
    • Jonathan Lebon's avatar
      glnx-fdio: handle EOPNOTSUPP for copy_file_range · 7e3a1995
      Jonathan Lebon authored
      When using `copy_file_range` to target a source and dest on the same NFS
      mount on some older kernel versions, it's possible that we can get
      `EOPNOTSUPP` e.g. if the NFS server doesn't support server-side copy.
      
      We hit this in the FCOS release pipeline where we run `ostree
      pull-local` to pull content between two repos on the same mount from
      inside an OpenShift cluster on top of RHEL7.
      
      Nowadays, it seems like the kernel itself falls back to a more generic
      version of `copy_file_range()` at least. Though to be compatible with
      older kernels, let's add `EOPNOTSUPP` to the list of errors we interpret
      as "cfr possibly available, but can't be done for this specific
      operation".
      7e3a1995
  5. Jun 11, 2020
  6. Jun 09, 2020
  7. Jun 03, 2020
  8. Mar 15, 2020
  9. Dec 02, 2019
  10. Nov 11, 2019
  11. Nov 04, 2019
  12. Oct 11, 2019
  13. Oct 09, 2019
  14. Sep 17, 2019
  15. Sep 09, 2019
  16. May 13, 2019
  17. May 10, 2019
  18. May 02, 2019
  19. Mar 28, 2019
  20. Dec 07, 2018
Loading