From 6ebebc80de3dfc7ada3a69d609f00088c2143be3 Mon Sep 17 00:00:00 2001 From: Shengyu Zhang Date: Fri, 13 May 2016 09:18:59 +0800 Subject: ext2fs: Add support for xattr * ext2fs/Makefile (SRCS): Add xattr.c. * ext2fs/ext2_fs.h: Define EXT2_FEATURE_COMPAT_EXT_ATTR. * ext2fs/ext2fs.h: Add xattr functions. * ext2fs/ialloc.c (diskfs_free_node): Free xattr block. * ext2fs/xattr.c: xattr implement. * ext2fs/xattr.h: Likewise. --- ext2fs/ialloc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext2fs/ialloc.c') diff --git a/ext2fs/ialloc.c b/ext2fs/ialloc.c index 2809371a..71bfb8cb 100644 --- a/ext2fs/ialloc.c +++ b/ext2fs/ialloc.c @@ -62,6 +62,8 @@ diskfs_free_node (struct node *np, mode_t old_mode) ext2_debug ("freeing inode %u", inum); + ext2_free_xattr_block (np); + pthread_spin_lock (&global_lock); if (inum < EXT2_FIRST_INO (sblock) || inum > sblock->s_inodes_count) -- cgit v1.2.3