Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 May 2023 22:03:02 +0100
From:      Jessica Clarke <jrtc27@freebsd.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        "src-committers@freebsd.org" <src-committers@FreeBSD.org>, "dev-commits-src-all@freebsd.org" <dev-commits-src-all@FreeBSD.org>, "dev-commits-src-main@freebsd.org" <dev-commits-src-main@FreeBSD.org>
Subject:   Re: git: 48f52d9179d5 - main - zfs: Fix build on 32-bit platforms after most recent import.
Message-ID:  <029A33E2-BB27-4D43-808B-1634E7EA69C0@freebsd.org>
In-Reply-To: <202305251412.34PECDM9045900@gitrepo.freebsd.org>
References:  <202305251412.34PECDM9045900@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 25 May 2023, at 15:12, John Baldwin <jhb@FreeBSD.org> wrote:
>=20
> The branch main has been updated by jhb:
>=20
> URL: =
https://cgit.FreeBSD.org/src/commit/?id=3D48f52d9179d5920750cef0c5d921db63=
de4d767d
>=20
> commit 48f52d9179d5920750cef0c5d921db63de4d767d
> Author:     John Baldwin <jhb@FreeBSD.org>
> AuthorDate: 2023-05-25 14:11:38 +0000
> Commit:     John Baldwin <jhb@FreeBSD.org>
> CommitDate: 2023-05-25 14:11:38 +0000
>=20
>    zfs: Fix build on 32-bit platforms after most recent import.
>=20
>    unsigned long is not a uint64_t on 32-bit platforms.  The zfs.4
>    manpage documents this variable as a uint, and it is only compared
>    with other variables of type int, so uint_t makes more sense than
>    unsigned long.
>=20
>    (I also wasn't sure if ULONG would work as a ZFS_MODULE_PARAM type
>    on other OS's)

FYI https://github.com/openzfs/zfs/pull/14894

Jess

> ---
> sys/contrib/openzfs/module/zfs/dsl_scan.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>=20
> diff --git a/sys/contrib/openzfs/module/zfs/dsl_scan.c =
b/sys/contrib/openzfs/module/zfs/dsl_scan.c
> index 5e3559b251e3..07a527e332bc 100644
> --- a/sys/contrib/openzfs/module/zfs/dsl_scan.c
> +++ b/sys/contrib/openzfs/module/zfs/dsl_scan.c
> @@ -234,7 +234,7 @@ static int zfs_resilver_disable_defer =3D B_FALSE;
> static int zfs_free_bpobj_enabled =3D 1;
>=20
> /* Error blocks to be scrubbed in one txg. */
> -unsigned long zfs_scrub_error_blocks_per_txg =3D 1 << 12;
> +uint_t zfs_scrub_error_blocks_per_txg =3D 1 << 12;
>=20
> /* the order has to match pool_scan_type */
> static scan_cb_t *scan_funcs[POOL_SCAN_FUNCS] =3D {
> @@ -5242,6 +5242,6 @@ ZFS_MODULE_PARAM(zfs, zfs_, scan_report_txgs, =
UINT, ZMOD_RW,
> ZFS_MODULE_PARAM(zfs, zfs_, resilver_disable_defer, INT, ZMOD_RW,
> "Process all resilvers immediately");
>=20
> -ZFS_MODULE_PARAM(zfs, zfs_, scrub_error_blocks_per_txg, U64, ZMOD_RW,
> +ZFS_MODULE_PARAM(zfs, zfs_, scrub_error_blocks_per_txg, UINT, =
ZMOD_RW,
> "Error blocks to be scrubbed in one txg");
> /* END CSTYLED */




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?029A33E2-BB27-4D43-808B-1634E7EA69C0>