From owner-svn-src-head@FreeBSD.ORG Sat Apr 18 16:08:10 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 51F3B53D; Sat, 18 Apr 2015 16:08:10 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3DA79F05; Sat, 18 Apr 2015 16:08:10 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t3IG8AfV012110; Sat, 18 Apr 2015 16:08:10 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t3IG86FT012071; Sat, 18 Apr 2015 16:08:06 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201504181608.t3IG86FT012071@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Sat, 18 Apr 2015 16:08:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281691 - in head: . etc/defaults etc/rc.d sbin/mount sbin/mount_nfs share/man/man5 sys/nfsclient usr.bin/nfsstat usr.sbin/nfsd X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Apr 2015 16:08:10 -0000 Author: trasz Date: Sat Apr 18 16:08:06 2015 New Revision: 281691 URL: https://svnweb.freebsd.org/changeset/base/281691 Log: Remove some oldnfs remnants. Differential Revision: https://reviews.freebsd.org/D2287 Reviewed by: rmacklem@ Sponsored by: The FreeBSD Foundation Modified: head/ObsoleteFiles.inc head/etc/defaults/rc.conf head/etc/rc.d/mountd head/etc/rc.d/nfsd head/sbin/mount/mount.8 head/sbin/mount/mount.c head/sbin/mount_nfs/Makefile head/sbin/mount_nfs/mount_nfs.8 head/share/man/man5/rc.conf.5 head/sys/nfsclient/nfs.h head/usr.bin/nfsstat/nfsstat.c head/usr.sbin/nfsd/nfsd.8 Modified: head/ObsoleteFiles.inc ============================================================================== --- head/ObsoleteFiles.inc Sat Apr 18 16:04:32 2015 (r281690) +++ head/ObsoleteFiles.inc Sat Apr 18 16:08:06 2015 (r281691) @@ -38,6 +38,9 @@ # xargs -n1 | sort | uniq -d; # done +# 20150418 +OLD_FILES+=sbin/mount_oldnfs +OLD_FILES+=usr/share/man/man8/mount_oldnfs.8.gz # 20150416: ALTQ moved to net/altq OLD_FILES+=usr/include/altq/altq_rmclass_debug.h OLD_FILES+=usr/include/altq/altq.h Modified: head/etc/defaults/rc.conf ============================================================================== --- head/etc/defaults/rc.conf Sat Apr 18 16:04:32 2015 (r281690) +++ head/etc/defaults/rc.conf Sat Apr 18 16:08:06 2015 (r281691) @@ -88,7 +88,7 @@ fsck_y_enable="NO" # Set to YES to do fs fsck_y_flags="" # Additional flags for fsck -y background_fsck="YES" # Attempt to run fsck in the background where possible. background_fsck_delay="60" # Time to wait (seconds) before starting the fsck. -netfs_types="nfs:NFS oldnfs:OLDNFS smbfs:SMB" # Net filesystems. +netfs_types="nfs:NFS smbfs:SMB" # Net filesystems. extra_netfs_types="NO" # List of network extra filesystem types for delayed # mount at startup (or NO). @@ -324,7 +324,6 @@ autounmountd_flags="" # Flags to autoun nfs_client_enable="NO" # This host is an NFS client (or NO). nfs_access_cache="60" # Client cache timeout in seconds nfs_server_enable="NO" # This host is an NFS server (or NO). -oldnfs_server_enable="NO" # Run the old NFS server (YES/NO). nfs_server_flags="-u -t" # Flags to nfsd (if enabled). mountd_enable="NO" # Run mountd (or NO). mountd_flags="-r" # Flags to mountd (if NFS server enabled). Modified: head/etc/rc.d/mountd ============================================================================== --- head/etc/rc.d/mountd Sat Apr 18 16:04:32 2015 (r281690) +++ head/etc/rc.d/mountd Sat Apr 18 16:08:06 2015 (r281691) @@ -33,12 +33,6 @@ mountd_precmd() fi fi - # If oldnfs_server_enable is yes, force use of the old NFS server - # - if checkyesno oldnfs_server_enable; then - rc_flags="-o ${rc_flags}" - fi - if checkyesno zfs_enable; then rc_flags="${rc_flags} /etc/exports /etc/zfs/exports" fi Modified: head/etc/rc.d/nfsd ============================================================================== --- head/etc/rc.d/nfsd Sat Apr 18 16:04:32 2015 (r281690) +++ head/etc/rc.d/nfsd Sat Apr 18 16:08:06 2015 (r281691) @@ -19,40 +19,25 @@ sig_stop="USR1" nfsd_precmd() { - if checkyesno oldnfs_server_enable; then - rc_flags="-o ${nfs_server_flags}" + rc_flags="${nfs_server_flags}" - # Load the module now, so that the vfs.nfsrv sysctl - # oids are available. - load_kld nfsserver - - if checkyesno nfs_reserved_port_only; then - echo 'NFS on reserved port only=YES' - sysctl vfs.nfsrv.nfs_privport=1 > /dev/null - else - sysctl vfs.nfsrv.nfs_privport=0 > /dev/null - fi + # Load the modules now, so that the vfs.nfsd sysctl + # oids are available. + load_kld nfsd + + if checkyesno nfs_reserved_port_only; then + echo 'NFS on reserved port only=YES' + sysctl vfs.nfsd.nfs_privport=1 > /dev/null else - rc_flags="${nfs_server_flags}" + sysctl vfs.nfsd.nfs_privport=0 > /dev/null + fi - # Load the modules now, so that the vfs.nfsd sysctl - # oids are available. - load_kld nfsd - - if checkyesno nfs_reserved_port_only; then - echo 'NFS on reserved port only=YES' - sysctl vfs.nfsd.nfs_privport=1 > /dev/null - else - sysctl vfs.nfsd.nfs_privport=0 > /dev/null - fi - - if checkyesno nfsv4_server_enable; then - sysctl vfs.nfsd.server_max_nfsvers=4 > /dev/null - force_depend nfsuserd || err 1 "Cannot run nfsuserd" - else - echo 'NFSv4 is disabled' - sysctl vfs.nfsd.server_max_nfsvers=3 > /dev/null - fi + if checkyesno nfsv4_server_enable; then + sysctl vfs.nfsd.server_max_nfsvers=4 > /dev/null + force_depend nfsuserd || err 1 "Cannot run nfsuserd" + else + echo 'NFSv4 is disabled' + sysctl vfs.nfsd.server_max_nfsvers=3 > /dev/null fi force_depend rpcbind || return 1 Modified: head/sbin/mount/mount.8 ============================================================================== --- head/sbin/mount/mount.8 Sat Apr 18 16:04:32 2015 (r281690) +++ head/sbin/mount/mount.8 Sat Apr 18 16:08:06 2015 (r281691) @@ -457,7 +457,6 @@ However, for the following file system t .Cm msdosfs , .Cm nfs , .Cm nullfs , -.Cm oldnfs , .Cm smbfs , .Cm udf , and Modified: head/sbin/mount/mount.c ============================================================================== --- head/sbin/mount/mount.c Sat Apr 18 16:04:32 2015 (r281690) +++ head/sbin/mount/mount.c Sat Apr 18 16:08:06 2015 (r281691) @@ -144,7 +144,7 @@ use_mountprog(const char *vfstype) unsigned int i; const char *fs[] = { "cd9660", "mfs", "msdosfs", "nfs", - "nullfs", "oldnfs", "smbfs", "udf", "unionfs", + "nullfs", "smbfs", "udf", "unionfs", NULL }; Modified: head/sbin/mount_nfs/Makefile ============================================================================== --- head/sbin/mount_nfs/Makefile Sat Apr 18 16:04:32 2015 (r281690) +++ head/sbin/mount_nfs/Makefile Sat Apr 18 16:08:06 2015 (r281691) @@ -5,14 +5,11 @@ PROG= mount_nfs SRCS= mount_nfs.c getmntopts.c mounttab.c MAN= mount_nfs.8 -MLINKS= mount_nfs.8 mount_oldnfs.8 MOUNT= ${.CURDIR}/../mount UMNTALL= ${.CURDIR}/../../usr.sbin/rpc.umntall CFLAGS+= -DNFS -I${MOUNT} -I${UMNTALL} -LINKS= ${BINDIR}/mount_nfs ${BINDIR}/mount_oldnfs - .PATH: ${MOUNT} ${UMNTALL} .include Modified: head/sbin/mount_nfs/mount_nfs.8 ============================================================================== --- head/sbin/mount_nfs/mount_nfs.8 Sat Apr 18 16:04:32 2015 (r281690) +++ head/sbin/mount_nfs/mount_nfs.8 Sat Apr 18 16:08:06 2015 (r281691) @@ -63,12 +63,6 @@ It implements the mount protocol as desc .%T "NFS: Network File System Version 3 Protocol Specification" , Appendix I. .Pp -If the file system type is specified as ``oldnfs'', which implies this -command is run as ``mount_oldnfs'', then it forces use of the old NFS -client, which does not support the -.Cm nfsv4 -option. -.Pp By default, .Nm keeps retrying until the mount succeeds. Modified: head/share/man/man5/rc.conf.5 ============================================================================== --- head/share/man/man5/rc.conf.5 Sat Apr 18 16:04:32 2015 (r281690) +++ head/share/man/man5/rc.conf.5 Sat Apr 18 16:08:06 2015 (r281691) @@ -2294,14 +2294,6 @@ is set to these are the flags to pass to the .Xr nfscbd 8 daemon. -.It Va oldnfs_server_enable -.Pq Vt bool -If -.Va oldnfs_server_enable -is set to -.Dq Li YES , -force the NFS server daemons to run the old NFS server code -that does not support NFSv4. .It Va mountd_enable .Pq Vt bool If set to Modified: head/sys/nfsclient/nfs.h ============================================================================== --- head/sys/nfsclient/nfs.h Sat Apr 18 16:04:32 2015 (r281690) +++ head/sys/nfsclient/nfs.h Sat Apr 18 16:08:06 2015 (r281691) @@ -114,10 +114,7 @@ #ifdef _KERNEL #ifdef MALLOC_DECLARE -MALLOC_DECLARE(M_NFSREQ); MALLOC_DECLARE(M_NFSDIROFF); -MALLOC_DECLARE(M_NFSBIGFH); -MALLOC_DECLARE(M_NFSHASH); MALLOC_DECLARE(M_NFSDIRECTIO); #endif Modified: head/usr.bin/nfsstat/nfsstat.c ============================================================================== --- head/usr.bin/nfsstat/nfsstat.c Sat Apr 18 16:04:32 2015 (r281690) +++ head/usr.bin/nfsstat/nfsstat.c Sat Apr 18 16:08:06 2015 (r281691) @@ -245,13 +245,6 @@ readstats(struct nfsstats **stp, struct } else { if (zero) bzero(&zerostat, sizeof(zerostat)); - buflen = sizeof(struct nfsstats); - if (*stp != NULL && sysctlbyname("vfs.oldnfs.nfsstats", *stp, - &buflen, zero ? &zerostat : NULL, zero ? buflen : 0) < 0) { - if (errno != ENOENT) - err(1, "sysctl: vfs.oldnfs.nfsstats"); - *stp = NULL; - } buflen = sizeof(struct nfsrvstats); if (*srvstp != NULL && sysctlbyname("vfs.nfsrv.nfsrvstats", *srvstp, &buflen, zero ? &zerostat : NULL, Modified: head/usr.sbin/nfsd/nfsd.8 ============================================================================== --- head/usr.sbin/nfsd/nfsd.8 Sat Apr 18 16:04:32 2015 (r281690) +++ head/usr.sbin/nfsd/nfsd.8 Sat Apr 18 16:08:06 2015 (r281691) @@ -112,11 +112,10 @@ Serve .Tn UDP NFS clients. .It Fl e -The new NFS server that includes NFSv4 support is now the default, so this -option is now a no-op and should be considered deprecated. +Enable NFSv4 support. +It is enabled by default; this option should be considered deprecated. .It Fl o -Forces the use of the old NFS server that does not include NFSv4 support -in it. +Disable NFSv4 support. .El .Pp For example,