Bug 12543
Summary: | ext4_da_writepages error in 2.6.28.1 after a disk error | ||
---|---|---|---|
Product: | File System | Reporter: | Andrew Baptist (abaptist) |
Component: | ext4 | Assignee: | fs_ext4 (fs_ext4) |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | normal | CC: | diegocg |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.28.1 | Subsystem: | |
Regression: | --- | Bisected commit-id: |
Description
Andrew Baptist
2009-01-26 08:56:38 UTC
IMHO I'd say there's a broken sector, have you passed a badblocks test? (but ext4 should have handled the failure gracefully) The disk was failing, really the purpose of this bug was just to have ext4 handle this gracefully. The continuous emerg level messages printed to console (about 2/sec) make it very hard to work with (at least with default of emerg going to *) Having ext4 handling this gracefully is already in mainline. See commit: 2a21e37e4: ext4: tone down ext4_da_writepages warnings ext4: tone down ext4_da_writepages warnings If the filesystem has errors, ext4_da_writepages() will return a *lot* of errors, including lots and lots of stack dumps. While it's true that we are dropping user data on the floor, which is unfortunate, the stack dumps aren't helpful, and they tend to obscure the true original root cause of the problem. So in the case where the filesystem has aborted, return an EROFS right away. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> It is in 2.6.29-rc1 and I plan to send it for the 2.6.28.y release, just because it is *so* annoying. |