Commit Graph

82740 Commits

Author SHA1 Message Date
tmm
75d151bac0 The hw.physmem sysctl has an unsigned long value now, fix the retrieval
to match that.
2002-11-02 17:19:18 +00:00
gioria
0dfee3b4fc Fix typo manpage for ktrdump
PR: docs/44825
Submitted by: Mark Linimon <linimon@lonesome.com>
2002-11-02 14:59:06 +00:00
gioria
0835e9a736 Fix typo
PR:   docs/44824
Submitted by: Mark Linimon <linimon@lonesome.com>
2002-11-02 14:52:23 +00:00
gioria
46893e92fe Welcom to installation and early-adopter directory 2002-11-02 14:16:09 +00:00
gioria
835e4d1199 First French version of early-adopter 2002-11-02 14:15:25 +00:00
marcel
27850e5112 Add support for GPT:
1. When the parition type is not an integer, try to parse the type
   as an UUID. If that succeeds, map the UUID to chunk_e.
2. For GPT partitions, pass the type constructed in point 1 above
   to Add_Chunk.

While here, fix the MBREXT case by only checking if the first 3
characters are MBR. This avoids duplication.
2002-11-02 12:14:04 +00:00
marcel
24ab0000c9 Add support for ia64. This is almost identical to i386, except that
with GPT chunks of type "part" do not necessarily live under chunks
of type "freebsd". We don't necessarily have a disklabel.
2002-11-02 12:05:16 +00:00
marcel
b737405ed3 Remove the GEOM_GPT hack. We now check for partition type 0xEE and
skip those. This handles the Protective MBR (PMBR) which consists
of a single partition of type 0xEE that covers the whole disk and
as such protects the GPT partitioning. We allow other partitions to
be present besides partitions of type 0xEE and as such interpret
partition type 0xEE as a "hands-off" partition only.

While here, fix g_mbrext_dumpconf to test if indent is NULL and
dump the data in a form that libdisk can grok. Change the logic
in g_mbr_dumpconf to match that of g_mbrext_dumpconf. This does
not change the output, but prevents a NULL-pointer dereference
when indent == NULL && pp == NULL.
2002-11-02 12:01:12 +00:00
marcel
3ff7b03806 Fix dumpconf so libdisk can grok its output. We weren't checking
if indent was NULL. Consequently we always emitted the XML format.
2002-11-02 11:45:54 +00:00
ue
ad676f7460 MFbed:
hardware/common/dev.sgml:	1.111 -> 1.112
readme/article.sgml:		1.17  -> 1.18
relnotes/common/new.sgml:	1.439 -> 1.446
2002-11-02 11:20:26 +00:00
phk
982f8bb0ad malloc(9) with M_NOWAIT seems to return NULL a lot more than I would have
expected under -current.  This is a problem for GEOM because the up/down
threads cannot sleep waiting for memory to become free.  The reason they
cannot sleep is that paging things out to disk may be the only way we can
clear up some RAM.  Nice catch-22 there.

Implement a rudimentary ENOMEM recovery strategy:  If an I/O request
fails with an error code of ENOMEM, schedule it for a retry, and
tell the down-thread to sleep hz/10 to get other parts of the system
a chance to free up some memory, in particular the up-path in GEOM.

All caches should probably start to monitor malloc(9) failures using the new
malloc_last_fail() function, and release when it indicates congestion.

Sponsored by:	DARPA & NAI Labs.
2002-11-02 11:08:07 +00:00
phk
01e8832a61 Don't claim all MBR's have subtype 165 on i386.
Spotted by:	Frode Nordahl <frode@nordahl.net>
2002-11-02 10:57:44 +00:00
davidxu
45330340f4 add missing '!', don't why it was lost when checked in. 2002-11-02 10:31:22 +00:00
mini
53bdb71e06 Fix indentation of comments. 2002-11-02 08:49:51 +00:00
ume
6866e4bdca Add IPv6 setup for ipfilter. `ipv6_ipfilter_rules' was added
to specify rules definition file for ipfilter.  The default is
/etc/ipf6.rules.  If there is a file which is specified by
'ipv6_ipfilter_rules', IPv6 rule is installed.

Reviewed by:	Ronald van der Pol <Ronald.vanderPol@rvdp.org>
MFC after:	1 week
2002-11-02 08:21:26 +00:00
marcel
635e3ab81e bzero() the sigframe before we fill it. This was not done at all in
linux_rt_sendsig() and only done for the fpstate in linux_sendsig().
2002-11-02 07:41:04 +00:00
marcel
31c989afa3 o Remove the fallback implementations of uuid_create(),
uuid_from_string(), uuid_is_nil() and uuid_to_string().
o  Include <uuid.h> where appropriate.
2002-11-02 07:08:15 +00:00
mini
1e67f1b1da Add loader variables to control the loading of various networking modules.
Submitted by: David Yeske <dyeske@yahoo.com>
2002-11-02 06:52:28 +00:00
nyan
216b0a87b6 Don't move the NFSCLIENT support into mfsroot-small.flp. 2002-11-02 06:24:29 +00:00
jwd
2186629d23 Add CVSARGS for cvs arguments (vs. cvs subcommand arguments).
Allow the cvs command to be prefixed by using CVSPREFIX.
2002-11-02 06:00:06 +00:00
alc
328836c626 Revert the change in revision 1.77 of kern/uipc_socket2.c. It is causing
a panic because the socket's state isn't as expected by sofree().

Discussed with: dillon, fenner
2002-11-02 05:14:31 +00:00
mdodd
3dfe105e7a Merge PC98 changes. 2002-11-02 04:18:10 +00:00
ue
4dbdc956c2 German version of the early adopter's guide 2002-11-02 03:07:46 +00:00
julian
51d9ccf841 The easy part of converting the ng_source node to -current.
More to come.. does not compile (deliberatly.. logic broken)
2002-11-02 02:29:43 +00:00
ue
d3f9b77bda Fix an obvious typo 2002-11-02 01:52:37 +00:00
julian
7632768a03 Whitespace fixes 2002-11-02 01:26:28 +00:00
tmm
a383c7b134 The hw.availpages sysctl has an unsigned long value now, fix the retrieval
to match that.
2002-11-01 23:26:20 +00:00
julian
8aff713c14 ifnet_addrs doesn;t exist any more so use
TAILQ_FIRST(&ifp->if_addrhead) to find the link layer ifaddr.
(it's always first I believe)
Allows this to compile on -current.
 .. need testers with FEC capable switches..
2002-11-01 23:09:15 +00:00
kbyanc
3cb0634996 Update the st_size reported via stat(2) to accurately reflect the amount
of data available to read for non-TCP sockets.

Reviewed by:	-net, -arch
Sponsored by:	NTT Multimedia Communications Labs
MFC after:	2 weeks
2002-11-01 21:31:13 +00:00
kbyanc
c70af01e80 Track the number of non-data chararacters stored in socket buffers so that
the data value returned by kevent()'s EVFILT_READ filter on non-TCP
sockets accurately reflects the amount of data that can be read from the
sockets by applications.

PR:		30634
Reviewed by:	-net, -arch
Sponsored by:	NTT Multimedia Communications Labs
MFC after:	2 weeks
2002-11-01 21:27:59 +00:00
rwatson
678a0e6331 Rename __execve_mac() to __mac_execve() for increased consistency
with other MAC system calls.

Requested by:	various (phk, gordont, jake, ...)
2002-11-01 21:00:02 +00:00
jhb
b9e794252a - Copy the mfsroot.gz file to /R/stage/mfsroot/ so that the CD-ROM layout
can fetch it from there instead of looking in the boot floppy's
  directory.
- Add a NO_FLOPPIES variable that disables building of any boot floppies.

Tested on:	alpha
2002-11-01 20:53:50 +00:00
rwatson
61ffc1b9bb Add MAC checks for various kenv() operations: dump, get, set, unset,
permitting MAC policies to limit access to the kernel environment.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-11-01 20:46:53 +00:00
gioria
78a117472a MFen 1.112 2002-11-01 20:14:35 +00:00
gioria
ceec822862 Finishing the translation of this file 2002-11-01 20:12:25 +00:00
phk
27173bd0dd Introduce malloc_last_fail() which returns the number of seconds since
malloc(9) failed last time.  This is intended to help code adjust
memory usage to the current circumstances.

A typical use could be:
	if (malloc_last_fail() < 60)
		reduce_cache_by_one();
2002-11-01 18:58:12 +00:00
phk
3ce3aae31e Introduce a "time_uptime" global variable which holds the time since boot
in seconds.
2002-11-01 18:52:20 +00:00
phk
e7002ff1e5 Fill in partition 2 with with "whole disk" parameters. 2002-11-01 16:28:19 +00:00
rwatson
c60e6be0f4 Further clarifications of the #ifdef/#if/#elif/#endif style information,
largely submitted by bde.  Return our exemption of the #ifdef lint
comments since the exemption is intended to handle a particularly
common current case without mandating change.  Improve language and
spelling, and slightly clarify the notions associated specifically
with #elif.

Obtained from:	bde
2002-11-01 16:20:31 +00:00
phk
e0f89bf346 Make this compile in the userland shims again.
Sponsored by:	DARPA & NAI Labs
2002-11-01 15:57:55 +00:00
phk
72c30b5844 Add KASSERT for bio_cmd validity here as well. Various hacks still
bypass specfs.
2002-11-01 15:56:26 +00:00
jake
43abbe6909 Build sysinstall on sparc64. 2002-11-01 15:36:06 +00:00
phk
85539f2f6c Put a KASSERT in specfs::strategy() to check that the incoming buffer
has a valid b_iocmd.  Valid is any one of BIO_{READ,WRITE,DELETE}.

I have seen at least one case where the bio_cmd field was zero once the
request made it into GEOM.  Putting the KASSERT here allows us to spot
the culprit in the backtrace.
2002-11-01 15:32:12 +00:00
jhb
b7e16f3529 Revert previous untested commit. I installed an ultra60 this morning
using sysinstall from a release built via 'make release'.
2002-11-01 15:29:35 +00:00
tjr
5e6cfbf3a7 Another buffer overflow similar to the recent one in mkstr(1). 2002-11-01 12:48:28 +00:00
tjr
ff3a30e723 Remove claim that pi and ex use mkstr; pi is long gone, and nex doesn't
use it.
2002-11-01 12:22:41 +00:00
tjr
36526fd90e Zap another buffer overflow, this time in the parser.
MFC after:	2 weeks
2002-11-01 12:09:05 +00:00
tjr
f6cc8ac570 Avoid buffer overflow when constructing filenames. 2002-11-01 11:53:52 +00:00
thomas
8818a9353d Fix minor typo.
Note that ATAPI/CAM has been MFC'd into RELENG_4 and will appear
in FreeBSD 4.8.

Reviewed by:	roberto
2002-11-01 10:02:31 +00:00
dfr
9339f9189f Bump version to account for the presence of pthread_XXX stubs in libc. 2002-11-01 09:38:33 +00:00