It's only internally used as another way to represent btrfs profiles, it's not exposed through any on-disk format, in fact this btrfs_raid_types is diverted from the on-disk format values. Furthermore, since it's internal structure, its definition can change in the future.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -880,19 +880,6 @@ struct btrfs_dev_replace_item { · 879 unmodified lines | ||
| 880 | 880 | #define BTRFS_BLOCK_GROUP_RESERVED (BTRFS_AVAIL_ALLOC_BIT_SINGLE | \ |
| 881 | 881 | BTRFS_SPACE_INFO_GLOBAL_RSV) |
| 882 | 882 | |
| 883 | −enum btrfs_raid_types { | |
| 884 | − BTRFS_RAID_RAID10, | |
| 885 | − BTRFS_RAID_RAID1, | |
| 886 | − BTRFS_RAID_DUP, | |
| 887 | − BTRFS_RAID_RAID0, | |
| 888 | − BTRFS_RAID_SINGLE, | |
| 889 | − BTRFS_RAID_RAID5, | |
| 890 | − BTRFS_RAID_RAID6, | |
| 891 | − BTRFS_RAID_RAID1C3, | |
| 892 | − BTRFS_RAID_RAID1C4, | |
| 893 | − BTRFS_NR_RAID_TYPES | |
| 894 | −}; | |
| 895 | − | |
| 896 | 883 | #define BTRFS_BLOCK_GROUP_TYPE_MASK (BTRFS_BLOCK_GROUP_DATA | \ |
| 897 | 884 | BTRFS_BLOCK_GROUP_SYSTEM | \ |
| 898 | 885 | BTRFS_BLOCK_GROUP_METADATA) |