]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
debugfs: abort reading a file on failure when dumping out a file
authorTheodore Ts'o <tytso@mit.edu>
Fri, 23 May 2025 17:22:00 +0000 (13:22 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 9 Jun 2025 20:54:12 +0000 (16:54 -0400)
commit56a444e898be418afd4bd11f2a6950dce7e4ae99
tree8ba70c4d7fc8172b58533766484677ebf2db2c94
parentcb8fde1619e78b41894431d8e992d0230028b9e5
debugfs: abort reading a file on failure when dumping out a file

If ext2fs_file_read() fails --- perhaps due to a corrupted file
system, or an I/O error --- avoid looping forever in dump_file().

This issue was pointed out in [1] by Quentin Kaiser but the commit
description was too confusing and specific to the user's particular
situation.

[1] https://github.com/tytso/e2fsprogs/pull/149

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 51d68472456d22b6e64159244be63bce51473691)
debugfs/dump.c