summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfsdiskless.h
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-09-22 00:59:02 +0000
committerjake <jake@FreeBSD.org>2002-09-22 00:59:02 +0000
commitbe3bee93960d297bcd02c9eae94dfdd5ba8759b8 (patch)
tree3fb240e30b7440ff11e70f83c558b3021c0ef104 /sys/nfsclient/nfsdiskless.h
parent482de2f109d274142d818ac890370f47c8949ab6 (diff)
downloadFreeBSD-src-be3bee93960d297bcd02c9eae94dfdd5ba8759b8.zip
FreeBSD-src-be3bee93960d297bcd02c9eae94dfdd5ba8759b8.tar.gz
Moved nfs_diskless setup code from autoconf.c to nfsclient/nfs_diskless.c
so that it is MI. Allow nfs_mountroot to return an error if the nfs_diskless struct is not valid, rather than panicing later on. Call nfs_setup_diskless() from nfs_mountroot if NFS_ROOT is defined, like bootpc_init(). Removed legacy root mount support for sparc64, and enabled NFS_ROOT by default.
Diffstat (limited to 'sys/nfsclient/nfsdiskless.h')
-rw-r--r--sys/nfsclient/nfsdiskless.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/nfsclient/nfsdiskless.h b/sys/nfsclient/nfsdiskless.h
index 1c7a694..4a189a2 100644
--- a/sys/nfsclient/nfsdiskless.h
+++ b/sys/nfsclient/nfsdiskless.h
@@ -125,6 +125,7 @@ extern struct nfsv3_diskless nfsv3_diskless;
extern struct nfs_diskless nfs_diskless;
extern int nfs_diskless_valid;
void bootpc_init(void);
+void nfs_setup_diskless(void);
#endif
#endif
OpenPOWER on IntegriCloud