Bug 202637
Summary: | Chmod'ed directory permission is not persisted with fsync | ||
---|---|---|---|
Product: | File System | Reporter: | Seulbae Kim (seulbae) |
Component: | f2fs | Assignee: | Default virtual assignee for f2fs (filesystem_f2fs) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | chao |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | v5.0.0-rc7 (latest) | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | Proof of Concept |
Description
Seulbae Kim
2019-02-21 03:05:57 UTC
Seulbae, thanks for the report. I've written a patch for that, could you please check it? [PATCH] f2fs: fix to dirty inode for i_mode recovery Thank you for quick response Chao Yu! I tested your patch by applying it on kernel v5.0.0-rc7, and confirmed that the reported bug is fixed. (In reply to Chao Yu from comment #1) > Seulbae, thanks for the report. > > I've written a patch for that, could you please check it? > > [PATCH] f2fs: fix to dirty inode for i_mode recovery Thanks for the quick test. :) I've also sent a patch to simulate your testcase for fstest suit, you can find it in below link: https://sourceforge.net/p/linux-f2fs/mailman/linux-f2fs-devel/thread/20190226070302.17756-1-yuchao0%40huawei.com/#msg36597256 Once the kernel fix patch is merged in upstream, I will close this issue. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ca597bddedd94906cd761d8be6a3ad21292725de The fixing patch has been merged, tagged this issue as resolved one. |