]> git.hungrycats.org Git - linux/commit
btrfs: add support for 4-copy replication (raid1c4)
authorDavid Sterba <dsterba@suse.com>
Fri, 2 Mar 2018 21:56:53 +0000 (22:56 +0100)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Mon, 4 Nov 2019 21:14:04 +0000 (16:14 -0500)
commitbfb6f217fc08e352db990be9dbe2a2cf2003447d
tree763cd8220f8fbda31dd2fd9d727658b0856946bd
parent03a4eb8750d477df571d6c1c77ea11e0dff9a4ea
btrfs: add support for 4-copy replication (raid1c4)

Add new block group profile to store 4 copies in a simliar way that
current RAID1 does.  The profile attributes and constraints are defined
in the raid table and used by the same code that already handles the 2-
and 3-copy RAID1.

The minimum number of devices is 4, the maximum number of devices/chunks
that can be lost/damaged is 3. There is no comparable traditional RAID
level, the profile is added for future needs to accompany triple-parity
and beyond.

Signed-off-by: David Sterba <dsterba@suse.com>
(cherry picked from commit 501e343804320c22f6cafe417543f5039ef8c48a)
fs/btrfs/ctree.h
fs/btrfs/super.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h
include/uapi/linux/btrfs.h
include/uapi/linux/btrfs_tree.h