]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - lib/ext2fs/swapfs.c
libext2fs: handle inline data in dir iterator function
authorZheng Liu <wenqing.lz@taobao.com>
Fri, 6 Dec 2013 09:57:58 +0000 (17:57 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Mar 2014 13:46:08 +0000 (08:46 -0500)
commit416c1de94ddf7199aedaf7b039292a36b92699fb
treecc3dd7773ebeed553edc5627a8073e507eb4493d
parent11f9374660acd119c832c01aa6ed65bc449e43b8
libext2fs: handle inline data in dir iterator function

Inline_data is handled in dir iterator because a lot of commands use
this function to traverse directory entries in debugfs.  We need to
handle inline_data individually because inline_data is saved in two
places.  One is in i_block, and another is in ibody extended attribute.

After applied this commit, the following commands in debugfs can
support the inline_data feature:
- cd
- chroot
- link*
- ls
- ncheck
- pwd
- unlink

* TODO: Inline_data doesn't expand to ibody extended attribute because
  link command doesn't handle DIR_NO_SPACE error until now.  But if we
  have already expanded inline data to ibody ea area, link command can
  occupy this space.

Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/Makefile.in
lib/ext2fs/Makefile.pq
lib/ext2fs/dir_iterate.c
lib/ext2fs/ext2_err.et.in
lib/ext2fs/ext2_fs.h
lib/ext2fs/ext2fs.h
lib/ext2fs/ext2fsP.h
lib/ext2fs/inline_data.c [new file with mode: 0644]
lib/ext2fs/swapfs.c