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.
This commit is contained in:
Colin Walters 2025-03-17 19:09:53 -04:00
parent 364e22f19c
commit 688ab1aa8e

View File

@ -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))