Commit 9e0c30a
btrfs-progs: zoned: factor out SINGLE zone info loading
Currently, the userland tool only considers the SINGLE profile, which make it
fail when a DUP block group is created over one conventional zone and one
sequential required zone.
Before adding the other profiles support, let's factor out per-profile code
(actually, SINGLE only) into functions just like as the kernel side.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 70fc38f commit 9e0c30a
File tree
1 file changed
+43
-4
lines changed1 file changed
+43
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
961 | 981 | | |
962 | 982 | | |
963 | 983 | | |
| |||
972 | 992 | | |
973 | 993 | | |
974 | 994 | | |
| 995 | + | |
975 | 996 | | |
976 | 997 | | |
977 | 998 | | |
| |||
1039 | 1060 | | |
1040 | 1061 | | |
1041 | 1062 | | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
1046 | 1085 | | |
1047 | 1086 | | |
1048 | 1087 | | |
| |||
0 commit comments