2008-11-17 20:46:08

by Kalpak Shah

[permalink] [raw]
Subject: [PATCH 1/2 e2fsprogs] support for large EAs

Hi,

This patch adds large EA support for e2fsprogs.

- add EXT4_FEATURE_INCOMPAT_EA_INODE feature
- inode_ea_map bitmap is added for tracking non-orphan EA inodes. Orphan EA inodes get linked to lost+found.
- xattr handling is needed for deleting corrupt EA entries

Ted, this patch is actually based on top of the e2fsprogs-expand-extra-isize.patch I had sent about a month back. If you are satisfied with the approach, I can send a patch series which applies to the tip of the e2fsprogs tree.

Signed-off-by: Andreas Dilger <[email protected]>
Signed-off-by: Kalpak Shah <[email protected]>

e2fsck/e2fsck.h | 1
e2fsck/pass1.c | 199 ++++++++++++++++++++++++++++++++++++---------
e2fsck/pass4.c | 17 +++
e2fsck/problem.c | 24 +++++
e2fsck/problem.h | 13 ++
lib/blkid/probe.h | 1
lib/e2p/feature.c | 2
lib/ext2fs/ext2_ext_attr.h | 5 -
lib/ext2fs/ext2_fs.h | 5 -
lib/ext2fs/ext2fs.h | 6 -
lib/ext2fs/ext_attr.c | 27 ++++--
lib/ext2fs/swapfs.c | 2
misc/mke2fs.c | 3
misc/tune2fs.c | 6 +
14 files changed, 259 insertions(+), 52 deletions(-)

Thanks,
Kalpak


Attachments:
e2fsprogs-large-xattrs.patch (21.83 kB)