Summary: | Need to be able to specify NFS mounport and not use port mapper | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Ronald Minnich <rminnich> | ||||
Component: | bin | Assignee: | Rick Macklem <rmacklem> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Many People | CC: | pat, rmacklem | ||||
Priority: | --- | Flags: | rmacklem:
mfc-stable14+
rmacklem: mfc-stable13- |
||||
Version: | Unspecified | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Ronald Minnich
2024-11-02 04:07:53 UTC
*** Bug 282482 has been marked as a duplicate of this bug. *** oops. Sorry. hit some kind of glitch. Created attachment 254886 [details]
Add a mountport option to mount_nfs to avoid rpcbind
This patch adds a new NFS mount option called
mountport that can be used to specify the port#
for the NFS server's Mount protocol (mountd).
If used with the port option (port=2049 unless
the NFS server is using a non-default port#,
mount_nfs(8) will not expect to find portmapper/rpcbind
running on the NFS server.
This patch is slightly different from the one Ron is testing,
but should behave the same way.
I will write of a man page patch and work towards having
both committed to main, etc.
The patch has been committed to main. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=0e8a36a2ab1223ffb0cbdfd49383d8cf978cfa74 commit 0e8a36a2ab1223ffb0cbdfd49383d8cf978cfa74 Author: Rick Macklem <rmacklem@FreeBSD.org> AuthorDate: 2024-12-11 23:07:05 +0000 Commit: Rick Macklem <rmacklem@FreeBSD.org> CommitDate: 2024-12-11 23:07:05 +0000 mount_nfs.c: Add an NFS mount option to set a port# for Mount Normally mount_nfs acquires the port# for the NFS server's Mount protocol (mountd(8)) via rpcbind/portmapper for NFSv3 mounts. This patch adds a new mount option, so that the mount command can specify the port# and avoid using rpcbind for NFSv3 mounts. The new option is called "mountport" since that is what Linux calls their mount option for the same semantics. PR: 282481 Reviewed by: delphij Tested by: Ronald Minnich <rminnich@gmail.com> MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D47743 sbin/mount_nfs/mount_nfs.c | 56 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 49 insertions(+), 7 deletions(-) A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=400fcd1d4fc85212526e9f304e4e90b5668316be commit 400fcd1d4fc85212526e9f304e4e90b5668316be Author: Rick Macklem <rmacklem@FreeBSD.org> AuthorDate: 2024-12-11 23:07:05 +0000 Commit: Rick Macklem <rmacklem@FreeBSD.org> CommitDate: 2024-12-25 01:44:40 +0000 mount_nfs.c: Add an NFS mount option to set a port# for Mount Normally mount_nfs acquires the port# for the NFS server's Mount protocol (mountd(8)) via rpcbind/portmapper for NFSv3 mounts. This patch adds a new mount option, so that the mount command can specify the port# and avoid using rpcbind for NFSv3 mounts. The new option is called "mountport" since that is what Linux calls their mount option for the same semantics. PR: 282481 (cherry picked from commit 0e8a36a2ab1223ffb0cbdfd49383d8cf978cfa74) sbin/mount_nfs/mount_nfs.c | 56 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 49 insertions(+), 7 deletions(-) Patch has been committed and MFC'd. |