diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2010-02-09 10:43:21 +0100 |
---|---|---|
committer | Boaz Harrosh <bharrosh@panasas.com> | 2010-02-28 12:44:43 +0100 |
commit | 96391e2bae0f8882b6f44809202a68be66e91dce (patch) | |
tree | f2a6ece9b3973143293e1221e992c60b07109429 /fs/ext3/resize.c | |
parent | exofs: convert io_state to use pages array instead of bio at input (diff) | |
download | linux-96391e2bae0f8882b6f44809202a68be66e91dce.tar.xz linux-96391e2bae0f8882b6f44809202a68be66e91dce.zip |
exofs: Error recovery if object is missing from storage
If an object is referenced by a directory but does not
exist on a target, it is a very serious corruption that
means:
1. Either a power failure with very slim chance of it
happening. Because the directory update is always submitted
much after object creation, but if a directory is written
to one device and the object creation to another it might
theoretically happen.
2. It only ever happened to me while developing with BUGs
causing file corruption. Crashes could also cause it but
they are more like case 1.
In any way the object does not exist, so data is surely lost.
If there is a mix-up in the obj-id or data-map, then lost objects
can be salvaged by off-line fsck. The only recoverable information
is the directory name. By letting it appear as a regular empty file,
with date==0 (1970 Jan 1st) ownership to root, we enable recovery
of the only useful information. And also enable deletion or over-write.
I can see how this can hurt.
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Diffstat (limited to 'fs/ext3/resize.c')
0 files changed, 0 insertions, 0 deletions