Re: [PATCH RFC] gen_init_cpio: Do fsync() only on regular files
From: Christoph Hellwig
Date: Tue Oct 07 2025 - 02:03:58 EST
On Tue, Oct 07, 2025 at 04:57:32PM +1100, David Disseldorp wrote:
> I should have explained why in the commit, sorry. The intention was to
> catch any FS I/O errors during output archive writeback. fsync() is
> called only once as the final I/O.
I don't parse this. What does 'as the final I/O' mean? If you want
to catch writeback errors, a single syncfs should be enough.