Btrfs: Handle write errors on raid1 and raid10
authorChris Mason <chris.mason@oracle.com>
Mon, 12 May 2008 17:39:03 +0000 (13:39 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:03 +0000 (11:04 -0400)
commit1259ab75c62462b8ffad90067b5e1f6312786a18
treeccc6b795e524a74b3fb9666409ca2f7f33bf98dd
parentca7a79ad8dbe24669a8ced01f9fc0126b872745d
Btrfs: Handle write errors on raid1 and raid10

When duplicate copies exist, writes are allowed to fail to one of those
copies.  This changeset includes a few changes that allow the FS to
continue even when some IOs fail.

It also adds verification of the parent generation number for btree blocks.
This generation is stored in the pointer to a block, and it ensures
that missed writes to are detected.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent-tree.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c
fs/btrfs/tree-defrag.c
fs/btrfs/volumes.c