# HG changeset patch # User Paul Boddie # Date 1666826559 -7200 # Node ID 772313e983a06b15722c9a499b2b87d221c7bad7 # Parent 8b465ee8d6d69390ebcac3fa86572cfe19c2f572 Reverted ext2fs_flush call removal, this failing due to broken unmap behaviour. diff -r 8b465ee8d6d6 -r 772313e983a0 libe2access/lib/src/image.c --- a/libe2access/lib/src/image.c Thu Oct 27 01:14:32 2022 +0200 +++ b/libe2access/lib/src/image.c Thu Oct 27 01:22:39 2022 +0200 @@ -604,7 +604,12 @@ unlinking by inode could just cause the file to disappear from the catalogue. */ - return image_unlink_by_name(fs, source_parent, source_basename); + retval = image_unlink_by_name(fs, source_parent, source_basename); + + if (retval) + return retval; + + return ext2fs_flush2(fs, 0); } /* Set the mode, user and group metadata for a file. */