Commit Graph

53243 Commits

Author SHA1 Message Date
obrien
b1c82066dd * Update comments
* convert decimal constants to hex
Submitted by:	bde

* Add ISO-C99 long long limits
2000-10-24 10:48:50 +00:00
dwmalone
604e688433 Problem to avoid processes getting stuck in "vmopar". From Ian's
mail:

	The problem seems to originate with NFS's postop_attr
	information that is returned with a read or write RPC.
	Within a vm_fault context, the code cannot deal with
	vnode_pager_setsize() shrinking a vnode.

	The workaround in the patch below stops the nfsm_postop_attr()
	macro from ever shrinking a vnode. If the new size in the
	postop_attr information is smaller, then it just sets the
	nfsnode n_attrstamp to 0 to stop the wrong size getting
	used in the future. This change only affects postop_attr
	attributes; the nfsm_loadattr() macro works as normal.

	The change is implemented by adding a new argument to
	nfs_loadattrcache() called 'dontshrink'. When this is
	non-zero, nfs_loadattrcache() will never reduce the
	vnode/nfsnode size; instead it zeros n_attrstamp.

There remain other was processes can get stuck in vmopar.

Submitted by:	Ian Dowse <iedowse@maths.tcd.ie>
Reviewed by:	dillon
Tested by:	Vadim Belman <voland@lflat.org>
2000-10-24 10:13:36 +00:00
ru
996912be0c The -o is the default for "short" display, not the -h. 2000-10-24 08:47:07 +00:00
babkin
181e55c216 Added the CAM-ified wds driver for the ancient WD7000 SCSI card.
Last time it was present in FreeBSD 3.x, before CAM.

Reviewed by:	gibbs
Approved by:	gibbs
2000-10-24 03:44:31 +00:00
babkin
15eb041cb4 Added lines for the wds driver.
Approved by:	gibbs
2000-10-24 03:38:28 +00:00
markm
33c21ed088 Add some very crude man pages to try to induce folk to work on them.
Agreed to work on them:	jasone
2000-10-24 03:33:24 +00:00
jwd
869ef8b48c Cast block number to off_t to avoid possible overflow bugs.
Pointed out by: Bruce Evans <bde@zeta.org.au>
2000-10-24 03:28:59 +00:00
jwd
a800a462ef The write combining code in revision 1.30 needs a few additional
touch ups.  The cache needs to be flushed against block
reads, and a final flush at process termination to force the
backup superblocks to disk.

I believe this will allow 'make release' to complete.

Submitted by:	Tor.Egge@fast.no
2000-10-24 00:08:30 +00:00
jhb
8e917a73ea Don't dink with interrupts in vm_page_zero_idle(). This code assumed it
was being called with interrupts disabled, when it was actually being called
with them enabled.

Pointed out by:	tegge
2000-10-23 23:32:36 +00:00
gallatin
b0e0b8be30 Give correct results for SYSCTL_LONG arrays when sizeof(int) != sizeof(long)
This fixes unaligned access on alpha for, eg, sysctl kern.ipc.mbtypes.
2000-10-23 21:04:18 +00:00
mjacob
28046d02ab CURTHD now defines in globals.h 2000-10-23 18:39:30 +00:00
mjacob
d7e1064cb6 Move bogus proc reference stuff into <machine/globals.h>. There is no
more include file including <sys/proc.h>, but there still is this wonky
and (causes warnings on i386) reference in globals.h.

CURTHD is now defined in <machine/globals.h> as well. The correct thing
to do is provide a platform function for this.
2000-10-23 18:36:03 +00:00
mjacob
e001484933 Put back inclusion of proc.h so that alpha kernels (at the very least)
will compile again. I can't quite see where this was a recursive inclusion.
We probably need to do something to fix the alpha, but let's not break it
in the interim- it's broken enough.
2000-10-23 15:34:44 +00:00
ache
794ad7151b Fix %c 2000-10-23 14:31:27 +00:00
non
f467d17e2a Add PC-Card/ISA SCSI host adpater drivers from NetBSD/pc98
(a NetBSD port for NEC PC-98x1 machines). They are ncv for NCR 53C500,
nsp for Workbit Ninja SCSI-3, and stg for TMC 18C30 and 18C50.

I thank NetBSD/pc98 and bsd-nomads people.

Obtained from:	NetBSD/pc98
2000-10-23 12:55:51 +00:00
ru
f27fe529b5 -Wall cleanup.
PR:		22187
2000-10-23 12:18:34 +00:00
phk
94b0862455 Generate LOTS of warnings to remind the SMPng crew to fix the curproc
UP/SMP issue.
2000-10-23 09:22:18 +00:00
phk
c6979cb775 Do not recursively include <sys/proc.h> 2000-10-23 09:14:20 +00:00
obrien
3442ab179c Apply style(9). [best I could] 2000-10-23 08:46:25 +00:00
obrien
508ea78bf3 Apply style(9).
(best I could)
2000-10-23 08:36:59 +00:00
phk
b648a6f5df Get rid of the last traces of ACTUALLY_LKM_NOT_KERNEL 2000-10-23 08:35:41 +00:00
obrien
0e820d6be8 Sort the #define's. 2000-10-23 08:29:04 +00:00
obrien
ed6c5eae68 Minimal set of diffs from the i386 bits to the AlphaLinux. 2000-10-23 08:15:58 +00:00
obrien
7e4a890930 Re-order the #define's into a more logical one. 2000-10-23 08:13:19 +00:00
itojun
0b7223cb28 be careful on mbuf overrun on ctlinput.
short icmp6 packet may be able to panic the kernel.
sync with kame.
2000-10-23 07:11:01 +00:00
itojun
00f627fe96 kame 1.32 -> 1.33
in add_m6fc(), set interface list for all cases.
in response to a report from Hoerdt Mickael.

kame 1.31 -> 1.32
discard PIM register if the version of the inner packet is incorrect (i.e. IPv6)
(according to clarfication of recent discussion in the IETF pim ML)
2000-10-23 07:07:33 +00:00
sobomax
254d567a68 Add "-o" option to pkg_create(1) and pkg_info(1). This option intended to record
a path of the port from which package has been created within FreeBSD Ports
Collection and will be used to improve pkg_version(1) and similar tools.

Reviewed by:	ports@FreeBSD.org, jkh
Approved by:	jkh
2000-10-23 07:01:31 +00:00
obrien
a683df4891 We need to explicitly tell the args struct for COMPAT functions we use
that use the same args struct as their non-COMPAT counter parts.
2000-10-23 02:20:01 +00:00
obrien
317aee43bf The last "-iDsym" makes more sense as "-iUsym". 2000-10-22 23:49:29 +00:00
green
c87d1fefcc Allow negative seek offsets for files that can be seeked upon. It
makes dd(1) a more complete "filter", even if this functionality is
limited to seekable streams.
2000-10-22 23:00:32 +00:00
obrien
addaf21e5e Somehow I left out sycall #98 2000-10-22 21:47:07 +00:00
obrien
947a094612 Minor whitespace cleanup. 2000-10-22 21:42:03 +00:00
obrien
8acb3d7a12 Minimal set of diffs from the i386 bits to the AlphaLinux.
Submitted by:	gallatin (content, minimization by me)
2000-10-22 21:36:27 +00:00
phk
448ff6e567 Don't bogusly include <struct.h>
Bogusly define our own versions of strbase() and fldoff() until we
have sorted out where they live in the kernel.
2000-10-22 19:43:01 +00:00
phk
e48eef18f5 Don't rely on <sys/queue.h> to bogusly include <struct.h>.
Bogusly include <struct.h> until we have a better place to get
fldoff() from.
2000-10-22 19:39:17 +00:00
phk
4c490e9074 On DEVFS machines, the device name database is no use. 2000-10-22 19:10:13 +00:00
deischen
157c59b4fa We use ___setjmp (non-signal saving) to setup a signal frame. When
adding a signal frame to a thread, be sure to label the context
correctly so we don't restore an uninitialized process mask.

Reported by:	kimc@W8HD.ORG and Andrey Rouskol <anry@sovintel.ru>
2000-10-22 18:35:11 +00:00
phk
de4476568f Avoid using the semi-bogus include <struct.h>
All uses of fldsiz() in this file were wrong anyway.
2000-10-22 17:38:32 +00:00
nyan
e5bb6df427 Moved prototypes of isa_alloc_resourcev() and isa_load_resourcev() to
isa/isavar.h, and added needed includes.
2000-10-22 16:48:08 +00:00
bp
e7c0d40264 Rev 1.41 was committed from wrong diff, now do it right. 2000-10-22 16:15:12 +00:00
phk
dec28dea4d Make LINT compile again. 2000-10-22 16:09:12 +00:00
bp
d3507fbe83 Release and unlock vnode if resource deadlock detected. 2000-10-22 15:40:22 +00:00
bp
1840436251 Update stale comment.
PR:		kern/21805
2000-10-22 14:24:30 +00:00
bp
ae7a56b0bf Remove de_lock field from denode structure and make msdosfs PDIRUNLOCK aware. 2000-10-22 14:22:17 +00:00
sos
fd2d82a6b1 Clean up the raid code a bit, also allow disks on HPT controllers to
be swapped around and still be put in the correct order in a raid.
2000-10-22 12:17:57 +00:00
sos
596fb1d81d Fix warning in the ISA only case. 2000-10-22 12:17:38 +00:00
sos
57e22ac98f Get the prober error code instead of relying on scp->error to contain
the lastest greatest.
2000-10-22 12:16:51 +00:00
sos
5ee1b4dbb2 Up the reset pulse to 100ms in ata_reset, some drives especially
DVD drives need this to reset proberly.

Remove some verboseness..
2000-10-22 12:16:00 +00:00
knu
4ebe0ad9e5 It is bsd.sites.mk one should look for a full list of default sites,
not bsd.port.mk anymore.

Add MASTER_SITE_XFREE, MASTER_SITE_RINGSERVER, MASTER_SITE_TCLTK and
MASTER_SITE_RUBY.

Document and add MASTER_SORT_REGEX.
2000-10-22 12:09:16 +00:00
des
cbf0cce2f5 Use funopen() instead of fdopen(). This fixes three problems:
- ftpTimeout was not honored when reading actual data, as opposed to
   talking protocol

 - connection caching was broken because _ftp_cached_connect() would see
   the result of the transfer instead of the result of the NOOP.

 - if the RETR succeeded, but an error occurred later (as can happen
   when talking to a proxy), the error would not be detected.

There still remains to register an atexit(3) callback to close the cached
connection gracefully instead of just dropping it on the floor.
2000-10-22 12:07:28 +00:00