# HG changeset patch # User Paul Boddie # Date 1666554781 -7200 # Node ID c611cf130c52e2ed4840dbeb617a768a4dcf2069 # Parent 16efb99d0a1b6383f4d0edfa1c303d66fbe15a8e Removed ext2fs_flush call suggested by the e2fsprogs misc/fusefs.c code. This seems to be problematic and provoke directory corruption. diff -r 16efb99d0a1b -r c611cf130c52 libe2access/lib/src/image.c --- a/libe2access/lib/src/image.c Sun Oct 23 01:11:56 2022 +0200 +++ b/libe2access/lib/src/image.c Sun Oct 23 21:53:01 2022 +0200 @@ -604,12 +604,7 @@ unlinking by inode could just cause the file to disappear from the catalogue. */ - retval = image_unlink_by_name(fs, source_parent, source_basename); - - if (retval) - return retval; - - return ext2fs_flush2(fs, 0); + return image_unlink_by_name(fs, source_parent, source_basename); } /* Set the mode, user and group metadata for a file. */