From nobody Fri Dec 29 23:01:02 2023 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 4T217z3Tb0z55Spw for ; Fri, 29 Dec 2023 23:01:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T217y5hKDz4Fmm for ; Fri, 29 Dec 2023 23:01:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703890862; a=rsa-sha256; cv=none; b=XQE8ozUuk/eChFIp/Go0B5ie828Jq7hAUd1KcDnSHsPxQBRnMicdoeQV/l1ue8UQDAO1zG rWot6nG6aiPIXtj4hp01hfmQvu+MdGFAYdaFfqa9+xAabGZ8zl206m0IhATwS8DmHcov2p k9wZE4iIbzOyIpsm7D8zMnDF96Kn9YnlUmmwRf2efoY+Z6Do2uaaRvR5uA/tatHEB6D87R 8EnRa3vjIrhRWVFQsb14thrnKx8tGNH/xysBQBw8vOX0Ck7n12Iyu0ehVe5t2JU/o834Df CoCD3i/cm7qjO8+1AnqwZ98VzX30hnpCnoOusNelat72AJZee5I766vYwv249w== 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=1703890862; 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: in-reply-to:in-reply-to:references:references; bh=JQKh6AD4/QCV7eh9cIZPowZcyohEYi7spN5cEKZHBK4=; b=JisPsz6P0+91/mOLOcaCn93hY9VUNSWFNHtTZadcKIs0Xq0I2DRdfonZERALSp+jFhdGpN 7KZI9W2lhiGQU/iFdFEh6vg09ga+asDMlVMGdzvJqNHS7QhqnPfdtDJfc6hAu9JfoKUuFY 3HV3UPHC4evk3BBC++GX6zm/K/f9IvhTV4wjqcdZ0ScY4570BW7Wr+0nIc8+BGNbFnQMBX jbdc1HJPtNvHClpOA0L2eRzYDqIMnObUTRSPJX+0B0Us9KMlk9BwaVcgBUcBM6OnUGLkm/ ApmBKsXQpr3wiovSvtVKPfQjSP6BKCBn4ztBkCNhNm7rsHJ7raxGAHzU4ZnRkQ== 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 4T217y2zDJz94x for ; Fri, 29 Dec 2023 23:01:02 +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 3BTN12uU060485 for ; Fri, 29 Dec 2023 23:01:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BTN12SL060484 for bugs@FreeBSD.org; Fri, 29 Dec 2023 23:01:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 273962] copy_file_range does not work on shared memory objects Date: Fri, 29 Dec 2023 23:01:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D273962 --- Comment #13 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D84b4342c0d7ac8a3187309a978d41e676= 5154cc1 commit 84b4342c0d7ac8a3187309a978d41e6765154cc1 Author: Rick Macklem AuthorDate: 2023-12-29 22:59:00 +0000 Commit: Rick Macklem CommitDate: 2023-12-29 22:59:00 +0000 copy_file_range.2: Clarify that only regular files work PR#273962 reported that copy_file_range(2) did not work on shared memory objects and returned EINVAL. Although the reporter felt this was incorrect, it is what the Linux copy_file_range(2) syscall does. Since there was no collective agreement that the FreeBSD semantics should be changed to no longer be Linux compatible, copy_file_range(2) still works on regular files only. This man page update clarifies that. If, someday, copy_file_range(2) is changed to support non-regular files, then the man page will need to be updated to reflect that. PR: 273962 Reviewed by: karels, pauamma_gundo.com (manpages) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43227 lib/libc/sys/copy_file_range.2 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=