Whamcloud - gitweb
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>
Fri, 23 May 2025 17:22:00 +0000 (13:22 -0400)
commit51d68472456d22b6e64159244be63bce51473691
treed20e9b7a2cb07c1ccc718a6f2dce0b2671da1bf8
parent241dae1b68aabe121974d095c150e7d2f9f33ade
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>
debugfs/dump.c