From nobody Sun Dec 05 17:52:52 2021 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 C523D18B278F for ; Sun, 5 Dec 2021 17:52:52 +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 4J6Z0N3bkdz4ZCc for ; Sun, 5 Dec 2021 17:52:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 5C0671C3C3 for ; Sun, 5 Dec 2021 17:52:52 +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 1B5HqqJv012157 for ; Sun, 5 Dec 2021 17:52:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B5Hqqm6012156 for bugs@FreeBSD.org; Sun, 5 Dec 2021 17:52:52 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 260241] [feature request] Provide a sysctl or fcntl that would return the list of paths for a given file descriptor Date: Sun, 05 Dec 2021 17:52:52 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yuri@freebsd.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-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638726772; 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=lsd/ZQBgDsI2raGGtgxdirw3PgbY5nrYENcA2y2/Ics=; b=Mgy0yaEPeozncP43Pp7shlPnms74P76j2I1bRNkOGI8SiIB33fMg4imuIN7Bbf7hwlpywI bxTPDbDXdkZeYllbxyZZ+B8iwSWEsiVys1woILLFK0SYlaXeHVSPtWhrAEBYaWaILEJA+f Qyg86dSKgmHLFOfM6X1htkLiELF0ItheTbNXju+jYdso8h2FBPelJLyspHHN1iqRPWUMgn FmvYxFd4r8gcUsW4ZudScbdskTjIPFrVAJB+2mPYaIrnA7fUTasZwuJNKxP8610IHU8ppQ Z1jXZG+csYCquF0Kaui/sVFg1HHDRPw6FHF+lBi8EJfKrJP2//IGkNQCxFwxOw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638726772; a=rsa-sha256; cv=none; b=GMyfMB8v19ZDoa1JTShy8SeNMb0Fiq4+XE3itcuChaQ4uLrRAvr3Al0k6tBBoJYqZvS7Xo V6YIYVPiqf6hPfs0L8jS3RfuHLIwh7mDDIDaRtdgfqPHs9Xevj6Ks7jlsXn6S1ZsIKag70 7gtIZbxVXrEajON+mS3nbzypVLLHXtJRjBkSvuT3bpI4X9gIgFW7Zbc71U0Qiw5BM7lJvW +FUcGLX5gj2jrtEoLXBDElBYTHbgwFSvXPRcWyGYx2MUuYQ8jN/OD2jbwrTwIDNoDQWLIW Hl8awz00K64noU9V4FJxWmeKtJi+0lZGTxcJaNY3lzpuC2jLuSpdhRU76Os31g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260241 Bug ID: 260241 Summary: [feature request] Provide a sysctl or fcntl that would return the list of paths for a given file descriptor Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: yuri@freebsd.org At least two projects are blocked on FreeBSD due to inability of such looku= p: 1. sysutils/watchman 2. The USD project: https://github.com/PixarAnimationStudios/USD/blob/release/pxr/base/arch/fil= eSystem.cpp#L470 This was discussed in hackers@ around July 2021. It would be beneficial if sysctl or fcntl would be able to return a list of file paths for a given file descriptor. This list of paths can be empty when the file is deleted, or it can have multiple paths when the file is hard-linked. Yuri --=20 You are receiving this mail because: You are the assignee for the bug.=