NetBSD/sys/nfs/files.nfs

40 lines
1.1 KiB
Plaintext
Raw Normal View History

2010-03-03 02:49:11 +03:00
# $NetBSD: files.nfs,v 1.13 2010/03/02 23:49:11 pooka Exp $
2010-03-03 02:49:11 +03:00
deffs NFS
defflag opt_nfs_boot.h NFS_BOOT_BOOTP NFS_BOOT_BOOTPARAM NFS_BOOT_DHCP
NFS_BOOT_GATEWAY NFS_BOOT_TCP
NFS_BOOT_BOOTSTATIC
defparam opt_nfs_boot.h NFS_BOOT_BOOTP_REQFILE NFS_BOOT_OPTIONS
NFS_BOOT_RWSIZE
NFS_BOOTSTATIC_MYIP NFS_BOOTSTATIC_GWIP
NFS_BOOTSTATIC_MASK NFS_BOOTSTATIC_SERVADDR
NFS_BOOTSTATIC_SERVER
defflag opt_nfs.h NFS_V2_ONLY
defflag NFSSERVER
2005-02-27 01:31:44 +03:00
file nfs/krpc_subr.c nfs
file nfs/nfs_bio.c nfs
file nfs/nfs_boot.c nfs
file nfs/nfs_bootdhcp.c nfs & (nfs_boot_bootp | nfs_boot_dhcp)
file nfs/nfs_bootparam.c nfs & nfs_boot_bootparam
file nfs/nfs_bootstatic.c nfs & nfs_boot_bootstatic
file nfs/nfs_clntsocket.c nfs
file nfs/nfs_clntsubs.c nfs
Apply the NFS exports list rototill patch: - Remove all NFS related stuff from file system specific code. - Drop the vfs_checkexp hook and generalize it in the new nfs_check_export function, thus removing redundancy from all file systems. - Move all NFS export-related stuff from kern/vfs_subr.c to the new file sys/nfs/nfs_export.c. The former was becoming large and its code is always compiled, regardless of the build options. Using the latter, the code is only compiled in when NFSSERVER is enabled. While doing this, also make some functions in nfs_subs.c conditional to NFSSERVER. - Add a new command in nfssvc(2), called NFSSVC_SETEXPORTSLIST, that takes a path and a set of export entries. At the moment it can only clear the exports list or append entries, one by one, but it is done in a way that allows setting the whole set of entries atomically in the future (see the comment in mountd_set_exports_list or in doc/TODO). - Change mountd(8) to use the nfssvc(2) system call instead of mount(2) so that it becomes file system agnostic. In fact, all this whole thing was done to remove a 'XXX' block from this utility! - Change the mount*, newfs and fsck* userland utilities to not deal with NFS exports initialization; done internally by the kernel when initializing the NFS support for each file system. - Implement an interface for VFS (called VFS hooks) so that several kernel subsystems can run arbitrary code upon receipt of specific VFS events. At the moment, this only provides support for unmount and is used to destroy NFS exports lists from the file systems being unmounted, though it has room for extension. Thanks go to yamt@, chs@, thorpej@, wrstuden@ and others for their comments and advice in the development of this patch.
2005-09-23 16:10:31 +04:00
file nfs/nfs_export.c nfsserver
file nfs/nfs_iod.c nfs
2005-02-27 01:31:44 +03:00
file nfs/nfs_kq.c nfs
file nfs/nfs_node.c nfs
file nfs/nfs_serv.c nfsserver
file nfs/nfs_socket.c nfsserver | nfs
file nfs/nfs_srvcache.c nfsserver
file nfs/nfs_srvsubs.c nfsserver
file nfs/nfs_srvsocket.c nfsserver
file nfs/nfs_subs.c nfsserver | nfs
file nfs/nfs_syscalls.c nfsserver
2005-02-27 01:31:44 +03:00
file nfs/nfs_vfsops.c nfs
file nfs/nfs_vnops.c nfs