From 688ab1aa8ec2c720c21b0026aef8ce9c4f7efac9 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 17 Mar 2025 19:09:53 -0400 Subject: [PATCH] commit: Clarify that syncfs is of repo/tmp We saw this in an error message: ``` error: Generating commit from rootfs: syncfs: Not a directory ``` I'm pretty sure it's this function call but let's be a bit more sure by adding a bit more context. --- src/libostree/ostree-repo-commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libostree/ostree-repo-commit.c b/src/libostree/ostree-repo-commit.c index c5a47d32..4bf845c4 100644 --- a/src/libostree/ostree-repo-commit.c +++ b/src/libostree/ostree-repo-commit.c @@ -2233,7 +2233,7 @@ ostree_repo_commit_transaction (OstreeRepo *self, OstreeRepoTransactionStats *ou if (!self->disable_fsync && g_getenv ("OSTREE_SUPPRESS_SYNCFS") == NULL) { if (syncfs (self->tmp_dir_fd) < 0) - return glnx_throw_errno_prefix (error, "syncfs"); + return glnx_throw_errno_prefix (error, "syncfs(repo/tmp)"); } if (!rename_pending_loose_objects (self, cancellable, error))