bde
0d80f93df9
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.
1998-06-03 12:30:10 +00:00
bde
e32c63389f
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).
Bugs reported by: msmith
1998-06-03 09:43:38 +00:00
kato
df940d6a6d
Sync with sys/i386/i386/machdep.c revision 1.298.
1998-06-03 08:48:00 +00:00
bde
fa3e2fa6ad
Ifdefed the netisr support.
...
PR: 6760
Reviewed by: joerg
1998-06-03 07:56:59 +00:00
msmith
9c8fa4b13e
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.
1998-06-03 01:59:42 +00:00
jdp
5ed24dc1d5
Increment __FreeBSD_version because the semctl() prototype changed
...
in <sys/sem.h>.
1998-06-02 20:58:22 +00:00
jkh
b3017dc03d
".. 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."
Submitted by: Kevin Street <street@iname.com>
1998-06-02 12:38:31 +00:00
dyson
adec643e58
Cleanup and remove some dead code from the initialization.
1998-06-02 05:50:08 +00:00
dyson
5dbf701901
Correct sleep priority.
1998-06-02 05:39:13 +00:00
julian
1464500611
Add a reference to the original softupdates paper
1998-06-02 01:30:51 +00:00
julian
3fd4b55938
Add a reference to the Ganger/Patt paper
1998-06-02 01:27:27 +00:00
eivind
f7112550c8
o Return error when the controller can't accept commands.
...
o Make driver less chatty on boot (only announce version under
bootverbose)
Submitted by: Simon Shapiro <shimon@simon-shapiro.org>
1998-06-02 00:32:38 +00:00
dufault
cfe0052eea
Set PAGE_SIZE for _SC_PAGESIZE sysconf().
1998-06-01 21:54:43 +00:00
julian
5c6ec72d16
Allow devfs to support the 'uk' device
...
Submitted by: Micha Class <michael_class@hp.com>
1998-06-01 19:44:54 +00:00
kato
57f5991db1
Sync with sys/i386/isa/sio.c revision 1.203.
1998-06-01 12:40:24 +00:00
peter
dec84bd443
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.
1998-06-01 11:32:53 +00:00
peter
21629df4dd
Fix post-test pre-commit cleanup typo.
1998-06-01 11:07:16 +00:00
peter
4178bd0c41
readlink() returns EINVAL rather than EPERM if called on a non-symlink.
1998-06-01 10:59:23 +00:00
peter
aca365c43e
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.
1998-06-01 10:01:31 +00:00
peter
66d2475e6f
Hide more kernel stuff from userland. This stops nethostaddr etc being
...
wanted by mount_nfs.c.
1998-06-01 07:23:26 +00:00
gibbs
ec33d6bd5e
Add sctargattach that initializes the bufq data structure.
1998-06-01 03:44:56 +00:00
steve
5423c29403
Make this ${.OBJDIR} and ${.CURDIR} aware.
...
PR: 2565
1998-05-31 22:40:49 +00:00
peter
19ad2aa63b
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).
Obtained from: NetBSD
1998-05-31 20:09:01 +00:00
peter
401c250cc4
Support 'mount -u' remounts. This may require disconnecting and rebinding
...
the socket. Certain mode changes are not allowed.
Obtained from: NetBSD
1998-05-31 19:49:31 +00:00
peter
5080277e0e
Cut-n-paste glitch
1998-05-31 19:43:34 +00:00
peter
d9c0dc4a94
xdr encode -1 properly.
...
Obtained from: NetBSD
1998-05-31 19:29:28 +00:00
peter
2a5188e78c
Fully fill in nfsv2 write rpc requests rather than leaving garbage.
...
Obtained from: NetBSD
1998-05-31 19:28:15 +00:00
peter
da4830ce17
Don't silently fail to set file flags.
...
Obtained from: NetBSD
1998-05-31 19:24:19 +00:00
peter
a378822d22
Don't blindly accept the server's preferences if they are too small.
...
Obtained from: NetBSD
1998-05-31 19:20:44 +00:00
peter
21746bb862
Prototype support for selectively allowing non-reserved ports on a per
...
export basis. Needs userland support yet.
Obtained from: NetBSD
1998-05-31 19:16:08 +00:00
peter
7966818099
Hide whiteouts from NFS, since the protocol doesn't support them.
...
Obtained from: NetBSD
1998-05-31 19:10:52 +00:00
peter
49e79dfe9e
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.
Obtained from: NetBSD
1998-05-31 19:07:47 +00:00
peter
a21fad22e0
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).
Obtained from: NetBSD
1998-05-31 19:00:19 +00:00
peter
985cae8566
Use the new SB_UPCALL flag,
...
Obtained from: NetBSD (but I changed the flag clear order in case).
1998-05-31 18:46:06 +00:00
peter
10677f7b5c
Let the sowwakeup macro decide when to call sowakeup rather than have
...
tcp "know" about it. A pending upcall would be missed, eg: used by NFS.
Obtained from: NetBSD
1998-05-31 18:42:49 +00:00
peter
a4063ba4e2
Have the wakeup routine do the upcall if needed.
...
Obtained from: NetBSD
1998-05-31 18:38:43 +00:00
peter
55de15ff43
Have the sorwakeup and sowwakeup check the upcall flags.
...
Obtained from: NetBSD
1998-05-31 18:37:22 +00:00
peter
c4805fc7a0
NFS_SMALLFH is defined in nfsproto.h, not sys/mount.h
...
Obtained from: NetBSD
1998-05-31 18:32:23 +00:00
peter
1f34203061
Don't let the user try "rmdir ."
...
Obtained from: NetBSD
1998-05-31 18:30:42 +00:00
peter
f61450c5b0
Don't let the user try and unlink() a directory on a NFS server.
...
Obtained from: NetBSD
1998-05-31 18:28:45 +00:00
peter
c45767477f
When a write rpc returns an error, break the loop.
...
Obtained from: NetBSD
1998-05-31 18:27:07 +00:00
peter
7d869157f3
Don't leak an mbuf when a write rpc returns zero bytes written.
...
Obtained from: NetBSD
1998-05-31 18:25:32 +00:00
peter
feb54238cc
#ifdef a diagnostic printf
...
Obtained from: NetBSD
1998-05-31 18:23:24 +00:00
peter
c50a18d361
Don't try and free mrep twice on some error conditions.
...
Obtained from: NetBSD
1998-05-31 18:19:43 +00:00
peter
66a3e6b96c
#ifdef a diagnostic panic, plus another missed costmetic change.
...
Obtained from: NetBSD
1998-05-31 18:11:03 +00:00
peter
32e00d316d
We have gained 2 more errno's, add them to the NFSv2 mapping table.
1998-05-31 18:09:18 +00:00
peter
87e3e1a54b
Missed a cosmetic change that the other BSD's have.
1998-05-31 18:08:09 +00:00
peter
e410a1b026
oops, nfs_msg() is called from client code too.
1998-05-31 18:06:07 +00:00
peter
35835ef239
When we can't reconnect a socket, don't forget to unlock before retrying
...
or we can deadlock.
Obtained from: NetBSD
1998-05-31 18:02:56 +00:00
peter
7f449d8699
Don't log zero length reads, this can happen during normal operation.
...
Obtained from: NetBSD
1998-05-31 18:00:46 +00:00