e2fsprogs/e2fsprogs-1.42-voidreturn_value_declared.patch
OBS User psmt 54277b4e14 - Update to 1.42.2:
* resize2fs uses much less CPU and is much faster for very large fs.
  * The seti and freei commands in debugfs can now take an optional length
    argument to set and clear a contiguous range of inodes.
  * E2fsck will now make explicit checks for the EOFBLOCKS_FL, since we
    plan to remove support for it from the kernel file system driver.
  * mke2fs can now use direct I/O via "mke2fs -D"
  * E2fsck was needlessly closing and re-opening the file system as a side
    effect of adding Multiple Mount Protection (MMP).  This isn't
    necessary for non-MMP file systems, so drop it.
  * E2fsck will now abort if there are memory allocation failures when
    the file system is initially opened and during the block group
    descriptor checks.
  * e2fsck will now report the incorrect and corrected checksum values
    for incorrect block groups.
  * e2fsck can now write log files containing the details of the problems
    that were found and fixed directly, via configuration parameters in
    /etc/e2fsck.conf.
  * The number of messages reported by e2fsck for a given problem type
    can be limited.
  * dumpe2fs, debugfs, and tune2fs now use rbtree bitmaps, which noticably
    reduces memory consumption for large file systems.
  * E2fsck now checks for extents with a zero length.
  * Fixed a number of bugs relating to discard.
  * E2fsck's CPU utilization in pass 5 has been optimized.
  * E2image will now skip copying uninitialized bitmap and inode table
    blocks.
  * Fixed mke2fs -S so it does not corrupt the first block group's
    information.
  * E2fsck will now check the new sysfs interface to determine if we are

Rev filesystems/27 Md5 9be97d5894175d896d99fd52bdf51da1 2012-04-23 10:15:04 psmt None
2012-04-23 10:15:04 +00:00

16 lines
585 B
Diff

Index: lib/quota/quotaio.c
===================================================================
--- lib/quota/quotaio.c.orig 2012-03-18 19:18:33.000000000 +0100
+++ lib/quota/quotaio.c 2012-04-13 12:57:21.261673322 +0200
@@ -142,8 +142,8 @@ errcode_t quota_inode_truncate(ext2_fils
return err;
inode.i_dtime = fs->now ? fs->now : time(0);
- if (!ext2fs_inode_has_valid_blocks2(fs, &inode))
- return 0;
+ if (!(err = ext2fs_inode_has_valid_blocks2(fs, &inode)) )
+ return err;
ext2fs_block_iterate3(fs, ino, BLOCK_FLAG_READ_ONLY, NULL,
release_blocks_proc, NULL);