From nobody Sat Nov 02 04:07:53 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 4XgPMt1Z53z5bfM7 for ; Sat, 02 Nov 2024 04:07:54 +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 4XgPMs4MS7z4Jgf for ; Sat, 2 Nov 2024 04:07:53 +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=1730520473; 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=+6o9GfJI184nJfxehmscuSJAb7P0hJhyucCUBtOGQ6A=; b=DPC0mpM0LUPIw/igZ+v5/Tlndnamb8lGxZ+AiFNLfvRJ4Gq8lWnfGNxA4aYJHBOIo9O4FJ 9Rc1+jaaSffQwiQ7HwT1QHMEPM1dvPymKA+4szF7s1KS9MfBBsdHP1xAh50wpDVmXq6q4D nBXql+NQbqe/io7/tBaO66T9O4tGahraMhiq56Nlb5PYI3pmThBek1wKR+cPoNAAflWAgZ GYCG4rknjJG58NXrJ7brkPHOSIM/2qhm4S+9Pov3CMZD8G6wD246n7LbYzH4TxG+Gyxb4T 8bweNVtfQbN5EBPgLC1OXDP92synhJZThqosQhDRc0gvCQc49xNn4QofeVJg7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730520473; a=rsa-sha256; cv=none; b=FoN7/ViidDBjjjSNFcnUBXXZ27YjSyD7NwimiMNKu06Hh98gaQr2K2lAFlsj4xL6Ce4tQK i7szg8wETZtdz8pxGxT1FHrgQqGVBje9d4H8gqHVSFPIacYjS4POuAeZtNGzpsStt44Iyv /dPdXoTVphmBKGsQVtznDW8HBAUuQ/VH0FEv4xmqHXP8lks01mKKnc7is5Z/5qBQ490NNm 4nqSJ+fZu68n+QQHj4WFeOMwb2g9LSimAqHxFmLy5WtirhXKWiUJdQ106zkKdai0rfgWou Vr1N6cN6yeB09jQR7kSE+KnP2TxSyol+dPhkG6HVpZFc5ZKtcUjg7qPM5fBSOw== 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 4XgPMs3YL4zq2d for ; Sat, 2 Nov 2024 04:07:53 +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 4A247rl3035629 for ; Sat, 2 Nov 2024 04:07:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4A247rgY035628 for bugs@FreeBSD.org; Sat, 2 Nov 2024 04:07:53 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 282481] Need to be able to specify NFS mounport and not use port mapper Date: Sat, 02 Nov 2024 04:07:53 +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=3D282481 Bug ID: 282481 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.=