From nobody Sat Nov 02 04:08:11 2024 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 4XgPNC5lJsz5bdsd for ; Sat, 02 Nov 2024 04:08:11 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XgPNC4fJWz4K3g for ; Sat, 2 Nov 2024 04:08:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730520491; 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=kX8wdCrQBQswh4FjzvrZqHITvhezRwo8hLnA5UWdFM0=; b=FHjNQZwRYAS5GZ2W21Iv3tlYdJhkbTNS9KD485Eum5bSgwqG54kn8DZk5/fmtOeew1Xx18 Nmu1jA1nMlaYGFaNTzD7jkbbFzRpspYjWGvQPCiNiwctstD4iJaYszV2B0AfTms/ujUycf 20hEoW5O33lVEuaE68TvX+p5sogkM21Z/Kx9ikyGWI2IkSneGCs38JH2BvGI9bRv2zVkUS aVyAED+GR3X+ARYbhPpX39HRGjpkL6uoSvfnnXLq9oaWGvHbTCAGEmpxAD4TL0zOP9Rn8Y NnEvZM5cA2915HUTA65joZar4hats7KwiZ5FKXyd+XLtHDlDDaubaNspfacyJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730520491; a=rsa-sha256; cv=none; b=a0n03vHfPrhNxo1fJIcybiMSfDnosFNuoa+2XKzvVm/iH8TXe6q7k6ZMUqYpXKyn48xPJI QtPk9TPeGMZUicl5wyVUbQd87jaA34OOOOY+1brUYl/mD0i1rDYaabNpfX/pif6pASqzXm 0INzEdbNSPQnm2kGFnBlLu/51ikr5DHASfdr7zHcDVi7SJtUAHJnKrGlUFgO+4afd2BzK5 GC4+DjRVilkWuw7WT1TYlcbiz47BBlyWN3P4DXOInGGD3gGADUM+l/3Wi4pUOjEVyKyceB QrZWEx8x1H2qt7to+2cJqS7v8qZu4ehHfrU3+pNy9pLJyeh0aOiOKW8aiGPWzw== 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 4XgPNC44Byzpg3 for ; Sat, 2 Nov 2024 04:08:11 +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 4A248Bjl035941 for ; Sat, 2 Nov 2024 04:08:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4A248BTi035940 for bugs@FreeBSD.org; Sat, 2 Nov 2024 04:08:11 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 282482] Need to be able to specify NFS mounport and not use port mapper Date: Sat, 02 Nov 2024 04:08:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rminnich@gmail.com 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282482 Bug ID: 282482 Summary: Need to be able to specify NFS mounport and not use port mapper Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: rminnich@gmail.com GitHub.com/u-root/cpu is an implementation of the Plan 9 cpu command. In cp= u, users connect from a local system to a remote system, but it is possible to= use some or all of the local file system on the remote system.=20 cpu is used by both ARM and Google, among others. More information here: https://docs.google.com/presentation/d/12_mZR-tpjHNrq6xMEqXQMHPiQej4o3Mink-= Rkapiw50/edit?usp=3Dsharing cpu clients work today on linux, Darwin, osx, and windows.=20 cpud works only on Linux.=20 We are getting cpud working on freebsd.=20 To get this to work, however, it must be possible to use both the NFS3 mount and NFS3 server provided by the cpu command.=20 The problem comes in when cpud tries to mount the NFS3 server provided by c= pu. Currently, freebsd mount assumes that all mount servers are registered with= the port mapper, and uses SUNRPC calls to port 111 to locate and connect to mou= nt servers. If no port mapper is running; the mount will fail. Even if a port mapper is running, there is no practical way for the cpu client to contact = the port mapper on the system running cpud; we would not want it to, anyway, as= the mount namespace provided by cpu should be private to the single session it = is running with cpud*. Linux allows us to specify the mount port of the mount server, bypassing the port mapper entirely.=20 We would like to have this same ability on freebsd. One option might be as follows: add a mountport option to the set of options passed to mount_nfs. mount -t nfs -o mountport=3Dabcde,port=3Dabcde,etc.etc 127.0.0.1:whatever /some/directory. *While there do not seem to be private mount namespaces on freebsd at prese= nt, we hope there will be someday. Nevertheless, even without private namespace= s, cpu/cpud would be very useful for small IoT devices. --=20 You are receiving this mail because: You are the assignee for the bug.=