Now, sload.f2fs doesn't support inline_dir.

Signed-off-by: Jaegeuk Kim <jaeg...@kernel.org>
---
 fsck/dir.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/fsck/dir.c b/fsck/dir.c
index 18b79bd..2009855 100644
--- a/fsck/dir.c
+++ b/fsck/dir.c
@@ -185,6 +185,12 @@ static int f2fs_find_entry(struct f2fs_sb_info *sbi,
        unsigned int max_depth;
        unsigned int level;
 
+       if (dir->i.i_inline & F2FS_INLINE_DENTRY) {
+               ERR_MSG("Not support to find \"%s\" in inline_dir pino=%x\n",
+                               de->name, de->pino);
+               return 0;
+       }
+
        max_depth = dir->i.i_current_depth;
        for (level = 0; level < max_depth; level ++) {
                if (find_in_level(sbi, dir, level, de))
@@ -494,6 +500,13 @@ int f2fs_create(struct f2fs_sb_info *sbi, struct dentry 
*de)
                        de->ino = 0;
                goto free_parent_dir;
        }
+       if (parent->i.i_inline & F2FS_INLINE_DENTRY) {
+               ERR_MSG("Not support adding \"%s\" in inline_dir pino=%x\n",
+                                       de->name, de->pino);
+               if (de->file_type == F2FS_FT_REG_FILE)
+                       de->ino = 0;
+               goto free_parent_dir;
+       }
 
        child = calloc(BLOCK_SZ, 1);
        ASSERT(child);
-- 
2.8.3


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to