[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1352967209-29616-3-git-send-email-wenqing.lz@taobao.com>
Date: Thu, 15 Nov 2012 16:13:24 +0800
From: Zheng Liu <gnehzuil.liu@...il.com>
To: linux-ext4@...r.kernel.org, tytso@....edu
Cc: Zheng Liu <wenqing.lz@...bao.com>
Subject: [PATCH 2/7] libext2fs: create a new dir with inline data while ino is greater than or equal to the first ino
From: Zheng Liu <wenqing.lz@...bao.com>
Now when the inode number is greater than or equal to the first inode number, we
will create a new dir with inline data if inline_data feature is enabled and dir
name is not lost+found.
Signed-off-by: Zheng Liu <wenqing.lz@...bao.com>
---
lib/ext2fs/mkdir.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/ext2fs/mkdir.c b/lib/ext2fs/mkdir.c
index 3bbe808..d48a075 100644
--- a/lib/ext2fs/mkdir.c
+++ b/lib/ext2fs/mkdir.c
@@ -56,7 +56,8 @@ errcode_t ext2fs_mkdir(ext2_filsys fs, ext2_ino_t parent, ext2_ino_t inum,
}
if (fs->super->s_feature_incompat & EXT4_FEATURE_INCOMPAT_INLINE_DATA &&
- ino > EXT2_FIRST_INO(fs->super) && strcmp("lost+found", name) != 0) {
+ ino >= EXT2_FIRST_INO(fs->super) &&
+ strcmp("lost+found", name) != 0) {
retval = ext2fs_inline_data_mkdir(fs, parent, ino, name);
if (retval)
goto cleanup;
--
1.7.12.rc2.18.g61b472e
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists