From e6116d5b8e55f021844ac2331aa533a1a114fc8f Mon Sep 17 00:00:00 2001 From: Attilio Rao Date: Wed, 17 Oct 2012 11:16:17 +0000 Subject: [PATCH] Disconnect non-MPSAFE NWFS from the build in preparation for dropping GIANT from VFS. In addition, disconnect also netncp, which is a base requirement for NWFS. In the possibility of a future maintenance of the code and later readd to the FreeBSD base, maybe we should think about a better location for netncp. I'm not entirely sure the / top location is actually right, however I will let network people to comment on that more specifically. This is not targeted for MFC. --- MAINTAINERS | 2 -- etc/defaults/rc.conf | 2 +- etc/mtree/BSD.include.dist | 4 ---- etc/mtree/BSD.usr.dist | 2 -- include/Makefile | 7 +------ lib/Makefile | 4 ---- lib/libprocstat/Makefile | 5 ----- lib/libprocstat/common_kvm.h | 1 - lib/libprocstat/libprocstat.c | 3 --- rescue/rescue/Makefile | 4 ---- sbin/mount/mount.8 | 2 -- sbin/mount/mount.c | 2 +- share/examples/Makefile | 3 --- share/man/man5/src.conf.5 | 2 -- share/man/man7/hier.7 | 2 -- share/mk/bsd.libnames.mk | 3 --- share/mk/bsd.own.mk | 5 ----- sys/conf/NOTES | 4 ---- sys/conf/files | 15 --------------- sys/conf/options | 2 -- sys/kern/Make.tags.inc | 1 - sys/modules/Makefile | 7 ------- usr.bin/Makefile.amd64 | 4 ---- usr.bin/Makefile.i386 | 4 ---- usr.sbin/Makefile.amd64 | 3 --- usr.sbin/Makefile.i386 | 3 --- 26 files changed, 3 insertions(+), 93 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index aabff8b9418f..ecf5c1d5ae48 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -74,8 +74,6 @@ drm rnoland Just keep me informed of changes, try not to break it. unifdef(1) fanf Pre-commit review requested. ntp roberto Pre-commit review requested. inetd dwmalone Recommends pre-commit review. -nwfs bp In case of functional changes pre-commit review - requested. contrib/smbfs bp Open for in-tree committs. In case of functional changes pre-commit review requested. contrib/pf mlaier Pre-commit review requested. diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index 1dad35be5bfc..98c89e49e979 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -92,7 +92,7 @@ fsck_y_enable="NO" # Set to YES to do fsck -y if the initial preen fails. 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 nwfs:NWFS" # Net filesystems. +netfs_types="nfs:NFS oldnfs:OLDNFS smbfs:SMB" # Net filesystems. extra_netfs_types="NO" # List of network extra filesystem types for delayed # mount at startup (or NO). diff --git a/etc/mtree/BSD.include.dist b/etc/mtree/BSD.include.dist index 3d918a73017f..417b4f449d22 100644 --- a/etc/mtree/BSD.include.dist +++ b/etc/mtree/BSD.include.dist @@ -168,8 +168,6 @@ .. nullfs .. - nwfs - .. portalfs .. procfs @@ -287,8 +285,6 @@ sig .. .. - netncp - .. netsmb .. nfs diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist index 6c2ee065826a..bc3f4e758b23 100644 --- a/etc/mtree/BSD.usr.dist +++ b/etc/mtree/BSD.usr.dist @@ -281,8 +281,6 @@ bluetooth .. .. - nwclient - .. pc-sysinstall .. perfmon diff --git a/include/Makefile b/include/Makefile index 89bcb9117e59..65424200afac 100644 --- a/include/Makefile +++ b/include/Makefile @@ -44,7 +44,7 @@ LSUBDIRS= cam/ata cam/scsi \ dev/ofw dev/pbio ${_dev_powermac_nvram} dev/ppbus dev/smbus \ dev/speaker dev/usb dev/utopia dev/vkbd dev/wi \ fs/devfs fs/fdescfs fs/msdosfs fs/nandfs fs/nfs fs/ntfs fs/nullfs \ - ${_fs_nwfs} fs/procfs fs/smbfs fs/udf fs/unionfs \ + fs/procfs fs/smbfs fs/udf fs/unionfs \ geom/cache geom/concat geom/eli geom/gate geom/journal geom/label \ geom/mirror geom/mountver geom/multipath geom/nop \ geom/raid geom/raid3 geom/shsec geom/stripe geom/virstor \ @@ -81,11 +81,6 @@ LSUBSUBDIRS+= netgraph/bluetooth/include _netipx= netipx #.endif -.if ${MK_NCP} != "no" -_netncp= netncp -_fs_nwfs= fs/nwfs -.endif - # Define SHARED to indicate whether you want symbolic links to the system # source (``symlinks''), or a separate copy (``copies''). ``symlinks'' is # probably only useful for developers and should be avoided if you do not diff --git a/lib/Makefile b/lib/Makefile index a366f5f84c7f..ae2592473e2d 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -89,7 +89,6 @@ SUBDIR= ${SUBDIR_ORDERED} \ ${_libmilter} \ ${_libmp} \ ${_libnandfs} \ - ${_libncp} \ ${_libngatm} \ libopie \ libpam \ @@ -189,9 +188,6 @@ _libypclnt= libypclnt .endif .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" -.if ${MK_NCP} != "no" -_libncp= libncp -.endif _libsmb= libsmb _libvgl= libvgl _libproc= libproc diff --git a/lib/libprocstat/Makefile b/lib/libprocstat/Makefile index 98044834a193..d125898be26c 100644 --- a/lib/libprocstat/Makefile +++ b/lib/libprocstat/Makefile @@ -24,11 +24,6 @@ LDADD= -lkvm -lutil MAN= libprocstat.3 -.if ${MK_NCP} != "no" -CFLAGS+= -DLIBPROCSTAT_NWFS -SRCS+= nwfs.c -.endif - # XXX This is a hack. .if ${MK_CDDL} != "no" CFLAGS+= -DLIBPROCSTAT_ZFS diff --git a/lib/libprocstat/common_kvm.h b/lib/libprocstat/common_kvm.h index d0b5307a007e..781863ac7b71 100644 --- a/lib/libprocstat/common_kvm.h +++ b/lib/libprocstat/common_kvm.h @@ -42,7 +42,6 @@ int isofs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn); int msdosfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn); int nfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn); int ntfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn); -int nwfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn); int smbfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn); int udf_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn); int ufs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn); diff --git a/lib/libprocstat/libprocstat.c b/lib/libprocstat/libprocstat.c index 11a817e090d2..425aadff7fc9 100644 --- a/lib/libprocstat/libprocstat.c +++ b/lib/libprocstat/libprocstat.c @@ -974,9 +974,6 @@ procstat_get_vnode_info_kvm(kvm_t *kd, struct filestat *fst, FSTYPE(msdosfs), FSTYPE(nfs), FSTYPE(ntfs), -#ifdef LIBPROCSTAT_NWFS - FSTYPE(nwfs), -#endif FSTYPE(smbfs), FSTYPE(udf), FSTYPE(ufs), diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile index 8d1ad0f9cc78..ab88108c96b5 100644 --- a/rescue/rescue/Makefile +++ b/rescue/rescue/Makefile @@ -130,10 +130,6 @@ CRUNCH_LIBS+= -lgeom -lbsdxml -lkiconv -lmd -lsbuf -lufs -lz .if ${MACHINE_CPUARCH} == "i386" CRUNCH_PROGS_sbin+= bsdlabel sconfig fdisk CRUNCH_ALIAS_bsdlabel= disklabel -#.if ${MK_NCP} != "no" -#CRUNCH_PROGS+= mount_nwfs -#CRUNCH_LIBS+= -lncp -#.endif #CRUNCH_PROGS+= mount_smbfs #CRUNCH_LIBS+= -lsmb .endif diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8 index fea0171820a3..7b819550446c 100644 --- a/sbin/mount/mount.8 +++ b/sbin/mount/mount.8 @@ -447,7 +447,6 @@ However, for the following file system types: .Cm msdosfs , .Cm nfs , .Cm ntfs , -.Cm nwfs , .Cm nullfs , .Cm oldnfs , .Cm smbfs , @@ -546,7 +545,6 @@ support for a particular file system might be provided either on a static .Xr mount_nfs 8 , .Xr mount_ntfs 8 , .Xr mount_nullfs 8 , -.Xr mount_nwfs 8 , .Xr mount_smbfs 8 , .Xr mount_udf 8 , .Xr mount_unionfs 8 , diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 63d53b069d87..7b972192861d 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -143,7 +143,7 @@ use_mountprog(const char *vfstype) unsigned int i; const char *fs[] = { "cd9660", "mfs", "msdosfs", "nfs", "ntfs", - "nwfs", "nullfs", "oldnfs", "smbfs", "udf", "unionfs", + "nullfs", "oldnfs", "smbfs", "udf", "unionfs", NULL }; diff --git a/share/examples/Makefile b/share/examples/Makefile index 36887ebdb89c..9502e9e4fe1d 100644 --- a/share/examples/Makefile +++ b/share/examples/Makefile @@ -24,7 +24,6 @@ LDIRS= BSD_daemon \ libvgl \ mdoc \ netgraph \ - nwclient \ perfmon \ ppi \ ppp \ @@ -129,8 +128,6 @@ XFILES= BSD_daemon/FreeBSD.pfa \ netgraph/udp.tunnel \ netgraph/virtual.chain \ netgraph/virtual.lan \ - nwclient/dot.nwfsrc \ - nwclient/nwfs.sh.sample \ perfmon/Makefile \ perfmon/README \ perfmon/perfmon.c \ diff --git a/share/man/man5/src.conf.5 b/share/man/man5/src.conf.5 index db26ac133aa6..97f79ab94836 100644 --- a/share/man/man5/src.conf.5 +++ b/share/man/man5/src.conf.5 @@ -547,8 +547,6 @@ When set, it also enforces the following options: .Bl -item -compact .It .Va WITHOUT_IPX_SUPPORT -.It -.Va WITHOUT_NCP .El .It Va WITHOUT_IPX_SUPPORT .\" from FreeBSD: head/tools/build/options/WITHOUT_IPX_SUPPORT 156932 2006-03-21 07:50:50Z ru diff --git a/share/man/man7/hier.7 b/share/man/man7/hier.7 index 856d9462b921..e6da88241c7b 100644 --- a/share/man/man7/hier.7 +++ b/share/man/man7/hier.7 @@ -256,8 +256,6 @@ C include files for NFS (Network File System) version 2, 3 and 4 NTFS file system .It Pa nullfs/ loopback file system -.It Pa nwfs/ -NetWare file system .It Pa procfs/ process file system .It Pa smbfs/ diff --git a/share/mk/bsd.libnames.mk b/share/mk/bsd.libnames.mk index 075833b2c673..aa78dd8509a3 100644 --- a/share/mk/bsd.libnames.mk +++ b/share/mk/bsd.libnames.mk @@ -97,9 +97,6 @@ LIBMENU?= ${DESTDIR}${LIBDIR}/libmenu.a LIBMILTER?= ${DESTDIR}${LIBDIR}/libmilter.a .endif LIBMP?= ${DESTDIR}${LIBDIR}/libmp.a -.if ${MK_NCP} != "no" -LIBNCP?= ${DESTDIR}${LIBDIR}/libncp.a -.endif LIBNCURSES?= ${DESTDIR}${LIBDIR}/libncurses.a LIBNCURSESW?= ${DESTDIR}${LIBDIR}/libncursesw.a LIBNETGRAPH?= ${DESTDIR}${LIBDIR}/libnetgraph.a diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index db2e7659bd4a..2c1c04e3e97d 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -374,7 +374,6 @@ __DEFAULT_YES_OPTIONS = \ MAILWRAPPER \ MAKE \ MAN \ - NCP \ NDIS \ NETCAT \ NETGRAPH \ @@ -550,10 +549,6 @@ MK_CLANG:= no MK_GROFF:= no .endif -.if ${MK_IPX} == "no" -MK_NCP:= no -.endif - .if ${MK_MAIL} == "no" MK_MAILWRAPPER:= no MK_SENDMAIL:= no diff --git a/sys/conf/NOTES b/sys/conf/NOTES index fb8235649964..c7802ef77205 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -570,8 +570,6 @@ options IPSEC_NAT_T #NAT-T support, UDP encap of ESP options IPX #IPX/SPX communications protocols -options NCP #NetWare Core protocol - options NETATALK #Appletalk communications protocols options NETATALKDEBUG #Appletalk debugging @@ -1014,8 +1012,6 @@ options KGSSAPI #Kernel GSSAPI implementation options NTFS options NULLFS #NULL filesystem -# Broken (depends on NCP): -#options NWFS #NetWare filesystem options PROCFS #Process filesystem (requires PSEUDOFS) options PSEUDOFS #Pseudo-filesystem framework options PSEUDOFS_TRACE #Debugging support for PSEUDOFS diff --git a/sys/conf/files b/sys/conf/files index e2aedee9359f..d734228286ce 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -2375,12 +2375,6 @@ fs/ntfs/ntfs_vnops.c optional ntfs fs/nullfs/null_subr.c optional nullfs fs/nullfs/null_vfsops.c optional nullfs fs/nullfs/null_vnops.c optional nullfs -fs/nwfs/nwfs_io.c optional nwfs -fs/nwfs/nwfs_ioctl.c optional nwfs -fs/nwfs/nwfs_node.c optional nwfs -fs/nwfs/nwfs_subr.c optional nwfs -fs/nwfs/nwfs_vfsops.c optional nwfs -fs/nwfs/nwfs_vnops.c optional nwfs fs/procfs/procfs.c optional procfs fs/procfs/procfs_ctl.c optional procfs fs/procfs/procfs_dbregs.c optional procfs @@ -3141,15 +3135,6 @@ netipx/spx_usrreq.c optional ipx netnatm/natm.c optional natm netnatm/natm_pcb.c optional natm netnatm/natm_proto.c optional natm -netncp/ncp_conn.c optional ncp -netncp/ncp_crypt.c optional ncp -netncp/ncp_login.c optional ncp -netncp/ncp_mod.c optional ncp -netncp/ncp_ncp.c optional ncp -netncp/ncp_nls.c optional ncp -netncp/ncp_rq.c optional ncp -netncp/ncp_sock.c optional ncp -netncp/ncp_subr.c optional ncp netpfil/ipfw/dn_heap.c optional inet dummynet netpfil/ipfw/dn_sched_fifo.c optional inet dummynet netpfil/ipfw/dn_sched_prio.c optional inet dummynet diff --git a/sys/conf/options b/sys/conf/options index 246ac0ed8c59..2abd08c85fe5 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -214,7 +214,6 @@ MSDOSFS opt_dontuse.h NANDFS opt_dontuse.h NTFS opt_dontuse.h NULLFS opt_dontuse.h -NWFS opt_dontuse.h PROCFS opt_dontuse.h PSEUDOFS opt_dontuse.h REISERFS opt_dontuse.h @@ -423,7 +422,6 @@ LIBMCHAIN MBUF_PROFILING MBUF_STRESS_TEST MROUTING opt_mrouting.h -NCP NETATALK opt_atalk.h NFSLOCKD PCBGROUP opt_pcbgroup.h diff --git a/sys/kern/Make.tags.inc b/sys/kern/Make.tags.inc index 28dc0f77aa8c..079bab555cba 100644 --- a/sys/kern/Make.tags.inc +++ b/sys/kern/Make.tags.inc @@ -30,7 +30,6 @@ COMM= ${SYS}/dev/advansys/*.[ch] \ ${SYS}/fs/msdosfs/*.[ch] \ ${SYS}/fs/ntfs/*.[ch] \ ${SYS}/fs/nullfs/*.[ch] \ - ${SYS}/fs/nwfs/*.[ch] \ ${SYS}/fs/procfs/*.[ch] \ ${SYS}/fs/smbfs/*.[ch] \ ${SYS}/fs/udf/*.[ch] \ diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 77d2bf4df69d..450b6614def7 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -247,7 +247,6 @@ SUBDIR= \ ${_nve} \ ${_nvme} \ ${_nvram} \ - ${_nwfs} \ ${_nxge} \ ${_opensolaris} \ oce \ @@ -504,15 +503,9 @@ _mlx4ib= mlx4ib _mlxen= mlxen _mthca= mthca .endif -.if ${MK_NCP} != "no" -_ncp= ncp -.endif _ncv= ncv _ndis= ndis _nsp= nsp -.if ${MK_NCP} != "no" -_nwfs= nwfs -.endif .if ${MK_CDDL} != "no" || defined(ALL_MODULES) _opensolaris= opensolaris .endif diff --git a/usr.bin/Makefile.amd64 b/usr.bin/Makefile.amd64 index 2eba205a7a50..fee2fb076811 100644 --- a/usr.bin/Makefile.amd64 +++ b/usr.bin/Makefile.amd64 @@ -1,7 +1,3 @@ # $FreeBSD$ -.if ${MK_NCP} != "no" -SUBDIR+= ncplist -SUBDIR+= ncplogin -.endif SUBDIR+= smbutil diff --git a/usr.bin/Makefile.i386 b/usr.bin/Makefile.i386 index 2eba205a7a50..fee2fb076811 100644 --- a/usr.bin/Makefile.i386 +++ b/usr.bin/Makefile.i386 @@ -1,7 +1,3 @@ # $FreeBSD$ -.if ${MK_NCP} != "no" -SUBDIR+= ncplist -SUBDIR+= ncplogin -.endif SUBDIR+= smbutil diff --git a/usr.sbin/Makefile.amd64 b/usr.sbin/Makefile.amd64 index 232831b35c8c..2856da23ce9c 100644 --- a/usr.sbin/Makefile.amd64 +++ b/usr.sbin/Makefile.amd64 @@ -17,9 +17,6 @@ SUBDIR+= btxld SUBDIR+= cpucontrol SUBDIR+= kgmon SUBDIR+= lptcontrol -.if ${MK_NCP} != "no" -SUBDIR+= mount_nwfs -.endif SUBDIR+= mount_smbfs SUBDIR+= mptable .if ${MK_NDIS} != "no" diff --git a/usr.sbin/Makefile.i386 b/usr.sbin/Makefile.i386 index f7870dc714b4..800626c06a4b 100644 --- a/usr.sbin/Makefile.i386 +++ b/usr.sbin/Makefile.i386 @@ -12,9 +12,6 @@ SUBDIR+= cpucontrol SUBDIR+= kgmon SUBDIR+= kgzip SUBDIR+= lptcontrol -.if ${MK_NCP} != "no" -SUBDIR+= mount_nwfs -.endif SUBDIR+= mount_smbfs SUBDIR+= mptable .if ${MK_NDIS} != "no"