]> git.baikalelectronics.ru Git - kernel.git/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)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 16:51:49 +0000 (17:51 +0100)
commit83ce488eb969d2bbd9309f0553abe6da358200e9
tree83a1c2bc2bf18cb604ce09124c1933e06d845c4d
parent517b5de64768f2f979c6c50cebab28469b97b3f7
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>
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