Linux EXT4 FS development
 help / color / mirror / Atom feed
* [GIT PULL 1/4] libext2fs: fix some missed fsync calls
@ 2026-09-12  6:41 Darrick J. Wong
  2026-12-03 15:22 ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Darrick J. Wong @ 2026-09-12  6:41 UTC (permalink / raw)
  To: tytso; +Cc: djwong, linux-ext4

Hi Ted,

Please pull this branch with changes for ext4.

As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts.  Please let me know if you
encounter any problems.

The following changes since commit 8fd79523d051d5ea881237f27eb1c664486e0078:

Merge branch 'maint' into next (2026-09-07 00:42:27 -0400)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/djwong/e2fsprogs.git tags/libext2fs-flushing-fixes_2026-09-11

for you to fetch changes up to 9199d64a91ea1cc8779cdc0289a79d50e6fe0ee2:

libext2fs: fix count recomputation in ext2fs_punch_ind (2026-09-11 23:34:15 -0700)

----------------------------------------------------------------
libext2fs: fix some missed fsync calls [1/4]

Fix a few places (like device closing) where we really ought to tell the
block device to flush whatever's dirty to disk, even if we've failed to
flush all our cached buffers out to disk.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>

----------------------------------------------------------------
Darrick J. Wong (4):
libext2fs: always fsync the device when flushing the cache
libext2fs: always fsync the device when closing the unix IO manager
libext2fs: only fsync the unix fd if we wrote to the device
libext2fs: fix count recomputation in ext2fs_punch_ind

lib/ext2fs/punch.c   |  2 +-
lib/ext2fs/unix_io.c | 83 +++++++++++++++++++++++++++++++++++++++++++---------
2 files changed, 70 insertions(+), 15 deletions(-)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [GIT PULL 1/4] libext2fs: fix some missed fsync calls
  2026-09-12  6:41 [GIT PULL 1/4] libext2fs: fix some missed fsync calls Darrick J. Wong
@ 2026-12-03 15:22 ` Theodore Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2026-12-03 15:22 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: linux-ext4

On Fri, Sep 11, 2026 at 11:41:43PM -0700, Darrick J. Wong wrote:
> Hi Ted,
> 
> Please pull this branch with changes for ext4.
> 
> Darrick J. Wong (4):
> libext2fs: always fsync the device when flushing the cache
> libext2fs: always fsync the device when closing the unix IO manager
> libext2fs: only fsync the unix fd if we wrote to the device
> libext2fs: fix count recomputation in ext2fs_punch_ind

Thanks, I've cherry-picked these commits into the maint branch.  One
change that I made was to add unit tests (lib/ext2fs/tst_punch.c) to
the last commit since libext2fs now has a full set of unit tests.
This seems to be really helpful in our brave new AI era, and just
simply creating the unit tests resulted in the AI flagging a large
number of minor issues and corner cases.  :-)

						- Ted

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-03 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-12  6:41 [GIT PULL 1/4] libext2fs: fix some missed fsync calls Darrick J. Wong
2026-12-03 15:22 ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox