aboutsummaryrefslogtreecommitdiff
path: root/debugfs/debug_cmds.ct
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2014-07-18 15:53:11 -0700
committerTheodore Ts'o <tytso@mit.edu>2014-07-22 14:53:21 -0400
commit23d6dd1f1032af47d9a8cc7e9ecc1ec7a9b95718 (patch)
tree68e9931aa3b0d7bef5c2353514b5d84293cc6680 /debugfs/debug_cmds.ct
parent7722961d2c4c327d45b9c42dd29e8231cc0e1c4b (diff)
downloade2fsprogs-23d6dd1f1032af47d9a8cc7e9ecc1ec7a9b95718.tar.gz
e2fsck: fix inode coherency issue when iterating an inode's blocks
When we're about to iterate the blocks of a block-map file, we need to write the inode out to disk if it's dirty because block_iterate3() will re-read the inode from disk. (In practice this won't happen because nothing dirties block-mapped inodes before the iterate call, but we can program defensively). More importantly, we need to re-read the inode after the iterate() operation because it's possible that mappings were changed (or erased) during the iteration. If we then dirty or clear the inode, we'll mistakenly write the old inode values back out to disk! Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'debugfs/debug_cmds.ct')
0 files changed, 0 insertions, 0 deletions