summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_diskless.c
Commit message (Collapse)AuthorAgeFilesLines
* There is a consensus that ifaddr.ifa_addr should never be NULL,yar2006-06-291-2/+2
| | | | | | | | | | except in places dealing with ifaddr creation or destruction; and in such special places incomplete ifaddrs should never be linked to system-wide data structures. Therefore we can eliminate all the superfluous checks for "ifa->ifa_addr != NULL" and get ready to the system crashing honestly instead of masking possible bugs. Suggested by: glebius, jhb, ru
* Actually I wanted 'nolockd' here instead of 'lockd'.pjd2006-03-191-1/+1
| | | | MFC after: 2 days
* Unexpand LLADDR().ru2005-11-291-2/+2
|
* - Use strsep() instead of strtok().pjd2005-10-061-7/+6
| | | | | | | - strdup() uses M_WAITOK, so we don't need to check it's return value against NULL. MFC after: 2 weeks
* Add boot.nfsroot.options loader tunable.pjd2005-10-061-0/+30
| | | | | | | | | | | | | | | | | It allows to specify options for NFS root file system. Currently supported options are: soft, intr, conn, lockd. I'm adding this functionality mostly for 'lockd' option, which is only honored when performing the initial mount and will be silently ignored if used while updating the mount options. This will allow to use flock(2) without the need of using varmfs or rpc.lockd and friends. Example of use: boot.nfsroot.options="intr,lockd" MFC after: 2 weeks
* While I'm here, list the new kenv (boot.netif.name) along with the others.des2005-04-261-0/+1
|
* When netbooting, as soon as we've figured out which interface we booteddes2005-04-261-0/+1
| | | | from, store its name in a kenv variable.
* Include opt_bootp.h for BOOTP_NFSROOTbrian2005-01-121-0/+2
| | | | | | PR: 73183 Submitted by: Darrin Smith sdar at salseast dot org MFC after: 7 days
* Move a relic to its correct location(s): Put nfs diskless initializationphk2004-07-281-0/+14
| | | | calls with the code they call. (Yet another example of mindless copy&paste).
* Remove advertising clause from University of California Regent'simp2004-04-071-4/+0
| | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson
* University of Michigan's Citi NFSv4 kernel client code.alfred2003-11-141-0/+1
| | | | Submitted by: Jim Rees <rees@umich.edu>
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-10-311-1/+1
| | | | | | | | | | | | | if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance. This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics. Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname)
* Remove the magic way of configuring NFS backed swap.phk2003-08-151-2/+0
| | | | | | | | | | | | | This code dates back to the very first diskless support on FreeBSD, back when swapon(8) couldn't simply be run on a NFS backed file. Suggested replacement command sequence on the client: dd if=/dev/zero of=/swapfile bs=1k count=1 oseek=100000 swapon /swapfile rm -f /swapfile For whatever value of 100000 you want.
* Use __FBSDID().obrien2003-06-111-1/+3
|
* SMP locking for ifnet list.hsu2002-12-221-1/+5
|
* Moved nfs_diskless setup code from autoconf.c to nfsclient/nfs_diskless.cjake2002-09-221-0/+232
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.
OpenPOWER on IntegriCloud