From nobody Mon Mar 23 19:14:59 2026 X-Original-To: bugs@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 4ffjXz52z6z6WPMN for ; Mon, 23 Mar 2026 19:14:59 +0000 (UTC) (envelope-from bugzilla-noreply@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" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ffjXz4PHzz3MPB for ; Mon, 23 Mar 2026 19:14:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1774293299; 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=4oKiuBOIEkkuGHbJpj6YimAYuOYKoHs7HIwwVYWNUoY=; b=TWKIHjjbzbdJayKu+/LVjGn6Lg9r252+ox7Ow4sDnptsgPSemzB7e2ZRrupYHSpovihixq skt++PtOAyPmNO7d/pETDaUvQj7hCndJMTrSUlxd87Y0gHCgVXppbBheE5D7KJnlZxrw+H apY1quNcy5bAZKzOtiCczWVrZEQGgOhdcqPyUvDVVE9kUxEyEh39iUhMSFHptguLWFx/wQ 5YeWer78JO7k+5mI+9FrS/UyDKdU5nrW24KJnmT4zHo7oLhztssNyZQ9dlvgVQsx91QZhk 3/ucyV1Q5HCVlDZ3MVna3HVCVXCshBdgZs8NG9p7SIGWLfqwh5l7LqADndr75g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1774293299; a=rsa-sha256; cv=none; b=POIrgMjhaxSIflxZ07HEI6zWzCH/SpaIzwoHm178/rarxszNKXjf6RBndYGPg3M6bB6kJ6 KPTUv/eWvLTekd52HgqIt/q4NPZa9hH3moxEv8AryeXPjYWRbniWmeuoYmfXbAUg5yI7xh BdHk2rDEnrgifMw0fgIgjGsi9cXWLqS5RXKoh39k744uxzN9faEHy7LXQx9BdgVpsKNqaG NcmKhF7eWrR0ymNwI4xaDnqjp2AtwEn1Kxc47kdLjx7nioAt31JQu9jKYKDDYEyoZImKrz qlaJ+9TTFs3geCdJ781PwlP2pHunoJl7s2NZ1vpDUm1sbR9QCMaOKs0wBsruxA== 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=1774293299; 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=4oKiuBOIEkkuGHbJpj6YimAYuOYKoHs7HIwwVYWNUoY=; b=m39ADP3pm8FvD2daDex/c8kz7vVkFRLC2DTefCSQc4oP8vUeY79S8wipCskUlrD4W4agWZ 3Qd3uTyu865zpcwqvKls9z3scIDz3JQQHZFXEF0/iFNl0Cv+M87cz4O5WUyJbXa/xHhMZs olNDwDqIi3/IKYYcm5m5+cNthM5DKu3NZ2+PiOcJEfyV1j+CSFA00d456/8WPgv07e4sZi bv2IS1wJsSi2GRDTs4sH648svYw7gQQFu24TjfqFM0iNBFPnft5pswtVsgHe1gWz7Aperc xvPrsqtUnX1DFn6uAjLWovdmdVFK/t/oq+uaplH/rFLpHnBgDhXM4yQUXDBasw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4ffjXz40DLz11s9 for ; Mon, 23 Mar 2026 19:14:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 62NJExW1071207 for ; Mon, 23 Mar 2026 19:14:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 62NJExRo071206 for bugs@FreeBSD.org; Mon, 23 Mar 2026 19:14:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 294010] NFSv4: cp fails when restoring from a ZFS snapshot (copy_file_range issue) Date: Mon, 23 Mar 2026 19:14:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.4-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pmc@citylink.dinoex.sub.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D294010 Bug ID: 294010 Summary: NFSv4: cp fails when restoring from a ZFS snapshot (copy_file_range issue) Product: Base System Version: 14.4-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: pmc@citylink.dinoex.sub.org Background: ZFS filesets carry a hidden .zfs directory at their toplevel. Within that directory are the current snapsots of this fileset mounted as readonly tree= s. Therfore, after one accidentally deletes a file and a suitable snapshot exi= sts, one might just restore the file from that snapshot: $ cp .../.zfs/snapshot/snapshot_X/someplace/somefile .../someplace/somefile Problem: Doing this on a local ZFS fileset works as expected. But doing it via NFS o= n a remote ZFS fileset copies 0 byte (the empty file is created) and then repor= ts the error "Read-only file system". Tests by forum members have shown only NFSv4 minor 2 is affected, the other versions, and NFSv3 apparently work correct. And apparently, besides 14.4, 15.0 and 16-current is also affected. On forums popular demand this should become a bug report (sorry, Rick): https://forums.freebsd.org/threads/nfs-read-only-does-not-allow-reading.102= 080/post-750701 --=20 You are receiving this mail because: You are the assignee for the bug.=