On Thu, 26 April 2007 10:47:40 +1000, David Chinner wrote:
>
> This assumes that you know a chunk has been corrupted, though.
> How do you find that out?
Option 1: you notice something odd while serving userspace.
Option 2: a checking/scrubbing daemon of some sorts.
The first will obviously miss any corruption in data that is not touched
for a long time (ever?).
> > What you need to make this go fast is (1) a pre-made list of which
> > chunks have links with which other chunks,
>
> So you add a new on-disk structure that needs to be kept up to
> date? How do you trust that structure to be correct if you are
> not journalling it?
Only chance I see is to treat this list as hints. It should contain all
chunks that possibly have links. It may also contain chunks that don't
have links. By keeping strict FFS-style ordering of all relevant
writes, any mismatch should only cost fsck time.
Managing this list appears to be less than trivial. Might actually be
easier to have LogFS-style rmap for each object in the filesystem.
> What happens if fsfuzzer trashes part
> of this table as well and you can't trust it?
If you have 5000 redundant copies of data and all get corrupted, you are
doomed. I don't expect my filesystem to recover after having written
0x00 over the whole device.
Being able to recover a single corruption happening anywhere on the
device is already a huge step forward. Of course most current
filesystems wouldn't even be able to detect all possible corruptions.
That alone would be a step forward.
One of the smart things of ZFS is to checksum everything. Among the
Linux filesystems only JFFS2 seems to do it, but it cannot distinguish
between corrupted data and incomplete writes before a crash. It
definitely costs performance, but that is the price one has to pay if
errors are to be detected.
Jörn
--
Do not stop an army on its way home.
-- Sun Tzu
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]