]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoForward declare struct kaioinfo to un-void a pointer in struct proc.
alfred [Thu, 30 Sep 2004 09:18:48 +0000 (09:18 +0000)]
Forward declare struct kaioinfo to un-void a pointer in struct proc.

19 years agoFreeBSD has full support for multiple consoles since 2001.
ru [Thu, 30 Sep 2004 09:15:33 +0000 (09:15 +0000)]
FreeBSD has full support for multiple consoles since 2001.

19 years agoHide all the devices in the chroot dev except for random and null.
dougb [Thu, 30 Sep 2004 09:15:21 +0000 (09:15 +0000)]
Hide all the devices in the chroot dev except for random and null.

19 years agoo Store timestamp in network byte order.
maxim [Thu, 30 Sep 2004 07:35:56 +0000 (07:35 +0000)]
o Store timestamp in network byte order.
o Remove an assumption sizeof(struct timeval) == 8 (this is not
  true on sparc64).

Reviewed by: imp, -hackers
Obtained from: NetBSD (rev. 1.75)
MT5 after: 1 month

19 years agoAdd a new API for allocating unit number (-like) resources.
phk [Thu, 30 Sep 2004 07:04:03 +0000 (07:04 +0000)]
Add a new API for allocating unit number (-like) resources.

Allocation is always lowest free unit number.

A mixed range/bitmap strategy for maximum memory efficiency.  In
the typical case where no unit numbers are freed total memory usage
is 56 bytes on i386.

malloc is called M_WAITOK but no locking is provided (yet).  A bit of
experience will be necessary to determine the best strategy.  Hopefully
a "caller provides locking" strategy can be maintained, but that may
require use of M_NOWAIT allocation and failure handling.

A userland test driver is included.

19 years agoDocument the Synaptics tunable. While I'm here, also mention the
philip [Thu, 30 Sep 2004 06:18:29 +0000 (06:18 +0000)]
Document the Synaptics tunable.  While I'm here, also mention the
synapticshw_t structure and the MOUSE_SYN_GETHWINFO ioctl() which
reads it.

MT5 candidate

Approved by: njl

19 years agoWhile calling perror() on send() failure was useful for debugging the
rwatson [Thu, 30 Sep 2004 06:17:26 +0000 (06:17 +0000)]
While calling perror() on send() failure was useful for debugging the
if_em "wedging" problem, large numbers of perror() calls impacts send
performance.  As such, just count the error, don't print it.

19 years agoAdd syscall_timing, a simple timing micro-benchmark for some
rwatson [Thu, 30 Sep 2004 05:25:00 +0000 (05:25 +0000)]
Add syscall_timing, a simple timing micro-benchmark for some
characteristic system calls.  I've been sending this to people for
a while, and figured it would be more efficient to just put it in
CVS.

19 years agoRemove extra */
peter [Thu, 30 Sep 2004 02:13:42 +0000 (02:13 +0000)]
Remove extra */

Submitted by: Manfred Antar <null@pozo.com>

19 years agoAdd missing locking for secpolicy refcnt manipulations.
sam [Thu, 30 Sep 2004 01:08:02 +0000 (01:08 +0000)]
Add missing locking for secpolicy refcnt manipulations.

Submitted by: Roselyn Lee

19 years agoMerge netipsec/key.c:1.17 into KAME pfkey implementation:
rwatson [Thu, 30 Sep 2004 00:49:55 +0000 (00:49 +0000)]
Merge netipsec/key.c:1.17 into KAME pfkey implementation:

  date: 2004/09/26 02:01:27;  author: sam;  state: Exp;  lines: +0 -5
  Correct handling of SADB_UPDATE and SADB_ADD requests.  key_align may
  split the mbuf due to use of m_pulldown.  Discarding the result because
  of this does not make sense as no subsequent code depends on the entire
  msg being linearized (only the individual pieces).  It's likely
  something else is wrong here but for now this appears to get things back
  to a working state.

  Submitted by:   Roselyn Lee

This change was also made in the KAME CVS repository as key.c:1.337 by
itojun.

19 years agoIntroduce a tunable to disable support for Synaptics touchpads. A number of
philip [Wed, 29 Sep 2004 23:49:57 +0000 (23:49 +0000)]
Introduce a tunable to disable support for Synaptics touchpads.  A number of
people have reported problems (stickyness, aiming difficulty) which is proving
difficult to fix, so this will default to disable until sometime after 5.3R.

To enable Synaptics support, set the 'hw.psm.synaptics_support=1' tunable.

MT5 candidate.

Approved by: njl

19 years agoWe *need* the pic libobjc library for amd64. It is needed for ia64 as
peter [Wed, 29 Sep 2004 23:42:44 +0000 (23:42 +0000)]
We *need* the pic libobjc library for amd64.  It is needed for ia64 as
well, but I'll let Marcel decide whether he wants to build a .so or not.

Without this, building certain ports that use objc have fatal errors.

19 years agoWe seem to have occasions where sending an IPI takes significantly
kensmith [Wed, 29 Sep 2004 21:39:36 +0000 (21:39 +0000)]
We seem to have occasions where sending an IPI takes significantly
longer than 'normal'.  The cause is still being tracked down but
in the meantime there are machines where raising IPI_RETRIES does
help - it's not just a case of the machine staying locked up longer
and then panic-ing anyway.  Several helpful folks on sparc64@ tried
a patch that helped figure out what to raise this number to.

Discussed on: sparc64@
MFC after: 3 days

19 years agoDisallow negative coordinates and sizes in the syscons CONS_SCRSHOT
nectar [Wed, 29 Sep 2004 21:36:07 +0000 (21:36 +0000)]
Disallow negative coordinates and sizes in the syscons CONS_SCRSHOT
ioctl.

Reported by: Christer Oberg <christer.oberg@deprotect.com>

19 years agoReport once that the device isn't there, but keep trying. Don't
imp [Wed, 29 Sep 2004 20:55:14 +0000 (20:55 +0000)]
Report once that the device isn't there, but keep trying.  Don't
filter the errno values.  They don't make as much sense as they used
to given how we do devices in /dev.

19 years agoThe state that separates its scholars from its warriors will have its
wilko [Wed, 29 Sep 2004 19:52:19 +0000 (19:52 +0000)]
The state that separates its scholars from its warriors will have its
thinking done by cowards, and its fighting by fools. - Thucydides

19 years agoPrevent the unexpected deallocation of a page table page while performing
alc [Wed, 29 Sep 2004 19:20:40 +0000 (19:20 +0000)]
Prevent the unexpected deallocation of a page table page while performing
pmap_copy().  This entails additional locking in pmap_copy() and the
addition of a "flags" parameter to the page table page allocator for
specifying whether it may sleep when memory is unavailable.  (Already,
pmap_copy() checks the availability of memory, aborting if it is scarce.
In theory, another CPU could, however, allocate memory between
pmap_copy()'s check and the call to the page table page allocator,
causing the current thread to release its locks and sleep.  This change
makes this scenario impossible.)

Reviewed by: tegge@

19 years agoOnly fall back to probing the floppy drives via hints if there is a failure
jhb [Wed, 29 Sep 2004 19:08:34 +0000 (19:08 +0000)]
Only fall back to probing the floppy drives via hints if there is a failure
in the actual _FDE parsing.  If the failure occurs earlier such as in
fdc_attach() then don't try to probe any drives.

MFC after: 3 days
Reviewed by: njl
Tested by: Christian Laursen xi at borderworlds dot dk

19 years agoFix typeo. Should read ***!***IFQ_DRV_IS_EMPTY.
mlaier [Wed, 29 Sep 2004 18:28:28 +0000 (18:28 +0000)]
Fix typeo. Should read ***!***IFQ_DRV_IS_EMPTY.
This might fix some of the trouble around em(4) filling up its buffers.

Submitted by: mtm
Pointy hat to: mlaier
MFC after: 2 days

19 years agoWhen opening a pipe, usbd_setup_pipe() will do a usbd_clear_endpoint_stall()
wpaul [Wed, 29 Sep 2004 18:12:33 +0000 (18:12 +0000)]
When opening a pipe, usbd_setup_pipe() will do a usbd_clear_endpoint_stall()
to make sure the pipe is ready. Some devices apparently don't support
the clear stall command however. So what happens when you issue such
devices a clear stall command? Typically, the command just times out.
This, at least, is the behavior I've observed with two devices that
I own: a Rio600 mp3 player and a T-Mobile Sidekick II.

It used to be that after the timeout expired, the pipe open operation
would conclude and you could still access the device, with the only
negative effect being a long delay on open. But in the recent past,
someone added code to make the timeout a fatal error, thereby breaking
the ability to communicate with these devices in any way.

I don't know exactly what the right solution is for this problem:
presumeably there is some way to determine whether or not a device
supports the 'clear stall' command beyond just issuing one and waiting
to see if it times out, but I don't know what that is. So for now,
I've added a special case to the error checking code so that the
timeout is once again non-fatal, thereby letting me use my two
devices again.

19 years agoReflect the fact addr2ascii(3) and ascii2addr(3) need sys/socket.h
maxim [Wed, 29 Sep 2004 17:54:30 +0000 (17:54 +0000)]
Reflect the fact addr2ascii(3) and ascii2addr(3) need sys/socket.h
for AF_* constants.

Submitted by: Matthew George
MFC after: 2 weeks

19 years agoAccount for alias devices when tearing them down in destroy_dev() so we
green [Wed, 29 Sep 2004 16:38:38 +0000 (16:38 +0000)]
Account for alias devices when tearing them down in destroy_dev() so we
don't panic on a NULL cdev->si_devsw.

19 years agoFix minor indentation/formatting nit. (No code changes.)
wpaul [Wed, 29 Sep 2004 15:46:37 +0000 (15:46 +0000)]
Fix minor indentation/formatting nit. (No code changes.)

19 years agoTurn VM_KMEM_SIZE_MAX and VM_KMEM_SIZE_SCALE into tunables.
des [Wed, 29 Sep 2004 14:21:40 +0000 (14:21 +0000)]
Turn VM_KMEM_SIZE_MAX and VM_KMEM_SIZE_SCALE into tunables.

MFC after: 3 days

19 years agoFixed exiting from pager using the `q' key while paging
ru [Wed, 29 Sep 2004 13:43:55 +0000 (13:43 +0000)]
Fixed exiting from pager using the `q' key while paging
"help index" or "help <topic>" with list of subtopics.

19 years agoDocument the latest changes to src/etc/defaults/rc.conf.
trhodes [Wed, 29 Sep 2004 07:08:52 +0000 (07:08 +0000)]
Document the latest changes to src/etc/defaults/rc.conf.
Bump document date.

19 years agoCorrect a trivial typo.
trhodes [Wed, 29 Sep 2004 07:07:43 +0000 (07:07 +0000)]
Correct a trivial typo.

19 years agoFixed symlinking /var/named/etc/namedb to /etc/namedb.
ru [Wed, 29 Sep 2004 06:54:18 +0000 (06:54 +0000)]
Fixed symlinking /var/named/etc/namedb to /etc/namedb.
A second "make distrib-dirs" createed a symlink in /var/namedb/etc/namedb.
A third "make distrib-dirs" failed.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r135923,
trhodes [Wed, 29 Sep 2004 06:22:38 +0000 (06:22 +0000)]
This commit was generated by cvs2svn to compensate for changes in r135923,
which included commits to RCS files with non-trunk default branches.

19 years agoPlace files back on the vendor branch.
trhodes [Wed, 29 Sep 2004 06:22:38 +0000 (06:22 +0000)]
Place files back on the vendor branch.

Prodded by: ru

19 years agoUpdate the list of files involved in diskless booting.
brooks [Wed, 29 Sep 2004 05:28:48 +0000 (05:28 +0000)]
Update the list of files involved in diskless booting.

Reminded by: pjd

19 years agoAdd an additional struct inpcb * argument to pfil(9) in order to enable
mlaier [Wed, 29 Sep 2004 04:54:33 +0000 (04:54 +0000)]
Add an additional struct inpcb * argument to pfil(9) in order to enable
passing along socket information. This is required to work around a LOR with
the socket code which results in an easy reproducible hard lockup with
debug.mpsafenet=1. This commit does *not* fix the LOR, but enables us to do
so later. The missing piece is to turn the filter locking into a leaf lock
and will follow in a seperate (later) commit.

This will hopefully be MT5'ed in order to fix the problem for RELENG_5 in
forseeable future.

Suggested by: rwatson
A lot of work by: csjp (he'd be even more helpful w/o mentor-reviews ;)
Reviewed by: rwatson, csjp
Tested by: -pf, -ipfw, LINT, csjp and myself
MFC after: 3 days

LOR IDs: 14 - 17 (not fixed yet)

19 years agoAssign so_pcb to NULL rather than 0 as it's a pointer.
rwatson [Wed, 29 Sep 2004 04:01:13 +0000 (04:01 +0000)]
Assign so_pcb to NULL rather than 0 as it's a pointer.

Spotted by: dwhite

19 years agoAdd a statistics-file directive
dougb [Wed, 29 Sep 2004 03:49:35 +0000 (03:49 +0000)]
Add a statistics-file directive

19 years agostats goes under /var, not /var/run
dougb [Wed, 29 Sep 2004 03:43:10 +0000 (03:43 +0000)]
stats goes under /var, not /var/run

19 years agogshapiro assures me that uid bind is not necessary for /etc/namedb,
dougb [Wed, 29 Sep 2004 03:35:49 +0000 (03:35 +0000)]
gshapiro assures me that uid bind is not necessary for /etc/namedb,
so we'll use the more secure default till I have a chance to prove
myself wrong. :)

Add a /var/stats directory to be enabled in named.conf.

Submitted by: gshapiro

19 years agoWhitespace only, tabs -> spaces, per README
dougb [Wed, 29 Sep 2004 03:33:45 +0000 (03:33 +0000)]
Whitespace only, tabs -> spaces, per README

19 years agoMFi386: rev 1.239 - invalidate tlb after pte update
peter [Wed, 29 Sep 2004 01:59:10 +0000 (01:59 +0000)]
MFi386: rev 1.239 - invalidate tlb after pte update

19 years agoMFi386: rev 1.236 - improve panic message for a busted mptable
peter [Wed, 29 Sep 2004 01:58:24 +0000 (01:58 +0000)]
MFi386: rev 1.236 - improve panic message for a busted mptable

19 years agoGive users the ability to load a mac_bsdextended(4) ruleset on boot (defaults
trhodes [Wed, 29 Sep 2004 00:12:28 +0000 (00:12 +0000)]
Give users the ability to load a mac_bsdextended(4) ruleset on boot (defaults
to NO of course).  Provide a basic ruleset file, rc.bsdextended, but allow
the filename to be overridden through rc.conf.

Discussed with: rwatson (awhile ago)

19 years agoThis is a small tool which will read an entire disk(partition) using
phk [Tue, 28 Sep 2004 22:00:01 +0000 (22:00 +0000)]
This is a small tool which will read an entire disk(partition) using
1M blocks and optionally write the read data to a file or disk.

If a read error happens, the 1M block gets put on the end of the worklist
and will be retried with 64k blocksize.

If a read error happens again, the 64k block gets put at the end of the
worklist and will be retried with single sector reads.

The program keeps trying until you stop it.

You can refresh a disk:

recoverdisk /dev/ad1 /dev/ad1

or salvage a floppy:

recoverdisk /dev/fd0 myfloppy.flp

19 years agoFix some of the more egregious problems with this file:
dougb [Tue, 28 Sep 2004 21:22:09 +0000 (21:22 +0000)]
Fix some of the more egregious problems with this file:

1. Update text about later BINDs using a pseudo-random, unpriviliged
query port for UDP by default.

2. We are now running in a sandbox by default, with a dedicated dump
directory, so remove the stale comment.

3. The topology configuration is not for the faint of heart, so
remove the commented example.

4. Tighten up some language a bit.

5. s/secondary/slave/

6. No need for the example about a bind-owned directory for slave zones.

7. Change domain.com to example.com in the example, per RFC 2606.

8. Update the path for slave zones in the example.
- Thanks to Scot Hetzel <swhetzel@gmail.com>

There is more work to do here, but this is an improvement.

19 years agoMake cvsbug(1) actually work instead of aborting due to missing configure
peter [Tue, 28 Sep 2004 21:19:31 +0000 (21:19 +0000)]
Make cvsbug(1) actually work instead of aborting due to missing configure
script substitution markers.

19 years agoFix the embedded version string in cvs and cvsbug. This breaks scripts
peter [Tue, 28 Sep 2004 21:02:43 +0000 (21:02 +0000)]
Fix the embedded version string in cvs and cvsbug.  This breaks scripts
that parse it.

PR: 72139
Submitted by:  Eugene M. Kim <gene@nttmcl.com>

19 years agoUse generic infrastructure for the ucom driver instead of local stuff.
phk [Tue, 28 Sep 2004 20:23:49 +0000 (20:23 +0000)]
Use generic infrastructure for the ucom driver instead of local stuff.

This changes the naming of USB serial devices to: /dev/ttyU%d and
/dev/cuaU%d for call-in and call-out devices respectively.  (Please
notice: capital 'U')

Please also note that we now have .init and .lock devices for USB
serial ports.  These are not persistent across device removal.  devd(8)
can be used to configure them on attachment time.

These changes also improve the chances of the system surviving if
the USB device is unplugged at an inconvenient time.  At least we
do not rip things apart while there are any threads in the device
driver anymore.

Remove cdevsw, rely on the tty generic one.

Don't make_dev(), use ttycreate() which does all the magic.

In detach, do close procesing if we ripped things apart
while the device was open.  Call ttyfree() once we're done
cleaning up.

19 years agoAdd -1 to this non-existent use of m_print in the source tree so LINT
phk [Tue, 28 Sep 2004 20:14:51 +0000 (20:14 +0000)]
Add -1 to this non-existent use of m_print in the source tree so LINT
compiles again :-)

19 years agoAdd functions to create and free the "tty-ness" of a serial port in a
phk [Tue, 28 Sep 2004 19:33:49 +0000 (19:33 +0000)]
Add functions to create and free the "tty-ness" of a serial port in a
generic way.  This code will allow a similar amount of code to be
removed from most if not all serial port drivers.

Add generic cdevsw for tty devices.

Add generic slave cdevsw for init/lock devices.

Add ttypurge function which wakes up all know generic sleep
points in the tty code, and calls into the hw-driver if it
provides a method.

Add ttycreate function which creates tty device and optionally
cua device.  In both cases .init/.lock devices are created
as well.

Change ttygone() slightly to also call the hw driver provided
purge routine.

Add ttyfree() which will purge and destroy the cdevs.

Add ttyconsole mode for setting console friendly termios
on a port.

19 years agoimprove the mbuf m_print function.. Only pull length from pkthdr if there
jmg [Tue, 28 Sep 2004 18:40:18 +0000 (18:40 +0000)]
improve the mbuf m_print function..  Only pull length from pkthdr if there
is one, detect mbuf loops and stop, add an extra arg so you can only print
the first x bytes of the data per mbuf (print all if arg is -1), print
flags using %b (bitmask)...

No code in the tree appears to use m_print, and it's just a maner of adding
-1 as an additional arg to m_print to restore original behavior..

MFC after: 4 days

19 years agoArrgh. Recently I tried using ugen(4) in an application that uses
wpaul [Tue, 28 Sep 2004 18:39:04 +0000 (18:39 +0000)]
Arrgh. Recently I tried using ugen(4) in an application that uses
select(2), and discovered to my horror that ugen(4)'s bulk in/out support
is horribly lobotomized. Bulk transfers are done using the synchronous
API instead of the asynchronous one. This causes the following broken
behavior to occur:

- You open the bulk in/out ugen device and get a descriptor
- You create some other descriptor (socket, other device, etc...)
- You select on both the descriptors waiting until either one has
  data ready to read
- Because of ugen's brokenness, you block in usb_bulk_transfer() inside
  ugen_do_read() instead of blocking in select()
- The non-USB descriptor becomes ready for reading, but you remain blocked
  on select()
- The USB descriptor becomes ready for reading
- Only now are you woken up so that you can ready data from either
  descriptor.

The result is select() can only wake up when there's USB data pending. If
any other descriptor becomes ready, you lose: until the USB descriptor
becomes ready, you stay asleep.

The correct approach is to use async bulk transfers, so I changed
the read code to use the async bulk transfer API. I left the write
side alone for now since it's less of an issue.

Note that the uscanner driver has the same brokenness in it.

19 years agodocument the limit on jumbo frame size..
jmg [Tue, 28 Sep 2004 18:24:19 +0000 (18:24 +0000)]
document the limit on jumbo frame size..

MFC after: 5 days

19 years agofix jumbo frames as much as they can be fixed for re. We now cap the MTU
jmg [Tue, 28 Sep 2004 18:22:24 +0000 (18:22 +0000)]
fix jumbo frames as much as they can be fixed for re.  We now cap the MTU
to 7422 since it appears that the 8169S can't transmit anything larger..
The 8169S can receive full jumbo frames, but we don't have an mru to let
the upper layers know this...

add fixup so that this driver should work on alignment constrained platforms
(!i386 && !amd64)

MFC after: 5 days

19 years agoAdd an assertion that the pcb_nsaved field of the pcb be less than
kensmith [Tue, 28 Sep 2004 16:36:58 +0000 (16:36 +0000)]
Add an assertion that the pcb_nsaved field of the pcb be less than
MAXWIN to the register window manipulation functions - rwindow_load()
calls rwindow_save() so this one addition should take care of both.
This should help find places that pcb_nsaved doesn't get initialized
properly.

Suggested by: jake

19 years agoDon't try to relocate the dynamic loader in reloc_non_plt(). It has already
cognet [Tue, 28 Sep 2004 14:43:12 +0000 (14:43 +0000)]
Don't try to relocate the dynamic loader in reloc_non_plt(). It has already
been done before.

19 years agoUse add instead of saving the sp in a register.
cognet [Tue, 28 Sep 2004 14:41:15 +0000 (14:41 +0000)]
Use add instead of saving the sp in a register.

19 years agoCalling fuword from fuword32 with bl and without returning after is really a bad
cognet [Tue, 28 Sep 2004 14:39:26 +0000 (14:39 +0000)]
Calling fuword from fuword32 with bl and without returning after is really a bad
idea.
Any way I get a customized CVS template with "Pointy hat to: cognet"
pre-filled ?

19 years agoAlways invalidate the whole data cache in pmap_enter() for now.
cognet [Tue, 28 Sep 2004 14:38:14 +0000 (14:38 +0000)]
Always invalidate the whole data cache in pmap_enter() for now.
It should not be needed.

19 years agoRemove dead code.
cognet [Tue, 28 Sep 2004 14:37:39 +0000 (14:37 +0000)]
Remove dead code.

19 years agoAmend the named chroot update instructions by adding a stop and start
dougb [Tue, 28 Sep 2004 13:44:41 +0000 (13:44 +0000)]
Amend the named chroot update instructions by adding a stop and start
of syslogd. The rc.d/syslogd script has the logic already to create
a socket in the chroot dir, it just needs to be restarted.

Reminded by: matusita

19 years agoRemove support for accessing device nodes in UFS/FFS.
phk [Tue, 28 Sep 2004 13:30:58 +0000 (13:30 +0000)]
Remove support for accessing device nodes in UFS/FFS.

Device nodes can still be created and exported with NFS.

19 years agoProtect the start/end counts on consumers and providers with the up/down
phk [Tue, 28 Sep 2004 11:56:37 +0000 (11:56 +0000)]
Protect the start/end counts on consumers and providers with the up/down
mutexes.

Make it possible to also protect the disk statistics (at a minor cost in
performance) by setting bit 2 of kern.geom.collectstats.

19 years agoCreate a named chroot directory structure in /var/named, and use it
dougb [Tue, 28 Sep 2004 09:46:00 +0000 (09:46 +0000)]
Create a named chroot directory structure in /var/named, and use it
by default when named is enabled. Also, improve our default directory
layout by creating /var/named/etc/namedb/{master|slave} directories,
and use the former for the generated localhost* files.

Rather than using pax to copy device entries, mount devfs in the
chroot directory.

There may be some corner cases where things need to be adjusted,
but overall this structure has been well tested on a production
network, and should serve the needs of the vast majority of users.

UPDATING has instructions on how to do the conversion for those
with existing configurations.

19 years agoRemove support for using NFS device nodes.
phk [Tue, 28 Sep 2004 08:50:01 +0000 (08:50 +0000)]
Remove support for using NFS device nodes.

19 years ago- Set maximum request size to MAXPHYS (128kB), instead of DFLPHYS (64kB).
pjd [Tue, 28 Sep 2004 08:34:27 +0000 (08:34 +0000)]
- Set maximum request size to MAXPHYS (128kB), instead of DFLPHYS (64kB).
- Set minimum request size to sectorsize, instead of 512 bytes.

Approved by: phk (some time ago)

19 years agoJust use MAXPHYS as maximum I/O request size, instead of using my own
pjd [Tue, 28 Sep 2004 07:33:37 +0000 (07:33 +0000)]
Just use MAXPHYS as maximum I/O request size, instead of using my own
#define for this purpose.
No functional change.

19 years agoBe consistant; make the memrange bit be part of the mem module like
markm [Tue, 28 Sep 2004 07:29:54 +0000 (07:29 +0000)]
Be consistant; make the memrange bit be part of the mem module like
i386.

19 years agoAdd the memrange bits to the loadable module.
markm [Tue, 28 Sep 2004 07:26:00 +0000 (07:26 +0000)]
Add the memrange bits to the loadable module.

MT5 after: 3 days

19 years agoTurns out that revision 1.52 was a bad idea. It broke the long
imp [Tue, 28 Sep 2004 04:22:55 +0000 (04:22 +0000)]
Turns out that revision 1.52 was a bad idea.  It broke the long
standing ability to list a non-existant device in /etc/ttys to keep it
from dying.  This is a documented feature of init(8):
     The init utility can also be used to keep arbitrary daemons running,
     automatically restarting them if they die.  In this case, the first field
     in the ttys(5) file must not reference the path to a configured device
     node and will be passed to the daemon as the final argument on its com-
     mand line.  This is similar to the facility offered in the AT&T System V
     UNIX /etc/inittab.

So rather than fix the man page to 'break' this feature, back out the change.

At the time this change was made, people felt that the spamage from
getty was annoying on headless consoles.  Andrew Gallatin noted:
> Most of my machines are headless without video cards and use a serial
> console.  With devfs this means that /dev/ttyv[1-N] do not exist and
> getty bitches like this:
>
> Sep 26 11:00:11 monet getty[543]: open /dev/ttyv1: No such file or directory

and we went off and applied this hack rather than fixing getty to
sleep forever when it gets an unknown device, as was Andrew's other
suggestion.  Since it breaks things, I'm off to do that instead.

19 years agoAdd ICH6 support.
ps [Tue, 28 Sep 2004 01:32:58 +0000 (01:32 +0000)]
Add ICH6 support.

19 years agoDecrease kern.geom.raid3.timeout to 4, so it is smaller than
pjd [Mon, 27 Sep 2004 22:12:14 +0000 (22:12 +0000)]
Decrease kern.geom.raid3.timeout to 4, so it is smaller than
vfs.root.mountdelay by default.

19 years agoDeny invalid I/O requests which comes from userland here, because later
pjd [Mon, 27 Sep 2004 22:10:01 +0000 (22:10 +0000)]
Deny invalid I/O requests which comes from userland here, because later
we'll get a panic.
MT5 candidate.

Reviewed by: phk

19 years agoDesupport device nodes on EXT2 filesystems.
phk [Mon, 27 Sep 2004 20:38:46 +0000 (20:38 +0000)]
Desupport device nodes on EXT2 filesystems.

19 years agoAvoid race while synchronizing components. It is very hard to bump into,
pjd [Mon, 27 Sep 2004 20:32:35 +0000 (20:32 +0000)]
Avoid race while synchronizing components. It is very hard to bump into,
but it is possible:
1. Read data from good component for synchronization.
2. Write data to the same area.
3. Write synchronization data, which are now stale.

Found by: tegge (for gmirror)

19 years agoRemove NFS4 vop method vector for devices: we are desupporing device nodes
phk [Mon, 27 Sep 2004 20:02:50 +0000 (20:02 +0000)]
Remove NFS4 vop method vector for devices: we are desupporing device nodes
on anything but DEVFS and in this case it was not even used (see below).

Put the NFS4 vop method for fifo's behind "#if 0" because it is unused.
Add a XXX comment to say that I think the unusedness is a bug.

19 years agoAdd sc_iostart to softc and unbreak the build.
gallatin [Mon, 27 Sep 2004 19:51:58 +0000 (19:51 +0000)]
Add sc_iostart to softc and unbreak the build.
This was forgotten in my previous commit to add i/o port to uninorth.c

Pointy-hat to: me

19 years agostyle consistency.
phk [Mon, 27 Sep 2004 19:44:39 +0000 (19:44 +0000)]
style consistency.

19 years agoMinor, but very important condition fix. The current one can never be true.
pjd [Mon, 27 Sep 2004 19:32:26 +0000 (19:32 +0000)]
Minor, but very important condition fix. The current one can never be true.

19 years agoGive cluster_write() an explicit vnode argument.
phk [Mon, 27 Sep 2004 19:14:10 +0000 (19:14 +0000)]
Give cluster_write() an explicit vnode argument.

In the future a struct buf will not automatically point out a vnode for us.

19 years agoAttempting to unset an undefined variable or function should not be
des [Mon, 27 Sep 2004 18:43:18 +0000 (18:43 +0000)]
Attempting to unset an undefined variable or function should not be
considered an error according to the Open Group Base Specification.

PR: standards/45738
Submitted by: Matthias Andree <matthias.andree@web.de>
MFC after: 3 days

19 years agoSome minor print/panic message cleanups.
kensmith [Mon, 27 Sep 2004 16:06:38 +0000 (16:06 +0000)]
Some minor print/panic message cleanups.

19 years agoDecrease kern.geom.mirror.timeout to 4, so it is smaller than
pjd [Mon, 27 Sep 2004 13:47:37 +0000 (13:47 +0000)]
Decrease kern.geom.mirror.timeout to 4, so it is smaller than
vfs.root.mountdelay by default.

19 years agoInitialize the count of saved register windows to 0 in the pcb created
kensmith [Mon, 27 Sep 2004 12:34:47 +0000 (12:34 +0000)]
Initialize the count of saved register windows to 0 in the pcb created
for the new thread.  The rest of the fields in the pcb wind up being
written to before they're read as a normal part of the pcb usage but
this field may be read upon return to userland, having it be uninitialized
garbage is bad.

Submitted by: Andrew Belashov (bel at orel dot ru)
Reviewed by: jake
MFC after: 3 days

19 years agoStop on write error.
phk [Mon, 27 Sep 2004 08:24:05 +0000 (08:24 +0000)]
Stop on write error.

19 years ago1. Add much finer granularity to the NO_BIND knobs with the addition of:
dougb [Mon, 27 Sep 2004 08:23:43 +0000 (08:23 +0000)]
1. Add much finer granularity to the NO_BIND knobs with the addition of:
NO_BIND_DNSSEC, NO_BIND_ETC, NO_BIND_NAMED, and NO_BIND_UTILS.

2. Make creation of directories in /usr/include that are only needed
in the WITH_BIND_LIBS case conditional.

Reviewed by: ru, des

19 years agoRemove the directories that are now only installed when the user
dougb [Mon, 27 Sep 2004 08:18:43 +0000 (08:18 +0000)]
Remove the directories that are now only installed when the user
defines WITH_BIND_LIBS.

19 years agoHook the BIND.* files up to the build.
dougb [Mon, 27 Sep 2004 08:17:51 +0000 (08:17 +0000)]
Hook the BIND.* files up to the build.

19 years agoSeperate out the optional parts of the include tree that are
dougb [Mon, 27 Sep 2004 08:16:29 +0000 (08:16 +0000)]
Seperate out the optional parts of the include tree that are
only built and installed when the user defines WITH_BIND_LIBS.

19 years agoAdd a file spec to create a chroot directory structure for
dougb [Mon, 27 Sep 2004 08:15:34 +0000 (08:15 +0000)]
Add a file spec to create a chroot directory structure for
a BIND name server.

This file is not being used yet, but will be soon.

19 years agoThis file is about to get some optional bits, so line up the parts of
dougb [Mon, 27 Sep 2004 07:00:44 +0000 (07:00 +0000)]
This file is about to get some optional bits, so line up the parts of
the FILES variable one line at a time.

This should be a whitespace change only.

Reviewed by: ru

19 years agoUsed cached cdevsw pointer.
phk [Mon, 27 Sep 2004 06:34:30 +0000 (06:34 +0000)]
Used cached cdevsw pointer.

19 years agoAdd cdevsw->d_purge() support.
phk [Mon, 27 Sep 2004 06:18:25 +0000 (06:18 +0000)]
Add cdevsw->d_purge() support.

This device method shall wake up any threads sleeping in the device driver
and make the depart the drivers code for good.

19 years agoDon't use an uninitialised variable when reading from a ktr alq file.
julian [Mon, 27 Sep 2004 05:56:57 +0000 (05:56 +0000)]
Don't use an uninitialised variable when reading from a ktr alq file.

19 years agoAdd cross references to vm_map_entry_resize_free.9.
alc [Mon, 27 Sep 2004 05:44:28 +0000 (05:44 +0000)]
Add cross references to vm_map_entry_resize_free.9.

Submitted by: Mark W. Krentel

19 years agoDocument the O(log n) algorithm for finding free space.
alc [Mon, 27 Sep 2004 04:22:41 +0000 (04:22 +0000)]
Document the O(log n) algorithm for finding free space.

Submitted by: Mark W. Krentel

19 years agoDocument the flags field.
alc [Mon, 27 Sep 2004 03:59:36 +0000 (03:59 +0000)]
Document the flags field.

Submitted by: Mark W. Krentel

19 years agoPreviously I thought I was seeing a failure to install the .5 man pages
dougb [Mon, 27 Sep 2004 03:55:03 +0000 (03:55 +0000)]
Previously I thought I was seeing a failure to install the .5 man pages
with this configuration, but Ruslan tells me that I was probably mistaken,
and on retest the .5 pages are being installed just fine.

Therefore reverse the MAN[58] change in favor of the more modern syntax.

Submitted by: ru

19 years agoDocument the upgrade procedure.
des [Mon, 27 Sep 2004 00:25:56 +0000 (00:25 +0000)]
Document the upgrade procedure.

19 years agoForgot to commit addition of ds_resync field.
pjd [Sun, 26 Sep 2004 20:42:35 +0000 (20:42 +0000)]
Forgot to commit addition of ds_resync field.

19 years agoAvoid race while synchronizing components. It is very hard to bump into,
pjd [Sun, 26 Sep 2004 20:41:07 +0000 (20:41 +0000)]
Avoid race while synchronizing components. It is very hard to bump into,
but it is possible:
1. Read data from good component for synchronization.
2. Write data to the same area.
3. Write synchronization data, which are now stale.

Found by: tegge

19 years ago...And fix WITNESS builds: declare syscallnames.
marcel [Sun, 26 Sep 2004 20:39:56 +0000 (20:39 +0000)]
...And fix WITNESS builds: declare syscallnames.