- Dec 07, 2018
-
-
Colin Walters authored
First, let's ensure the filename is prefixed consistently. Second, add the entrypoint as a prefix when recursing. This is best practice to help debugging. Motivated by https://discussion.fedoraproject.org/t/boot-partition-of-silverblue-is-without-space/771/9
-
- Oct 24, 2017
-
-
Colin Walters authored
Use decl-after-stmt where applicable.
-
- Oct 16, 2017
-
-
Colin Walters authored
Port to `glnx_autofd` tree wide, and add one missed `glnx_close_fd()` use in the tmpfile code.
-
- Sep 26, 2017
-
-
Philip Withnall authored
If the directory for @dfd is deleted after being opened, glnx_shutil_mkdir_p_at() would fail with an assertion failure. Fix that, and make it return an ENOENT error instead. Add a unit test. Signed-off-by:
Philip Withnall <withnall@endlessm.com> Reviewed-by:
Colin Walters <walters@verbum.org> Reviewed-by:
Jonathan Lebon <jlebon@redhat.com> https://github.com/ostreedev/ostree/issues/1215
-
- Jul 20, 2017
-
-
Colin Walters authored
Another one where we have a lot of inlines in ostree at least. Not the same as `glnx_shutil_mkdir_p_at()` since in these cases we don't want automatic intermediate dirs, and it's cheaper to just call `mkdirat()` and handle `EEXIST` rather than do a `stat()` first.
-
- May 31, 2017
-
-
Colin Walters authored
This avoids callers having to use `glnx_steal_fd()` on their own; in general, I think we should implement move semantics like this at the callee level. Another reason to do this is there's a subtle problem with doing: ``` somefunction (steal_value (&v), ..., error); ``` in that if `somefunction` throws, it may not have taken ownership of the value. At least `glnx_dirfd_iterator_init_take_fd()` didn't.
-
- Apr 25, 2017
-
-
Colin Walters authored
There's a lot more fdio code, starting with some of the easier ones.
-
- Apr 21, 2017
-
-
Philip Withnall authored
This is a variant of glnx_shutil_mkdir_p_at() which opens the given directory and returns a dirfd to it. Currently, the implementation cannot be race-free (due to a kernel bug), but it could eventually be made race-free. Signed-off-by:
Philip Withnall <withnall@endlessm.com>
-
- Jul 29, 2016
-
-
Colin Walters authored
This drops a lot of duplicate code.
-
- Apr 08, 2015
-
-
Colin Walters authored
-
- Apr 07, 2015
-
-
Colin Walters authored
I looked at the systemd code but it didn't have a variant of mkdir_parents that used `*at()`. This is a fresh implementation, with the risk that entails. However I am changing libgsystem to call it now for testing, and libgsystem APIs are covered by ostree usage at least.
-
- Mar 17, 2015
-
-
Colin Walters authored
We want to honor `-1 == AT_FDCWD`.
-
- Feb 15, 2015
-
-
Colin Walters authored
-