diff options
author | David Sterba <dsterba@suse.com> | 2018-03-03 00:56:53 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-11-18 19:51:49 +0300 |
commit | 47e6f7423b9196ad6832d26cae52b7015f81ee7f (patch) | |
tree | 3f06408a77645e1546ed90445cf6584c515ca44d /include/uapi/linux/btrfs.h | |
parent | fac07d2b091542f7169978e4c1413747d8d0e965 (diff) | |
download | linux-47e6f7423b9196ad6832d26cae52b7015f81ee7f.tar.xz |
btrfs: add support for 3-copy replication (raid1c3)
Add new block group profile to store 3 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-copy RAID1.
The minimum number of devices is 3, the maximum number of devices/chunks
that can be lost/damaged is 2. Like RAID6 but with 33% space
utilization.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/uapi/linux/btrfs.h')
-rw-r--r-- | include/uapi/linux/btrfs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h index 3ee0678c0a83..ba22f91a3f5b 100644 --- a/include/uapi/linux/btrfs.h +++ b/include/uapi/linux/btrfs.h @@ -831,7 +831,8 @@ enum btrfs_err_code { BTRFS_ERROR_DEV_TGT_REPLACE, BTRFS_ERROR_DEV_MISSING_NOT_FOUND, BTRFS_ERROR_DEV_ONLY_WRITABLE, - BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS + BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS, + BTRFS_ERROR_DEV_RAID1C3_MIN_NOT_MET, }; #define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \ |