freebsd-src/sbin/mount_nfs
Rick Macklem 667c782baa mount_nfs: Only create a mounttab file entry is nmount(2) succeeds
mount_nfs creates entries in the mounttab file and umount removes
them.  Entries in the mounttab file ae used by rpc.umntall to
notify the NFS server that NFSv3 entries need to be removed when
they have not been removed by umount.

Without this patch, an enty will be created in the mounttab file,
even if the nmount(2) syscall fails for the mount.  This patch
modifies the code so that the mounttab entry is only created
after nmount(2) succeeds.

This change only affects NFSv3 and only affects how showmount
displays NFSv3 mounts.

(cherry picked from commit 7cab630ba4)
2022-06-11 12:50:33 -07:00
..
Makefile
Makefile.depend
mount_nfs.8 mount_nfs: Add a "bgnow" NFS mount option 2022-01-25 15:25:06 -08:00
mount_nfs.c mount_nfs: Only create a mounttab file entry is nmount(2) succeeds 2022-06-11 12:50:33 -07:00