bcachefs_format.h (0bc166ff564f9e2b0bfc7a0c1a92472a600f901d) | bcachefs_format.h (1dd7f9d98de0740b42f1ac3f0b1d8af9c76801de) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _BCACHEFS_FORMAT_H 3#define _BCACHEFS_FORMAT_H 4 5/* 6 * bcachefs on disk data structures 7 * 8 * OVERVIEW: --- 895 unchanged lines hidden (view full) --- 904#define BCH_SB_FIELDS() \ 905 x(journal, 0) \ 906 x(members, 1) \ 907 x(crypt, 2) \ 908 x(replicas_v0, 3) \ 909 x(quota, 4) \ 910 x(disk_groups, 5) \ 911 x(clean, 6) \ | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _BCACHEFS_FORMAT_H 3#define _BCACHEFS_FORMAT_H 4 5/* 6 * bcachefs on disk data structures 7 * 8 * OVERVIEW: --- 895 unchanged lines hidden (view full) --- 904#define BCH_SB_FIELDS() \ 905 x(journal, 0) \ 906 x(members, 1) \ 907 x(crypt, 2) \ 908 x(replicas_v0, 3) \ 909 x(quota, 4) \ 910 x(disk_groups, 5) \ 911 x(clean, 6) \ |
912 x(replicas, 7) | 912 x(replicas, 7) \ 913 x(journal_seq_blacklist, 8) |
913 914enum bch_sb_field_type { 915#define x(f, nr) BCH_SB_FIELD_##f = nr, 916 BCH_SB_FIELDS() 917#undef x 918 BCH_SB_FIELD_NR 919}; 920 --- 198 unchanged lines hidden (view full) --- 1119 __le64 journal_seq; 1120 1121 union { 1122 struct jset_entry start[0]; 1123 __u64 _data[0]; 1124 }; 1125}; 1126 | 914 915enum bch_sb_field_type { 916#define x(f, nr) BCH_SB_FIELD_##f = nr, 917 BCH_SB_FIELDS() 918#undef x 919 BCH_SB_FIELD_NR 920}; 921 --- 198 unchanged lines hidden (view full) --- 1120 __le64 journal_seq; 1121 1122 union { 1123 struct jset_entry start[0]; 1124 __u64 _data[0]; 1125 }; 1126}; 1127 |
1128struct journal_seq_blacklist_entry { 1129 __le64 start; 1130 __le64 end; 1131}; 1132 1133struct bch_sb_field_journal_seq_blacklist { 1134 struct bch_sb_field field; 1135 1136 union { 1137 struct journal_seq_blacklist_entry start[0]; 1138 __u64 _data[0]; 1139 }; 1140}; 1141 |
|
1127/* Superblock: */ 1128 1129/* 1130 * New versioning scheme: 1131 * One common version number for all on disk data structures - superblock, btree 1132 * nodes, journal entries 1133 */ 1134#define BCH_JSET_VERSION_OLD 2 --- 139 unchanged lines hidden (view full) --- 1274 1275/* Features: */ 1276enum bch_sb_features { 1277 BCH_FEATURE_LZ4 = 0, 1278 BCH_FEATURE_GZIP = 1, 1279 BCH_FEATURE_ZSTD = 2, 1280 BCH_FEATURE_ATOMIC_NLINK = 3, /* should have gone under compat */ 1281 BCH_FEATURE_EC = 4, | 1142/* Superblock: */ 1143 1144/* 1145 * New versioning scheme: 1146 * One common version number for all on disk data structures - superblock, btree 1147 * nodes, journal entries 1148 */ 1149#define BCH_JSET_VERSION_OLD 2 --- 139 unchanged lines hidden (view full) --- 1289 1290/* Features: */ 1291enum bch_sb_features { 1292 BCH_FEATURE_LZ4 = 0, 1293 BCH_FEATURE_GZIP = 1, 1294 BCH_FEATURE_ZSTD = 2, 1295 BCH_FEATURE_ATOMIC_NLINK = 3, /* should have gone under compat */ 1296 BCH_FEATURE_EC = 4, |
1297 BCH_FEATURE_JOURNAL_SEQ_BLACKLIST_V3 = 5, |
|
1282 BCH_FEATURE_NR, 1283}; 1284 1285enum bch_sb_compat { 1286 BCH_COMPAT_FEAT_ALLOC_INFO = 0, 1287}; 1288 1289/* options: */ --- 272 unchanged lines hidden --- | 1298 BCH_FEATURE_NR, 1299}; 1300 1301enum bch_sb_compat { 1302 BCH_COMPAT_FEAT_ALLOC_INFO = 0, 1303}; 1304 1305/* options: */ --- 272 unchanged lines hidden --- |