Skip to content

Commit 9e5794a

Browse files
committed
Add all read-only compatible features to GRUB2 compatibility feature set
Since GRUB2 opens pools in read-only mode, all read-only compatible features, which don't have a dependency on an incompatible feature can be enabled. Several read-only compatible features have been introduced since the GRUB2 compatibility file was created but the file wasn't updated. I added all features from `zpool_feature_init()` in `module/zcommon/zfeature_common.c` where the `ZFEATURE_FLAG_READONLY_COMPAT` flag is set and which don't depend on an incompatible feature. Signed-off-by: Luflosi <[email protected]>
1 parent aebd94c commit 9e5794a

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

cmd/zpool/compatibility.d/grub2

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
# Features which are supported by GRUB2
2+
allocation_classes
23
async_destroy
4+
block_cloning
35
bookmarks
6+
device_rebuild
47
embedded_data
58
empty_bpobj
69
enabled_txg
710
extensible_dataset
811
filesystem_limits
912
hole_birth
1013
large_blocks
14+
livelist
15+
log_spacemap
1116
lz4_compress
17+
project_quota
18+
resilver_defer
1219
spacemap_histogram
20+
spacemap_v2
21+
userobj_accounting
22+
zilsaxattr
23+
zpool_checkpoint

man/man7/zpool-features.7

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,28 @@ to the end of the line is ignored.
219219
.Bd -literal -compact -offset 4n
220220
.No example# Nm cat Pa /usr/share/zfs/compatibility.d/grub2
221221
# Features which are supported by GRUB2
222+
allocation_classes
222223
async_destroy
224+
block_cloning
223225
bookmarks
226+
device_rebuild
224227
embedded_data
225228
empty_bpobj
226229
enabled_txg
227230
extensible_dataset
228231
filesystem_limits
229232
hole_birth
230233
large_blocks
234+
livelist
235+
log_spacemap
231236
lz4_compress
237+
project_quota
238+
resilver_defer
232239
spacemap_histogram
240+
spacemap_v2
241+
userobj_accounting
242+
zilsaxattr
243+
zpool_checkpoint
233244

234245
.No example# Nm zpool Cm create Fl o Sy compatibility Ns = Ns Ar grub2 Ar bootpool Ar vdev
235246
.Ed

0 commit comments

Comments
 (0)