From nobody Wed Jun 19 17:34:24 2024 X-Original-To: freebsd-current@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 4W49jT0WP2z5NW74 for ; Wed, 19 Jun 2024 17:34:37 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W49jT029Mz42YY for ; Wed, 19 Jun 2024 17:34:37 +0000 (UTC) (envelope-from theraven@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718818477; 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=xpQGrMfr6gJTjTkX3NAAKce4yDwW7QEHUM1/oAN3/Xk=; b=icmk5oHYdEiijbqNBVIVKPgOGC3fP8hrx1TnnAaeP5zMTN2NwsW/GvJFPPwejQU85A0Qr7 Plww/HkcDBnm+nh7NyUG3cfJXsGq1raoDNk2Arfe4DRheuZbCfNw5T6izunFYJctKGrB5O L5ZsJEbuovASiYMS1l3hLbOWrULx5Flxg8hg1WMHIatAZ7GqqDDhZ80p48lWntTa05bLWf zoB8PmgUaaOmQNStarXxUYJmXdS2DLthEZcBqQwnT0THVomEfHCkYGrzPCZcNjvE8Byc22 uq2ocenSTWVnFL5wW65hUzgGaWIjVpkWskjlUqmbmlmbsoAk7IapH6zDh9ptgQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718818477; a=rsa-sha256; cv=none; b=dBUzqJqiz4OcfKsrbovVAsoewlqRqj+dAbIF9ENeX+jSFVxxFsEEw8+GFB6Zyi+TeQifUm Kk+KJr+hv1v12Q29F5hgoeWE7gEjce2mpgOJZo/JVnDy+5ucTYYx3giqTcn4DXzP0Bffj4 2cGWNzHyAmSsmigniG++qBmGhl1+9x4nyKZEprQTsqFkd8YAuqj0B2xGoET5zpJdVZJ0sN 3N4ev4R0sdGsojWyuc15VZARCV+qNgMF1gg84UjFjaHImDUVxrEQO/SkWGGmVmk+Hlxx6B Ki8Pb6sZ5ARNWQUXePBx7mvt4iiZ5YPIANhBW7TXChrxu1hvFG8l+tAi2lrhIg== 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=1718818477; 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=xpQGrMfr6gJTjTkX3NAAKce4yDwW7QEHUM1/oAN3/Xk=; b=T/GxxZ/OrGINSPhXVNBEGgyvRXWfW9QJ/PL0ymDdu5RtzIzjc1c7BGZHFiF7AuECGKAA+0 ncatSfN15e3ZslhiA2Ff70Ldc6yEgc0KamkH8DejD4YsKklyvZDylHzPu0oSm0e2W6tLfl asvQphXYybZAYjftrIEtAFtkkbQES/0niaRkez8Ygin6vJOdAtatMVcjyRe0pWnDkciDoV p9+5uiYqTBeHjldI/MAqUSzaj3PmTmg01oIQotnibEKOWfbZ9fbSZPJsprzyhnsALqck3g iLCAmmDAmY4x+aK7v5D6WaGIaw4aEPTOV3FrlC2HBCPCKCWaxJOcSIbiTL2stw== Received: from smtp.theravensnest.org (smtp.theravensnest.org [45.77.103.195]) (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) (Authenticated sender: theraven) by smtp.freebsd.org (Postfix) with ESMTPSA id 4W49jS6bqRzSx9 for ; Wed, 19 Jun 2024 17:34:36 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from smtpclient.apple (host81-131-179-19.range81-131.btcentralplus.com [81.131.179.19]) by smtp.theravensnest.org (Postfix) with ESMTPSA id CEA59B785 for ; Wed, 19 Jun 2024 18:34:35 +0100 (BST) From: David Chisnall Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Is anyone using libzfs_core on 15-CURRENT? Message-Id: Date: Wed, 19 Jun 2024 18:34:24 +0100 To: FreeBSD Current X-Mailer: Apple Mail (2.3774.600.62) Hi all, I have some code using libzfs_core that works fine on 13, but seems not = to on 15-CURRENT. The lzc_snapshot function is failing with exactly the = same nv list argument. It is failing with errno 2 (ENOENT) from the ZFS = ioctl (and not returning an nvlist of errors). My understanding is that the zfs command-line tool wraps libzfs_core and = so it must be working somehow. Has anything changed in between 13 and = 14 that would be expected to cause incompatibilities? The fact that we = don=E2=80=99t install usable headers for these libraries makes it quite = difficult to be sure that I haven=E2=80=99t done anything wrong, but = stepping through the libzfs_core bits in a debugger, everything looks = correct up to the ioctl call. David