]> Pileus Git - ~andy/linux/commit
exofs: Allow corrupted directory entry to be empty file
authorBoaz Harrosh <bharrosh@panasas.com>
Tue, 14 Jan 2014 14:05:52 +0000 (16:05 +0200)
committerBoaz Harrosh <bharrosh@panasas.com>
Thu, 23 Jan 2014 16:54:14 +0000 (18:54 +0200)
commitc8592fcc66b2fe9cbd505f1faff810f8844d4a97
treeb562110704f5acd3630629f5058f0f8af945d1e7
parentd83c7eb65d9bf0a57e7d5ed87a5bd8e5ea6b1fb6
exofs: Allow corrupted directory entry to be empty file

If there was an error in fetching an object or extracting
inode info from attributes. Which means corrupted storage.
Let it be an empty ZERO dated directory entry so it can be
deleted. Otherwise the all directory will be inaccessible.

This does not loose data, because if there is an orphan object
somewhere it will be recovered by fschk. But usually this only
means corrupted dir entry. The object was never generated and
only its link exist. This way we can delete the bad entry.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
fs/exofs/inode.c