Bruce Evans
b76bb1d472
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 Takenori
57e8fac883
Sync with sys/i386/i386/machdep.c revision 1.298.
1998-06-03 08:48:00 +00:00
Bruce Evans
56fe964551
Ifdefed the netisr support.
...
PR: 6760
Reviewed by: joerg
1998-06-03 07:56:59 +00:00
Mike Smith
f9c9bbc054
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
John Polstra
64216a957c
Increment __FreeBSD_version because the semctl() prototype changed
...
in <sys/sem.h>.
1998-06-02 20:58:22 +00:00
Jordan K. Hubbard
ba98833992
".. 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
John Dyson
976f208be3
Cleanup and remove some dead code from the initialization.
1998-06-02 05:50:08 +00:00
John Dyson
e8f367853b
Correct sleep priority.
1998-06-02 05:39:13 +00:00
Julian Elischer
00076e7cf9
Add a reference to the original softupdates paper
1998-06-02 01:30:51 +00:00
Julian Elischer
3942b533f8
Add a reference to the Ganger/Patt paper
1998-06-02 01:27:27 +00:00
Eivind Eklund
e448e98a36
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
Peter Dufault
ce47711dee
Set PAGE_SIZE for _SC_PAGESIZE sysconf().
1998-06-01 21:54:43 +00:00
Julian Elischer
aae96b2e75
Allow devfs to support the 'uk' device
...
Submitted by: Micha Class <michael_class@hp.com>
1998-06-01 19:44:54 +00:00
KATO Takenori
1098580586
Sync with sys/i386/isa/sio.c revision 1.203.
1998-06-01 12:40:24 +00:00
Peter Wemm
55b41976c1
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 Wemm
c0c4b3be24
Fix post-test pre-commit cleanup typo.
1998-06-01 11:07:16 +00:00
Peter Wemm
881b695f32
readlink() returns EINVAL rather than EPERM if called on a non-symlink.
1998-06-01 10:59:23 +00:00
Peter Wemm
b3c6f3134f
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 Wemm
efb92d53a6
Hide more kernel stuff from userland. This stops nethostaddr etc being
...
wanted by mount_nfs.c.
1998-06-01 07:23:26 +00:00
Justin T. Gibbs
6ea8a98e86
Add sctargattach that initializes the bufq data structure.
1998-06-01 03:44:56 +00:00
Steve Price
a4f54cdf08
Make this ${.OBJDIR} and ${.CURDIR} aware.
...
PR: 2565
1998-05-31 22:40:49 +00:00
Peter Wemm
4152886f7a
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 Wemm
75c6892c16
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 Wemm
261114d95c
Cut-n-paste glitch
1998-05-31 19:43:34 +00:00
Peter Wemm
5738e077a6
xdr encode -1 properly.
...
Obtained from: NetBSD
1998-05-31 19:29:28 +00:00
Peter Wemm
9a0248a5dd
Fully fill in nfsv2 write rpc requests rather than leaving garbage.
...
Obtained from: NetBSD
1998-05-31 19:28:15 +00:00
Peter Wemm
ec26d608b6
Don't silently fail to set file flags.
...
Obtained from: NetBSD
1998-05-31 19:24:19 +00:00
Peter Wemm
ccc2eb6a3a
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 Wemm
71c667c91b
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 Wemm
a422fed096
Hide whiteouts from NFS, since the protocol doesn't support them.
...
Obtained from: NetBSD
1998-05-31 19:10:52 +00:00
Peter Wemm
c03d64df19
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 Wemm
13b9f88167
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 Wemm
d0e443aa3a
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 Wemm
04a3fd1276
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 Wemm
4dc75870b2
Have the wakeup routine do the upcall if needed.
...
Obtained from: NetBSD
1998-05-31 18:38:43 +00:00
Peter Wemm
47147132c7
Have the sorwakeup and sowwakeup check the upcall flags.
...
Obtained from: NetBSD
1998-05-31 18:37:22 +00:00
Peter Wemm
b258e976a8
NFS_SMALLFH is defined in nfsproto.h, not sys/mount.h
...
Obtained from: NetBSD
1998-05-31 18:32:23 +00:00
Peter Wemm
fe92746897
Don't let the user try "rmdir ."
...
Obtained from: NetBSD
1998-05-31 18:30:42 +00:00
Peter Wemm
f82a64e18d
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 Wemm
124765333e
When a write rpc returns an error, break the loop.
...
Obtained from: NetBSD
1998-05-31 18:27:07 +00:00
Peter Wemm
d6bad9e190
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 Wemm
a710a27b67
#ifdef a diagnostic printf
...
Obtained from: NetBSD
1998-05-31 18:23:24 +00:00
Peter Wemm
e9156323b8
Don't try and free mrep twice on some error conditions.
...
Obtained from: NetBSD
1998-05-31 18:19:43 +00:00
Peter Wemm
6301c8c330
#ifdef a diagnostic panic, plus another missed costmetic change.
...
Obtained from: NetBSD
1998-05-31 18:11:03 +00:00
Peter Wemm
1da42e389c
We have gained 2 more errno's, add them to the NFSv2 mapping table.
1998-05-31 18:09:18 +00:00
Peter Wemm
946010a5a4
Missed a cosmetic change that the other BSD's have.
1998-05-31 18:08:09 +00:00
Peter Wemm
535fa8520e
oops, nfs_msg() is called from client code too.
1998-05-31 18:06:07 +00:00
Peter Wemm
4a5f4c547e
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 Wemm
6bea90a1ee
Don't log zero length reads, this can happen during normal operation.
...
Obtained from: NetBSD
1998-05-31 18:00:46 +00:00
Peter Wemm
6c1a945540
Consider for readdir chunk sizes when tuning socket buffer reservations.
...
Obtained from: NetBSD
1998-05-31 17:57:43 +00:00