From nobody Tue Oct 7 21:57:35 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ch93h23fZz6C4F0; Tue, 07 Oct 2025 21:57:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ch93g6QFgz3JWx; Tue, 07 Oct 2025 21:57:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759874255; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SspvKFNypzb7MuLdW7kwJNHfnlfAuQEnzqAvHj1IlsA=; b=ssAEWTjSRuYi0X3BTBeJHdNd4qtVAVuCV3rlyWJZ5761N0zANvWOaGYfJ7cs7o5k4ce+lC +RzE7zz/QwSmiknFxGY+9lImleSODfFBY8csSqVia/z9B/Qe5qIQt4M2D0xywkIpafBzQo SrhoATd4+j8PU0kS3+EqYXwi+AkQHF2a643107gd9X06nazap3PLslfU7YBe88aPnC2H52 0thHCojdLoNFftcN8o34ebXPRtJlRnwWWRRHaAmAsU3KW0KLdN6VlDfcxX8TH9+BT5QY2v 1UlZu4TfSK3YJr8HZTyt+W1iDMtgHO5k7ipC3PupCTyC9e/PWy+Gm13t4Ds3UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759874255; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SspvKFNypzb7MuLdW7kwJNHfnlfAuQEnzqAvHj1IlsA=; b=GzdIXW1HaPmM0Up1bva8vtHrvDESUWsK8ut2Ws7olEyNlUlrzbwRptbeNn4iWiw00jXdim vbgEMdy5LiOuUOBqaH4cK5ALrwbyBN00NdPg8v/wHVyBSobhKD0HM7ifKYcvBYjI+LIJ+R fNeFt7RzPLdY0xxat6LLzk8U9djvisG3TCuFaxU5BhgbKJMweVXcAvq1vTv8sYTRUjCF+q UBkNe61BCMFW2BpGCWCINAQ2vEy1Uv1h172aSDuvCEZRepULvpFfPR6k/rMQFdDHQSwYR6 3Tzyo9AX4wm99jDdTK8nopfV7nMuDOEwqcvFb5eccwznYAkptHHtmJB8Uk3Lzw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759874255; a=rsa-sha256; cv=none; b=lB5h5hW+kb1ESp/w0d+ZuhNKniiYyPWSt9yxM5YQWZNoElGnCkYrHZqUY3LytqLWXkLHNC gO0DBY6+y1ltmGnNw4rijdEQ1SlsfWjNliVX2pzyBWrL29KRVD2MpI0+7KcyGjZnEK6kYX 4Zz/oEjD1n8w41o5hoBx0/cTOj0Bgy2yPT98hlIRKPKYRYFDtLr1Ilk8QTUQzHJMMjTgez /vMvPJ2Ljc9NpvoZFamPFqdQhf+FQPhvy5OGH1X8igKfhselOEx6NZ4D4hX52p/Jh1d5C4 CSqr9+QuhL8vxMlUVxcfUjDyBUFCdnZSEd6kp2NOxGWP/bruoHfksJikKpunCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ch93g61Lyz13NT; Tue, 07 Oct 2025 21:57:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 597LvZh9099248; Tue, 7 Oct 2025 21:57:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 597LvZWR099245; Tue, 7 Oct 2025 21:57:35 GMT (envelope-from git) Date: Tue, 7 Oct 2025 21:57:35 GMT Message-Id: <202510072157.597LvZWR099245@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Cochard Subject: git: 2e09ec72417c - main - tests/aio: Add support for larger max_buf_aio to vectored_big_iovcnt test List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olivier X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2e09ec72417c6c2927185f4d63faea9ac7926c2b Auto-Submitted: auto-generated The branch main has been updated by olivier: URL: https://cgit.FreeBSD.org/src/commit/?id=2e09ec72417c6c2927185f4d63faea9ac7926c2b commit 2e09ec72417c6c2927185f4d63faea9ac7926c2b Author: Olivier Cochard AuthorDate: 2025-10-07 21:45:35 +0000 Commit: Olivier Cochard CommitDate: 2025-10-07 21:56:23 +0000 tests/aio: Add support for larger max_buf_aio to vectored_big_iovcnt test Fix a test failure that occurs when max_buf_aio exceeds 31, as the calculated buffer size exceeds the 16 KB memory disk device. Increase the MD device size to 1 MB to prevent truncation. Rename MD_LEN to DEVICE_IO_LEN for clarity and add a more descriptive error message. Reviewed by: asomers Approved by: asomers Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D52914 --- tests/sys/aio/aio_test.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/sys/aio/aio_test.c b/tests/sys/aio/aio_test.c index b9f8e7062203..def8a9d548d6 100644 --- a/tests/sys/aio/aio_test.c +++ b/tests/sys/aio/aio_test.c @@ -775,7 +775,7 @@ ATF_TC_BODY(pipe_waitcomplete, tc) aio_pipe_test(waitcomplete, NULL); } -#define MD_LEN GLOBAL_MAX +#define DEVICE_IO_LEN GLOBAL_MAX #define MDUNIT_LINK "mdunit_link" static int @@ -794,7 +794,7 @@ aio_md_setup(void) mdio.md_version = MDIOVERSION; mdio.md_type = MD_MALLOC; mdio.md_options = MD_AUTOUNIT | MD_COMPRESS; - mdio.md_mediasize = GLOBAL_MAX; + mdio.md_mediasize = 1024 * 1024; /* 1 MB, enough for max_buf_aio up to 2047 */ mdio.md_sectorsize = 512; strlcpy(buf, __func__, sizeof(buf)); mdio.md_label = buf; @@ -856,7 +856,7 @@ aio_md_test(completion comp, struct sigevent *sev, bool vectored) int fd; fd = aio_md_setup(); - aio_context_init(&ac, fd, fd, MD_LEN); + aio_context_init(&ac, fd, fd, DEVICE_IO_LEN); if (vectored) { aio_writev_test(&ac, comp, sev); aio_readv_test(&ac, comp, sev); @@ -1846,7 +1846,9 @@ ATF_TC_BODY(vectored_big_iovcnt, tc) atf_tc_fail("aio failed: %s", strerror(errno)); if (len != buflen) - atf_tc_fail("aio short write (%jd)", (intmax_t)len); + atf_tc_fail("aio short write: got %jd, expected: %jd " + "(max_buf_aio=%d, iovcnt=%zu)", + (intmax_t)len, (intmax_t)buflen, max_buf_aio, aio.aio_iovcnt); bzero(&aio, sizeof(aio)); aio.aio_fildes = fd; @@ -1995,7 +1997,7 @@ aio_zvol_test(completion comp, struct sigevent *sev, bool vectored, int fd; fd = aio_zvol_setup(unique); - aio_context_init(&ac, fd, fd, MD_LEN); + aio_context_init(&ac, fd, fd, DEVICE_IO_LEN); if (vectored) { aio_writev_test(&ac, comp, sev); aio_readv_test(&ac, comp, sev);