Skip to content

Commit

Permalink
Btrfs: increase BTRFS_MAX_MIRRORS by one for dev replace
Browse files Browse the repository at this point in the history
This change of the define is effective in all modes, it
is required and used only in the case when a device replace
procedure is running. The reason is that during an active
device replace procedure, the target device of the copy
operation is a mirror for the filesystem data as well that
can be used to read data in order to repair read errors on
other disks.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
  • Loading branch information
Stefan Behrens authored and Josef Bacik committed Dec 12, 2012
1 parent 30d9861 commit 72d7aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/ctree.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct btrfs_ordered_sum;

#define BTRFS_MAGIC "_BHRfS_M"

#define BTRFS_MAX_MIRRORS 2
#define BTRFS_MAX_MIRRORS 3

#define BTRFS_MAX_LEVEL 8

Expand Down

0 comments on commit 72d7aef

Please sign in to comment.