diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-11-28 13:26:03 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-12-14 06:38:02 -0800 |
commit | 0cd6d9b0d23416af3bfb8736f8be5bb66bc8060b (patch) | |
tree | f8c2139010c431fa412b368de149070655fad08a /fs/f2fs/node.c | |
parent | a742fd41c02c34e0b1b39ee366eb4982837439df (diff) |
f2fs: add an ioctl() to explicitly trigger fsck later
This adds an option in ioctl(F2FS_IOC_SHUTDOWN) in order to trigger fsck by
setting a NEED_FSCK flag.
Generally, shutdown is used for the test to validate filesystem consistency, and
setting NEED_FSCK flag can be used for Android to trigger fsck.f2fs at boot time
explicitly so that we could measure the elapsed time as well as force filesystem
check.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
0 files changed, 0 insertions, 0 deletions