Fix my last commit which got caught in the cvs/cvsup cycle.
I'm told that I botched the tabs too. I'm not sure they are fixed now
because I find that rather tedious.
bde [Wed, 3 Jun 1998 12:30:10 +0000 (12:30 +0000)]
Force success of the probe (after doing it as before except in one
miscconfigured case) if the port is the console. This fixes several
bugs:
- if all sioprobe()s failed, then the console driver followed null
pointers in cdevsw[].
- if the sioprobe() for the console failed but another sioprobe()
succeeded, then init hung early when the console couldn't be
opened.
- it was silly for the console to not be there after printing boot
messages on it.
Bugs introduced by this are hopefully no worse than old ones caused
by forcing the success of the `cn' level probe.
bde [Wed, 3 Jun 1998 09:43:38 +0000 (09:43 +0000)]
Fixed a printf() arg botch in the previous commit.
Only complain about an irq mismatch in the probe if the configured
irq doesn't become active, and then print the bitmap of irqs that
became active (including clock irqs) instead of just the first
(not including clock irqs).
In the case of alpha (only), more than just libc needs to know that
NetBSD syscalls are being used, so spam all compiles with the define
that indicates this.
msmith [Wed, 3 Jun 1998 01:59:42 +0000 (01:59 +0000)]
If vm86 services are available, use these to perform the APM BIOS
probe and intialisation. This will ultimately remove the grubby (but
functional) hack that copies a real-mode function into low memory
early in locore.s.
jkh [Tue, 2 Jun 1998 12:38:31 +0000 (12:38 +0000)]
".. x11amp appears to be calling shmctl(id, IPC_RMID, 0) and the emulation
layer does not like the null shmid_ds buffer pointer. The emulation layer
returned an error without ever calling FreeBSD's shmctl, so the segments
were not being deleted when the reference count went to zero."
peter [Tue, 2 Jun 1998 12:00:08 +0000 (12:00 +0000)]
Treat an EOPNOTSUPP from fchflags() as a non-fatal case. Only warn about
it if flags were explicitly specified on the command line. Do not warn
if we were merely trying to preserve flags or remove UF_NODUMP. NFS does
not support flags.
I'm not sure that this is ideal, but it should do for now. Installing
a plain file onto a NFS server must work, we used to silently ignore the
attempt. Doing a binary install looses the flags anyway since cpio
doens't preserve them with the cdrom/network images.
XXX make world should not use flags or chown/chgrp in the obj/tmp area.
This is based on a suggestion from Ken Merry <ken@plutotech.com>.
phk [Tue, 2 Jun 1998 11:02:16 +0000 (11:02 +0000)]
Cut through the discussions and settle the issue: Everything in /var/run
is blown away at boot. If sudo or other programs needs directories, they
had better make them in /usr/local/etc/rc.d/mumble.sh
peter [Mon, 1 Jun 1998 13:00:32 +0000 (13:00 +0000)]
Seperate the Paul Kranenburg a.out rtld stuff into a stand-alone area away
from the gpl ld code. This is part 2 of something that I began in 1996.
A repository copy has happened behind cvs's back.
peter [Mon, 1 Jun 1998 11:32:53 +0000 (11:32 +0000)]
Make sure we go a nfs_fsinfo() in get/putpages before calling
readrpc/writerpc, since they assume it's already been done. This could
break if the first read/write access to a nfs filesystem was an exec() or
mmap() instead of a read(), write() syscall. (or statfs()).
nfs_getpages() could return an errno (EOPNOTSUPP) instead of a VM_PAGER_*
return code. Some layout tweaks for the get/putpages code.
peter [Mon, 1 Jun 1998 10:01:31 +0000 (10:01 +0000)]
Preset the maximum file size before we get to nfs_fsinfo(), based on
an (over?) conservative assumption about what the client can store in it's
buffer cache using a signed 32-bit 512-byte block number index. Otherwise
it's possible for some file access when maxfilesize = 0 (eg: /usr is nfs
mounted and doing an execve())
Pointed out by: bde
XXX It might make sense to do a preemptive nfs_fsinfo() call at mount time.
peter [Sun, 31 May 1998 20:09:01 +0000 (20:09 +0000)]
For the on-the-wire protocol, u_long -> u_int32_t; long -> int32_t;
int -> int32_t; u_short -> u_int16_t. Also, use mode_t instead of u_short
for storing modes (mode_t is a u_int16_t).
peter [Sun, 31 May 1998 19:07:47 +0000 (19:07 +0000)]
NetBSD has a comment that Solaris 2.5 doesn't do verifiers correctly,
we have weakened this test already for Digital Unix, so it may be enough
for Solaris. It needs to be checked again.
peter [Sun, 31 May 1998 19:00:19 +0000 (19:00 +0000)]
Don't pass a second copy of the uid/gid in with the v2/v3 sattr structures,
it just makes more work. We pass a copy of the uid/gid with the
credentials. (although, this may need to be revisited if a non AUTHUNIX
authentication method (such as NFSKERB) ever gets implemented).
peter [Sun, 31 May 1998 17:27:58 +0000 (17:27 +0000)]
NFS Jumbo commit part 1. Cosmetic and structural changes only. The aim
of this part of commits is to minimize unnecessary differences between
the other NFS's of similar origin. Yes, there are gratuitous changes here
that the style folks won't like, but it makes the catch-up less difficult.
wpaul [Sun, 31 May 1998 16:59:39 +0000 (16:59 +0000)]
Add a short delay in the read loop in tl_eeprom_getbyte(). On some
systems, you have to allow the delay or else you end up misreading
some of the bits.
bde [Sun, 31 May 1998 12:21:50 +0000 (12:21 +0000)]
Fixed overflow in the calculation of the number of inodes per group
for filesystems with almost the maximum number of sectors. The maxiumum
is 2^31, but overflow is common for that size, and overflow normally
occurred here at size (2^31 - 4096).