Skip to content

Commit 7a9513d

Browse files
author
Paul Dagnelie
committed
Fix via tests
Signed-off-by: Paul Dagnelie <[email protected]>
1 parent 00b54a3 commit 7a9513d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

man/man7/zpool-features.7

+2-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,8 @@ vdev to an existing pool.
497497
This feature enables larger gang headers based on the sector size of the pool.
498498
When enabled, gang headers will use the entire space allocated for them, instead
499499
of always restricting themselves to 512 bytes.
500-
This can reduce the need for nested gang trees in extreme fragmentation scenarios.
500+
This can reduce the need for nested gang trees in extreme fragmentation
501+
scenarios.
501502
.Pp
502503
This feature becomes active when a gang header is written that is larger than
503504
512 bytes.

tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_features_001_pos.ksh

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function cleanup
5050

5151
function check_features
5252
{
53-
for state in $(zpool get all $TESTPOOL | \
53+
for state in $(zpool get all $TESTPOOL | grep -v "dynamic_gang_header" | \
5454
awk '$2 ~ /feature@/ { print $3 }'); do
5555
if [[ "$state" != "enabled" && "$state" != "active" ]]; then
5656
log_fail "some features are not enabled on new pool"

tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_features_005_pos.ksh

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ function check_features
5858
return 1;
5959
fi
6060
else
61+
if [[ "feature@dynamic_gang_header" == "${2}" ]]; then
62+
continue
63+
fi
6164
# Failure other features must be enabled or active.
6265
if [[ "${3}" != "enabled" && "${3}" != "active" ]]; then
6366
return 2;

0 commit comments

Comments
 (0)