Robert Watson [Sun, 14 Mar 2004 23:28:12 +0000 (23:28 +0000)]
Don't reject FAT file systems with a number of "Heads" greater than
255; USB keychains exist that use 256 as the number of heads. This
check has also been removed in Darwin (along with most of the other
head/sector sanity checks).
Warner Losh [Sun, 14 Mar 2004 23:03:57 +0000 (23:03 +0000)]
Remove isa compat stuff.
Only cy, bs and wd in the tree still use it. I have a replacement for
cy that I need to test on ISA and PCI cards. bs and wd are pc98 only
drivers that appear to no longer be necessary. I'll be removing them
when I hear back from the pc98 people.
Bruce A. Mah [Sun, 14 Mar 2004 22:56:06 +0000 (22:56 +0000)]
Remove entries for the following devices as their drivers are gone:
rdp(4), le(4), stl(4), stli(4), ctx(4), spigot(4).
Take a guess that the following devices correspond to removed drivers
and blow their entries away too: "Genius and Mustek hand scanners"
(gsc(4)?) and "GPB and Transputer drivers" (gpib(4)?).
Warner Losh [Sun, 14 Mar 2004 22:42:54 +0000 (22:42 +0000)]
The gsc driver uses the old COMPAT_ISA api. Retire it so we can
retire the COMPAT_ISA shims. If someone were to redo this driver with
the new APIs and test it, it can return.
Warner Losh [Sun, 14 Mar 2004 22:35:29 +0000 (22:35 +0000)]
The rdp driver uses the COMPAT_OLD api. This is being retired, so
this driver is being retired. Remove it from the tree. If someone
wants to update it to the latest APIs and can test the hardware, it
can return to the tree.
Warner Losh [Sun, 14 Mar 2004 22:31:49 +0000 (22:31 +0000)]
The spigot driver uses the old COMPAT_ISA interface. Retire it since
that's going away soon. Should someone reimplement it using modern
APIs and can test the driver, it can return.
Warner Losh [Sun, 14 Mar 2004 22:25:19 +0000 (22:25 +0000)]
The le driver uses ISA_COMPAT, which is going away soon. Retire it
and releated files. If someone wants to fix it to use the new APIs
and test it, it can be brought back.
Doug Barton [Sun, 14 Mar 2004 19:10:06 +0000 (19:10 +0000)]
1. Remove the named_rcng variable. Mike's caution in this area was a good
thing, but we're ready to move on.
2. Remove the -g default argument in named_flags. It doesn't actually do
what most users think it does, and what most users want it to do is already
accomplished with a proper default group for the bind user, which we have.
Also, the -g knob does something entirely different in BIND 9, which leads
to a lot of needless confusion/aggravation.
3. In the rc.d script, don't bogusly override $command, or $rc_flags. Both
are adequately handled in rc.conf[.local].
4. DO properly override $rc_flags if user has named_chrootdir set.
This may need to be revisited, but should be ok for now.
5. Protect all chrootdir-related bits under that variable, instead of
named_rcng.
There is more work to be done here, especially in the area of BIND 9
compatibility, but this is a start at least.
Prompted in part by (legitmate) grousing from: kuriyama, Randy Bush
Ruslan Ermilov [Sun, 14 Mar 2004 17:18:39 +0000 (17:18 +0000)]
I believe most of /boot/device.hints out there are based (if not
identical) on GENERIC.hints, hence the following change:
Moved the creation of /boot/device.hints where it belongs. This
should aid in merging GENERIC.hints changes to /boot/device.hints,
using mergemaster(8) or a similar approach.
Juli Mallett [Sun, 14 Mar 2004 06:43:34 +0000 (06:43 +0000)]
Add multiple inclusion guards. Mostly this is for extern.h, which was
included twice by lprint.c, which included both finger.h and extern.h.
finger.h, in turn, includes extern.h. The redundant include of extern.h
was removed from lprint.c, as part of this change, but the include guards
were added anyway out of spite.
Peter Wemm [Sun, 14 Mar 2004 06:21:56 +0000 (06:21 +0000)]
Calculate NFS timeouts in units of 10ms, not 5ms. This matches the default
clock precision on i386. This is a NOP change on i386. But this stops
the mount_nfs units from suddenly changing to units of 1/20 of a second
(vs the normal 1/10 of a second) if HZ is increased.
Peter Wemm [Sun, 14 Mar 2004 02:06:28 +0000 (02:06 +0000)]
Make the process_exit eventhandler run without Giant. Add Giant hooks
in the two consumers that need it.. processes using AIO and netncp.
Update docs. Say that process_exec is called with Giant, but not to
depend on it. All our consumers can handle it without Giant.
Peter Wemm [Sat, 13 Mar 2004 22:31:39 +0000 (22:31 +0000)]
Push Giant down a little further:
- no longer serialize on Giant for thread_single*() and family in fork,
exit and exec
- thread_wait() is mpsafe, assert no Giant
- reduce scope of Giant in exit to not cover thread_wait and just do
vm_waitproc().
- assert that thread_single() family are not called with Giant
- remove the DROP/PICKUP_GIANT macros from thread_single() family
- assert that thread_suspend_check() s not called with Giant
- remove manual drop_giant hack in thread_suspend_check since we know it
isn't held.
- remove the DROP/PICKUP_GIANT macros from thread_suspend_check() family
- mark kse_create() mpsafe
Peter Wemm [Sat, 13 Mar 2004 22:16:34 +0000 (22:16 +0000)]
MFp4: comment out options that don't exist so that they cannot be
accidently added to config files and be silently accepted.
Comment out one bogo-option that crept into NOTES.
Peter Wemm [Sat, 13 Mar 2004 19:21:35 +0000 (19:21 +0000)]
Drastically clean up the legacy host-pci bridge table. We don't need
all the ancient Intel/VIA/SIS/etc chipsets on amd64 systems. Even the
newer intel stuff won't need this since we use acpi by default and we
don't have all their magic programming information. Just use a generic
"Host to PCI bridge" name if we ever hit this code.
Hiroki Sato [Sat, 13 Mar 2004 16:45:05 +0000 (16:45 +0000)]
New release note:
64-bit time_t on FreeBSD/sparc64,
em(4) hiccup during ifconfig em0 alias fixed,
ng_vlan(4) netgraph node type,
umass(4) ATAPI MMC commands support,
rc.d/gbde_swap and gbde_swap_enable in rc.conf,
mountd(8) -p <port> option,
nologin(8) syslog support,
OpenBSD's pf and the related userland utils imported,
SIZE attribute in distinfo enabled by default.
(when you find errors or inappropriate descriptions, please let me know.)
Peter Edwards [Sat, 13 Mar 2004 16:06:32 +0000 (16:06 +0000)]
Recognise the 82845G AGP bridge, and poke it appropriately at
attach/detach time.
Assigning the default behaviour to this particular device is
incorrect, corrupting the video BIOS aperture, and breaking
VESA support in the kernel and XFree86.
Ruslan Ermilov [Sat, 13 Mar 2004 15:46:34 +0000 (15:46 +0000)]
Create hierarchy before installing a new kernel. This is needed
because we require that a new kernel be installed prior to a new
world, and we may need some new directories to succeed.
Once MFCed, this will also help those poor souls who redundantly
``mv /modules /modules.old'' in RELENG_4 before an installkernel.
Colin Percival [Sat, 13 Mar 2004 11:02:37 +0000 (11:02 +0000)]
Don peril-sensitive glasses and throw the switch to move nologin(8) from
/sbin to /usr/sbin. A symlink from /sbin/nologin -> /usr/sbin/nologin
is created for compatibility purposes.
This will probably not cause any problems, but anyone who is doing
anything particularly unusual with nologin(8) or shells in general might
be well advised to check that everything still works.
Robert Watson [Sat, 13 Mar 2004 05:58:57 +0000 (05:58 +0000)]
Add annotations to mtx_lock(&Giant) in kern_select() and poll() that
we always grab Giant, even if we're actually only polling objects that
don't require giant. Once socket locking is merged, there will be
strong motivation to fix this.
Robert Watson [Sat, 13 Mar 2004 05:27:17 +0000 (05:27 +0000)]
Const-poison atmulticastaddr, which should be read but not modified.
While there, remove (caddr_t) casting of ethernet addresses, which
among other things discards the qualifier. This makes it clear that
atmulticastaddr does not require synchronization.
Colin Percival [Sat, 13 Mar 2004 04:39:45 +0000 (04:39 +0000)]
When nologin(8) is installed in /usr/sbin/, create a symlink from
/sbin/nologin for compatibility purposes. Also, remove the NO_NOLOGIN_LOG
option; we don't need to worry about conserving space as much on the /usr
partition.
Note that usr.sbin/nologin is not yet hooked up to the build.
Bruce Evans [Sat, 13 Mar 2004 02:56:27 +0000 (02:56 +0000)]
Align the offset in vn_rdwr_inchunks() so that at most the first and
the last chunk are misaligned relative to a MAXBSIZE byte boundary.
vn_rdwr_inchunks() is used mainly for elf core dumps, and elf sections
are usually perfectly misaligned relative to MAXBSIZE, and chunking
prevents the file system from doing much realigning.
This gives a surprisingly large speedup for core dumps -- from 50 to
13 seconds for a 512MB core dump here. The pessimization was mostly
from an interaction of the misalignment with IO_DIRECT. It increased
the number of i/o's for each chunk by a factor of 5 (3 writes and 2
read-before-writes instead of 1 write).
Brooks Davis [Sat, 13 Mar 2004 02:31:40 +0000 (02:31 +0000)]
Remove if_withname. It came in with the KAME import, but never got
used. Should someone need its functionality, it's a really expensive
implementation of:
ifnet_byindex(sdl->sdl_index)