Whamcloud - gitweb
e2fsck: open io-channel when copying fs
authorLi Xi <lixi@ddn.com>
Sat, 10 Aug 2019 07:59:09 +0000 (15:59 +0800)
committerLi Dongyang <dongyangli@ddn.com>
Fri, 24 May 2024 11:00:27 +0000 (21:00 +1000)
commit3f24d5b508da677397f246c8bbb44781a353f73d
treec4d40157cd2e0152358db795427f0f7820548fbb
parent8796a35998b87f64bea015a978ce7e421942c718
e2fsck: open io-channel when copying fs

This patch also add writethrough flag to the thread io-channel.
When multiple threads write the same disk, we don't want the
data being saved in memory cache. This will be useful in the
future, but even without that flag, the tests can be passed too.

This patch also cleanup the io channel cache of the global
context. Otherwise, after pass1 step, the next steps would use
old data saved in the cache. And the cached data might have
already been overwritten in pass1.

E2fsprogs-commit: f15100003400e5fc01b34c25a7a4b61f5ed76148

Change-Id: I7fcf4038b6cb4eb52808b9a5bafdf909ca2c0c8e
Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Saranya Muruganandam <saranyamohan@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/e2fsck.h
e2fsck/pass1.c
e2fsck/unix.c
lib/ext2fs/ext2_io.h
lib/ext2fs/ext2fs.h
lib/ext2fs/openfs.c
lib/ext2fs/undo_io.c
lib/ext2fs/unix_io.c