From nobody Wed Jan 3 01:37:47 2024 X-Original-To: dev-commits-src-branches@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 4T4XQz5bJVz56M84; Wed, 3 Jan 2024 01:37:47 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T4XQz5581z4GRP; Wed, 3 Jan 2024 01:37:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704245867; 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=V/P0hIzWkh2kPbDQYBSe/4RB+iLSZYMY2Y5JGwG9BWY=; b=r5XAQvpaAX7G7LpaHrUIoKg+qfZkgw4FASXpWsHYWI/9lKcUkdlYcRp8ETxpH4Uq/46LpD gmGwiRO3yPSFpyk8pC0ygDxRHx+Ltd99PvyhX7h9w0OpQl5s5EMrvNdNN5ofcCVYGkMSXq RSIMUNUNGeiu2OM7uy9FIXJvBrOo+1r+zTqBQxdDZ/p5GDUsKJbT/FnnND25rwgs6V487u Oc4qERlGpFN9Pi0OEfGbyjB+TlaQxgNkNpQLxUTvBH/JqSq1QeJH4L9nZEyFhsAqs2yi21 njPUlL3r0EPO1ySPvinBrS87NW/3SrPx3yu7GYEd+1obdsfFY7g1KuXNPIR6JA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704245867; a=rsa-sha256; cv=none; b=J8/cIKc4wms9X+nRmE9hQcuTemA0UV9tvkbs/1RJCGSJ/BKYkQc5qBQ5LtqWVP/2DbwqKd kvIg1U3TFFzM0tzRpoF4pSo2x318dV5cDw7JBmRHQlvK8E/HEV9ejyqZUHMqwcn//UI7Wa 1m6db+XcwMxJ5r2N7DT0dxjBi8UlOefr+TaNP4zFue0kj07JNGm9Cdk1irKF3IQGKbHB1h hHtJ4FiufP3jkwTGyqJ8g4Z1V12ckWIPGQPkWIo1dPKIHHfNUa21ZFihVXIQOs/OPNdy9R p495oBvdLFU1Wn/HMLfb4t0e9YXbUjj9Ddy5q2vRluA3penBqhqGGx16V+R+Gg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704245867; 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=V/P0hIzWkh2kPbDQYBSe/4RB+iLSZYMY2Y5JGwG9BWY=; b=lozOa6069KibmkxjpXbYnxUEZv9PBfS/orfuQC+hg4AcsyXene6+/OsLWXtUr2RdYvGTMV oloZm+GZXX8zbv8WxeaSnjfmxkiW8+SSQs3xL64q1DSCYuREvCS8LIufTylnb2tCyUR4sp y9eR+byQ12Z2nJGURcw8hqJdqWMP/XKNoQZMO65FOTc0iSEwJzXf9SvLT2Ghm1heIcgpuU I8uY8lbGuF6djPRlI7pEYIFzqwHy5Ap6d9cDxcsYPHDSHupdi2dKJ6DjQexfQ7So+dG6lq VTCv1ase1L46SgEMsCyGG/8TNX23zcqU/iOoBZFIoZLHPBpLk0HVjtVsnYsaIw== 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 4T4XQz47Yvz1PC9; Wed, 3 Jan 2024 01:37:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4031blJ4006943; Wed, 3 Jan 2024 01:37:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4031blBP006940; Wed, 3 Jan 2024 01:37:47 GMT (envelope-from git) Date: Wed, 3 Jan 2024 01:37:47 GMT Message-Id: <202401030137.4031blBP006940@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Motin Subject: git: 78e1cf110e38 - stable/14 - stand/zfs: Remove read-compatible features List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mav X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 78e1cf110e381c683afd1a9ef2006753417031ba Auto-Submitted: auto-generated The branch stable/14 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=78e1cf110e381c683afd1a9ef2006753417031ba commit 78e1cf110e381c683afd1a9ef2006753417031ba Author: Alexander Motin AuthorDate: 2023-11-04 16:26:25 +0000 Commit: Alexander Motin CommitDate: 2024-01-03 01:37:34 +0000 stand/zfs: Remove read-compatible features These features are marked as ZFEATURE_FLAG_READONLY_COMPAT and so irrelevant for read-only pool imports by the loader: "com.datto:resilver_defer", "com.delphix:obsolete_counts", "com.delphix:spacemap_histogram", "com.delphix:zpool_checkpoint", "com.intel:allocation_classes", "org.zfsonlinux:allocation_classes" This should cause no functional changes, just a code cleanup. MFC after: 2 months (cherry picked from commit 939a62d673e6c340ee2b7243074a529919e39196) --- stand/libsa/zfs/zfsimpl.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/stand/libsa/zfs/zfsimpl.c b/stand/libsa/zfs/zfsimpl.c index b904ead24e1d..253cfd2f16e3 100644 --- a/stand/libsa/zfs/zfsimpl.c +++ b/stand/libsa/zfs/zfsimpl.c @@ -113,23 +113,19 @@ typedef struct indirect_vsd { static vdev_list_t zfs_vdevs; /* - * List of ZFS features supported for read + * List of supported read-incompatible ZFS features. Do not add here features + * marked as ZFEATURE_FLAG_READONLY_COMPAT, they are irrelevant for read-only! */ static const char *features_for_read[] = { "com.datto:bookmark_v2", "com.datto:encryption", - "com.datto:resilver_defer", "com.delphix:bookmark_written", "com.delphix:device_removal", "com.delphix:embedded_data", "com.delphix:extensible_dataset", "com.delphix:head_errlog", "com.delphix:hole_birth", - "com.delphix:obsolete_counts", - "com.delphix:spacemap_histogram", "com.delphix:spacemap_v2", - "com.delphix:zpool_checkpoint", - "com.intel:allocation_classes", "com.joyent:multi_vdev_crash_dump", "com.klarasystems:vdev_zaps_v2", "org.freebsd:zstd_compress", @@ -138,7 +134,6 @@ static const char *features_for_read[] = { "org.illumos:skein", "org.open-zfs:large_blocks", "org.openzfs:blake3", - "org.zfsonlinux:allocation_classes", "org.zfsonlinux:large_dnode", NULL };