Commit Graph

25313 Commits

Author SHA1 Message Date
veego
8a514d0afa Remove the last change. fil.fr_icode ist char and NOT unsigned char.
Fix pr#3169
1997-01-31 10:10:11 +00:00
thorpej
a2ea85a36d Faily major kernel change went in today; bump date to 199701 and
version to 1.2C.
1997-01-31 09:30:05 +00:00
thorpej
bcdef359ef Fairly major kernel change went in today; bump the version to 1.2C. 1997-01-31 09:28:05 +00:00
fvdl
5710775a55 Fix order error in loop condition which could cause a crash in nfsrv_readdir().
Fixes PR #3170
1997-01-31 09:09:43 +00:00
thorpej
bacf771428 Update for new file system grammar in the kernel config files. 1997-01-31 06:30:54 +00:00
thorpej
bb1cdc5027 Yet Another NFSCLIENT -> NFS. (I must be getting tired.) 1997-01-31 06:13:42 +00:00
thorpej
04da46b022 Gah, missed another NFSCLIENT -> NFS. 1997-01-31 06:12:57 +00:00
thorpej
6ce149b26e Oops, missed an NFSCLIENT -> NFS. (grep is your friend) 1997-01-31 06:12:07 +00:00
thorpej
739819c9ba Adopt for new file system and root spec grammar. 1997-01-31 06:05:14 +00:00
thorpej
ac90be5e3b Oops! NFSCLIENT -> NFS 1997-01-31 06:03:38 +00:00
thorpej
87e3085155 Adopt for new file system and root spec grammar. 1997-01-31 06:02:19 +00:00
thorpej
d8096d0e4e Oops! NFSCLIENT -> NFS 1997-01-31 05:57:05 +00:00
thorpej
41809f9413 Adopt for new file system and root spec grammar. 1997-01-31 05:56:10 +00:00
thorpej
41a9e723e3 Adopt for new file system and root spec grammar. 1997-01-31 05:46:09 +00:00
cgd
6384f7c322 fix check_console() changes:
* prototype it before it is used (several ports compile with
  -Wstrict-prototypes -Wmissing-prototypes), so this is _necessary_.
* conform to C syntax (yes, that's right, it wouldn't parse).
* make error check less error-prone, + style fixups.
1997-01-31 05:25:24 +00:00
thorpej
7edaeb36ce Oops, remove straggler NFSCLIENT. 1997-01-31 05:20:06 +00:00
thorpej
e0145dbc88 NFSCLIENT -> NFS 1997-01-31 05:18:51 +00:00
thorpej
739f23a219 This file is obsolete; this information is now generated by config(8). 1997-01-31 05:12:49 +00:00
thorpej
07c71aa7f7 Implement new grammar and semantics for specifying file systems
and the root device:

- New "file-system" keyword is used to configure file systems into
  the kernel.
- New way of specifying root device, which allows root file system
  type to always be specified.  Examples:

	config gennetbsd swap generic
	config sdnetbsd root on sd0a swap on sd0b
	config nfsnetbsd root on nfs

  are replaced by:

	config gennetbsd root on ? type ?
	config sdnetbsd root on sd0a type ffs swap on sd0b
	config nfsnetbsd root on ? type nfs
	config lenetbsd root on le0 type nfs

  Note that specific network interfaces may now be specified as
  the root device.
- swapgeneric.c is no longer used; generate a swap*.c file for each
  "config" line in the kernel configuration file.
1997-01-31 03:12:30 +00:00
thorpej
593fdd462d NFSCLIENT -> NFS 1997-01-31 03:06:06 +00:00
thorpej
727078d31e - Add ffs_mountroot to ffs_vfsops.
- Only attempt to mount a root FFS on a DV_DISK class device.
1997-01-31 03:05:31 +00:00
thorpej
12f087b37a - Add external declarations for globals used by the setroot() code.
- Prototype the mountroothook functions here.
1997-01-31 03:04:31 +00:00
thorpej
5d55d65b47 Define the kern.root_device sysctl node. 1997-01-31 03:03:29 +00:00
thorpej
1010921e24 - Add a (*vfs_mountroot)() entry to struct vfsops, used by the
vfs_mountroot() function.
- Prototype vfs_mountroot() and vfs_getopsbyname().
1997-01-31 03:02:57 +00:00
thorpej
9dcd3dd0d5 - Declare a structure to map device names to block device major numbers,
used by the new machine-independent setroot().
- Prototype setroot() and swapconf() here.
1997-01-31 03:01:50 +00:00
thorpej
647fa23dc4 - Add nfs_mountroot to nfs_vfsops.
- Only attempt to mount NFS root on a DV_IFNET class device.
- If nfs_boot_init() failes, return the error code to the caller.
1997-01-31 03:00:31 +00:00
thorpej
dc33841893 NFSCLIENT -> NFS. 1997-01-31 02:58:48 +00:00
thorpej
2ec3e70ff4 - Don't look for a "suitable interface"; we're now given the name of the
network interface to use.
- If any part of the NFS root mount process fails, don't panic.
  Simply return the appropriate error and let the caller recover.
1997-01-31 02:57:31 +00:00
thorpej
68de7ca719 - Implement vfs_mountroot(). This function is called my main() to
mount the root file system.  If the operator specified the root
  file system type in the kernel configuration file, attempt to
  mount that file system type on the root device.  If the root
  file system type was wildcarded (or unspecified), try all of
  the file systems statically built into the kernel until one
  succeeds.  If no file systems succeed, return an error.  The
  system will recover from this condition.
- Implement vfs_getopsbyname().  This function returns the file
  system ops vector given a file system name.
1997-01-31 02:50:36 +00:00
cgd
d3f790f3d0 add 'major' declaration for wd 1997-01-31 02:49:57 +00:00
cgd
3603b076e1 add major and minor numbers for 'wd', slight clean 1997-01-31 02:49:35 +00:00
thorpej
e101942fa0 NFSCLIENT -> NFS 1997-01-31 02:36:24 +00:00
thorpej
1005d16030 Syscalls.master changed, regen. (NFSCLIENT -> NFS) 1997-01-31 02:35:52 +00:00
thorpej
55ee7ceeb8 NFSCLIENT -> NFS 1997-01-31 02:34:23 +00:00
thorpej
ec15ba06cb Add a sysctl node "kern.root_device", which contains the external
name of the device that root was mounted on (e.g. "sd0").
1997-01-31 02:33:59 +00:00
thorpej
0408b501ce - Implement a new machine-independent setroot() function, mostly derived
from the version used by NetBSD/alpha, with several changes by me.
  Support for asking for root device and root file system type on any
  kernel, obsoleting "options GENERIC".
- Make my mountroothook implementation used by the sparc and x68k
  ports machine-independent, and use it here.  Mountroothooks allow
  devices to execute special functions before being mounted as the
  root device (such as ejecting the floppy and prompting for a new
  floppy disk).
- Make swapconf() machine-independent.  It was identical on all ports.
1997-01-31 02:31:33 +00:00
thorpej
883ccf99b6 - NFSCLIENT -> NFS
- Run mountroot hooks before we attempt to mount the root device, and
  destroy mountroot hooks after the root file system has been sucessfully
  mounted.
- Don't panic if we can't mount root.  Instead, set RB_ASKNAME and
  call setroot(), which will prompt the operator for the root device
  and file system type.
1997-01-31 02:25:47 +00:00
thorpej
f41783799b - Add cd9660_mountroot to cd9660_vfsops.
- Only attempt to mount root if root_device is a DV_DISK class device.
1997-01-31 02:23:25 +00:00
thorpej
578626f7ea nfsclient -> nfs 1997-01-31 02:21:33 +00:00
thorpej
8e50039b7c Syscalls.master changed, regen. (NFSCLIENT -> NFS) 1997-01-31 02:20:58 +00:00
thorpej
90b1ce5234 NFSCLIENT -> NFS 1997-01-31 02:20:03 +00:00
thorpej
bf69384ef4 Syscalls.master chagned, regen. (NFSCLIENT -> NFS) 1997-01-31 02:19:34 +00:00
thorpej
83b3ffe116 NFSCLIENT -> NFS 1997-01-31 02:18:54 +00:00
thorpej
b266dedfc8 Syscalls.master changed, regen. (NFSCLIENT -> NFS) 1997-01-31 02:18:26 +00:00
thorpej
12cb3aaf21 NFSCLIENT -> NFS 1997-01-31 02:17:46 +00:00
thorpej
2525eee053 Use new machine-independent mountroothook code. 1997-01-31 02:15:54 +00:00
thorpej
e37a1f5794 Use new machine-independent setroot() and mountroothook code. 1997-01-31 02:15:09 +00:00
thorpej
be49bd8254 Update for new file system and root spec grammar. 1997-01-31 02:14:19 +00:00
thorpej
9b683dc125 Use new machine-independent setroot(). 1997-01-31 02:13:40 +00:00
thorpej
003dad8fdd Pass a struct device ** down to the functions that find the boot device. 1997-01-31 02:12:31 +00:00