git: hammer - Avoid panic in particular corruption situations
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun May 10 19:54:34 PDT 2015
commit b961cdbbbbbccb4f672f697f45bfdd5befcaf3f6
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sun May 10 19:51:18 2015 -0700
hammer - Avoid panic in particular corruption situations
This commit fixes two panics which can arise from attempting to access a
corrupted filesystem. It does not fix the issue that led to the corruption
in the first place (which we believe might have been GPU-related random
memory corruption on a particular machine). It allows the filesystem to
continue to operate so it can be spooled off and reformatted.
* Do not panic on a NULL pointer dereference if a cursor iteration
fails due to corruption.
* Do not panic during a flush on a sequence space error if the filesystem
has been forced into read-only mode (which prevents older sequence spaces
from being flushed).
Reported-by: Sephe
Summary of changes:
sys/vfs/hammer/hammer_btree.c | 9 +++++++++
sys/vfs/hammer/hammer_flusher.c | 7 ++++++-
2 files changed, 15 insertions(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b961cdbbbbbccb4f672f697f45bfdd5befcaf3f6
--
DragonFly BSD source repository
More information about the Commits
mailing list