]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: provide a function to set inode size
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 26 Jul 2014 18:34:56 +0000 (14:34 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 26 Jul 2014 18:34:56 +0000 (14:34 -0400)
commit97c607b1a25e1f4e83bf246c76b679d91470f5dc
treeb542ac7ef606e7e60e2d2133755956808db9c774
parenta30a4e93f3fd51d81687de82ab96e57a3694d71c
libext2fs: provide a function to set inode size

Provide an API to set i_size in an inode and take care of all required
feature flag modifications.  Refactor the code to use this new
function.

[ Moved the function to lib/ext2fs/blk_num.c, which is the rest of
  these sorts of functions live, and renamed it to be
  ext2fs_inode_size_set() instead of ext2fs_inode_set_size() to be
  consistent with the other functions in in blk_num.c -- tytso ]

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
14 files changed:
debugfs/debugfs.c
e2fsck/pass1.c
e2fsck/pass2.c
e2fsck/pass3.c
e2fsck/rehash.c
lib/ext2fs/bb_inode.c
lib/ext2fs/blknum.c
lib/ext2fs/ext2fs.h
lib/ext2fs/fileio.c
lib/ext2fs/mkjournal.c
lib/ext2fs/res_gdt.c
lib/ext2fs/symlink.c
misc/mk_hugefiles.c
tests/f_big_sparse/expect.1