tree-wide: Add error prefixing for most remaining syscalls
There were some important ones there like a random `syncfs()`. The remaining users are mostly blocked on the "fstatat enoent" case, I'll wait to port those. Closes: #1150 Approved by: jlebon
This commit is contained in:
1 parent
7afa966198
commit
c7d0be4fba
5 files changed
+16
-16
No files matched your search
@@ -1534,7 +1534,7 @@ ostree_repo_commit_transaction (OstreeRepo *self,
|
||||
if (g_getenv ("OSTREE_SUPPRESS_SYNCFS") == NULL)
|
||||
{
|
||||
if (syncfs (self->tmp_dir_fd) < 0)
|
||||
return glnx_throw_errno (error);
|
||||
return glnx_throw_errno_prefix (error, "syncfs");
|
||||
}
|
||||
|
||||
if (!rename_pending_loose_objects (self, cancellable, error))
|
||||
@@ -2798,8 +2798,8 @@ write_dfd_iter_to_mtree_internal (OstreeRepo *self,
|
||||
OstreeRepoCommitFilterResult filter_result;
|
||||
struct stat dir_stbuf;
|
||||
|
||||
if (fstat (src_dfd_iter->fd, &dir_stbuf) != 0)
|
||||
return glnx_throw_errno (error);
|
||||
if (!glnx_fstat (src_dfd_iter->fd, &dir_stbuf, error))
|
||||
return FALSE;
|
||||
|
||||
child_info = _ostree_stbuf_to_gfileinfo (&dir_stbuf);
|
||||
|
||||
|
||||
Reference in new issue
Block a user