Whamcloud - gitweb
LU-18931 build: Update ZFS version to 2.2.7 34/58834/7
authorJian Yu <yujian@whamcloud.com>
Thu, 8 May 2025 06:48:47 +0000 (23:48 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 21 May 2025 03:42:33 +0000 (03:42 +0000)
commitc2d257dfa4505ab45324daad2ca08ddc0d8977c0
treeec2b75d0a168fa9bbe3466d24178fd7ada552729
parent8e2a8c157deac80bb4fa30fd4e74673ef2c1fc17
LU-18931 build: Update ZFS version to 2.2.7

Update ZFS version to 2.2.7. The changes are listed in:
https://github.com/openzfs/zfs/releases/tag/zfs-2.2.7

LU-18886 zfs-osd: za_name flexible array OI scrub fix

Initialize the zap_attribute_t.za_name_len to resolve the
OI scrub failures observed with zfs-2.3.  This is a follow up
to commit d47a71f7a894a193957fe7771d43c5767979c117 which made
an identical fix for the other sites where a zap_attribute_t
is used.

Lustre-change: https://review.whamcloud.com/58762
Lustre-commit: 18f7a2e9ff3536a6d7cefebb9e9a58ffbf460627

Was-Change-Id: Ib4295cbb7ce7e7efe0f7e67b82bc8c73a1f9df8d

Fixes: d47a71f7a894a ("LU-18360 zfs-osd: za_name flexible array")
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
LU-17924 tests: disable obdfilter-survey for ZFS

Starting with ZFS 2.2.7 the obdfilter-survey test fails due to
memory exhausting. For now disable the test for ZFS.

Lustre-change: https://review.whamcloud.com/58796
Lustre-commit: b0bbd61f8d7411560b6aa4ae84b8c680d7bd5c3d

Was-Change-Id: Ibebc637a9b733cf0b262d18de1baeef09108cd36

Signed-off-by: James Simmons <jsimmons@infradead.org>
LU-18153 osd: don't release uninitialized SA

if osd-zfs's object has no initialized SA, then do not
try to release that.

Lustre-change: https://review.whamcloud.com/57989
Lustre-commit: fa0e99f28aa015a721de6eea41019a58c25f8606

Was-Change-Id: I210ae1eb9cae0bfb02161efeee2f897d9c37294b

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
LU-18624 zfs: disable compression by default

By default ZFS is enabling compression which is causing test
failures for us. It should the administrators choice to use
ZFS with compression turned on or off. Change mount.lustre
zfs backend to handle compression=val mount option. By default
we will turn it off.

For the test suite we can use <facet_type>_FS_MKFS_OPTS to
turn on compression for testing.

Disable lots of conf-sanity test which are broken with ZFS 2.X.

Lustre-change: https://review.whamcloud.com/57990
Lustre-commit: de4f30d5c862e4887d001e8c29cf920e04c5f737

Was-Change-Id: I752c883f6f912a340aa346e1dfb8bf7bdef24939

Signed-off-by: James Simmons <jsimmons@infradead.org>
LU-17763 tests: use urandom in sanity/66

as zfs-2.2.6 compresses data by default and this breaks the test
using /dev/zero as a source.

Lustre-change: https://review.whamcloud.com/57987
Lustre-commit: 5751da80ecd57dfae9ad3c080b8c984605da47ec

Was-Change-Id: I6853c693e7cb560ae737025507e5377da82c787b

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
LU-18728 tests: use urandom to really consume ZFS space

It appears newer ZFS is using data compression by default, so reading
from /dev/zero results in files not consuming the expected amount of
space.  Instead, read from /dev/urandom for ZFS to write files in
sanity and conf-sanity to ensure they fill the OSTs, or the image
to be used for target creation, as expected.

Lustre-change: https://review.whamcloud.com/58115
Lustre-commit: 6153eed3ee180e8695c9e2e3d9ad9db8a6b73ad8

Was-Change-Id: I7b4e95032608d8db82c75e4b6dd1ec5beb6f8d99

Signed-off-by: Bruno Faccini <bfaccini@nvidia.com>
LU-18360 zfs-osd: za_name flexible array

zfs-2.3 commit 3cf2bfa57008af7f0690f73491d7f9b4ac4ed65a
  Allocate zap_attribute_t from kmem instead of stack

za_name maximum size increased to ZAP_MAXNAMELEN_NEW

Ensure zap_attribute_t.za_name space is available and
zap_attribute_t.za_name_len now needs to be initialized
to the allocated space of MAXNAMELEN.

Also mkfs should disable longname support as it would break
MAX_NAME interop.

Lustre-change: https://review.whamcloud.com/56656
Lustre-commit: d47a71f7a894a193957fe7771d43c5767979c117

Was-Change-Id: I6c48c66a42a36ea6816b37ffce7e17f45eed3dbf

HPE-bug-id: LUS-12561

LU-14094 tests: give zfs more wait time to unlink

In sanity.sh test_311, give zfs more wait time to unlink more
files as expected.

Lustre-change: https://review.whamcloud.com/56952
Lustre-commit: faf7b20eeae7550083842c810a3941f07859ae1c

Was-Change-Id: I17f278df3826fa38b71713c610d644cc7676c1ad

Signed-off-by: Emoly Liu <emoly@whamcloud.com>
LU-14094 tests: improve sanity.sh test_311

Improve sanity.sh test_311 to see why the number of the objects
doesn't decrease as expected.

Lustre-change: https://review.whamcloud.com/55566
Lustre-commit: c1bc42821d36f9ec5630e43c142abda60515d9e3

Was-Change-Id: Iabbaed42c5654ef31bc9f98fe9868785f8ff2f18

Signed-off-by: Emoly Liu <emoly@whamcloud.com>
LU-18272 build: remove Summary line from osd-zfs

Resolve spurious warning:
   warning: line 390: second Summary
when building src rpm:

Lustre-change: https://review.whamcloud.com/56506
Lustre-commit: 69e67fb582f846af45ac608b32be716e435d34e4

Was-Change-Id: I6aa591aae3ae4dc07a36740e12ef3520cea035ef

HPE-bug-id: LUS-12538

LU-15963 osd-zfs: use contiguous chunk to grow blocksize

otherwise a sparse OST_WRITE can grow blocksize way too large.

Lustre-change: https://review.whamcloud.com/47768
Lustre-commit: dacc4b6d384cbe6376a4cf106cc63ad1ac0cd23d

Was-Change-Id: I729775490f9a0c8262708931f321297af943f3c0

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
LU-6142 osd-zfs: Fix style issues for osd_io.c

This patch fixes issues reported by checkpatch
for file lustre/osd-zfs/osd_io.c

Lustre-change: https://review.whamcloud.com/54264
Lustre-commit: 4c0e328c9417ff196dc8e69f75c187dd21809ce7

Was-Change-Id: Ia9153be34a1d583195e3ecfc56ca4ab279781566

Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
LU-14692 tests: restore sanity/312 to always_except

The sanity test_312 was incorrectly removed from ALWAYS_EXCEPT.

Lustre-change: https://review.whamcloud.com/49720
Lustre-commit: 8767d2e44110fc19e624e963d5ebc788409339d3

Was-Change-Id: I6e8ed42561809b28fd6d5b4f7ee1104080ebe756

Fixes: eaae465556 ("LU-14692 tests: allow FID_SEQ_NORMAL for MDT0000")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Test-Parameters: fstype=zfs
Test-Parameters: optional fstype=zfs mdtcount=4 mdscount=2 \
  clientdistro=el9.5 serverdistro=el8.10 testgroup=full-dne-zfs-part-1
Test-Parameters: optional fstype=zfs mdtcount=4 mdscount=2 \
  clientdistro=el9.5 serverdistro=el8.10 testgroup=full-dne-zfs-part-2
Test-Parameters: optional fstype=zfs mdtcount=4 mdscount=2 \
  clientdistro=el9.5 serverdistro=el8.10 testgroup=full-dne-zfs-part-3

Change-Id: Ic9df52fc7933cc9129f3b6cb630199c8c44d6d59
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58834
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
14 files changed:
contrib/lbuild/lbuild
lustre.spec.in
lustre/osd-zfs/osd_handler.c
lustre/osd-zfs/osd_index.c
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_io.c
lustre/osd-zfs/osd_object.c
lustre/osd-zfs/osd_scrub.c
lustre/tests/conf-sanity.sh
lustre/tests/obdfilter-survey.sh
lustre/tests/sanity.sh
lustre/tests/test-framework.sh
lustre/utils/libmount_utils_zfs.c
rpm/kmp-lustre-osd-zfs.preamble