Commit Graph

153325 Commits

Author SHA1 Message Date
kardel 9a3db19511 track NTP bug 734: setsockopt(..., IP_MULTICAST_IF, ...) fails on 64 bit platforms 2006-11-06 12:19:30 +00:00
pooka f212146148 make it possible to build & load puffs as an LKM
by Lubomir Kundrak, PR kern/35000
2006-11-06 11:44:54 +00:00
elad 993da55808 simplify & fix logic in device/rawio/spec. 2006-11-06 02:02:18 +00:00
elad 66e42f0f77 XXX: use KAUTH_DEVICE_RAWIO_PASSTHRU for direct disk access here. 2006-11-05 23:00:54 +00:00
jmmv 7d49db6eac Note a couple of tmpfs related changes. 2006-11-05 22:46:20 +00:00
jmmv 6b0060c0d6 Register the tmpfs lkm. 2006-11-05 22:43:26 +00:00
jmmv 8d45655462 Add a lkm for tmpfs. All the regression tests pass fine when using the
module rather than an in-core build.
2006-11-05 22:42:14 +00:00
cube c3fe38a0cd config_found() is for direct configuration, not indirect.
Change the code to use config_search/config_attach, and print a warning
when the user has device* at pcppi? in the kernel configuration file.
2006-11-05 21:06:26 +00:00
jmmv 042827a010 Randomly initialize the node's generation to make file handles less
predictable.  This solves a problem that may appear when serving a tmpfs
over NFS: if the server reboots, newly allocated files should have
different file handles; otherwise the remote clients could access files
they were not supposed to touch.
2006-11-05 19:40:31 +00:00
jmmv 1a3e8c3caa Protect the dircookie stuff with _KERNEL. Fixes build problems of
mount_tmpfs as reported by Hisashi T Fujinaka in private mail.
2006-11-05 19:36:07 +00:00
he 2e013abffa Ensure that ${METALOG} does not grow without bounds as an effect of
repeated unprivileged UPDATE builds.

Discussed with lukem@
2006-11-05 18:04:44 +00:00
jmmv 2a3293d093 Exporting tmpfs file systems through NFS now works. Sure, file handles are
not persistent across reboots but neither are those of MFS, which we are
trying to replace.  We should probably warn the user somehow, but not
prevent him doing this if he really wants to.

While here add a "reply" to the code-style change item.
2006-11-05 18:03:21 +00:00
jmmv b2603104c2 Truncate directory cookies to 31 bits to avoid problems exposed in Linux
binaries which cast the returned values to 64-bits and fail due to sign
expansion.  More details are provided in the big comment in tmpfs.h that
describes how the new tmpfs_dircookie works.

This is a rather ugly hack that shall be fixed with a cleaner solution,
but this resolves the problem in an effective way.

Fixes kern PR/32034.
2006-11-05 16:59:18 +00:00
tsutsui a6058d8988 Rename prefixes of re(4) specific macro and structure members
from RTK_ or rtk_ to RE_ or re_ for maintainability of these sources.
Eventually we should split these files (and struct rtk_softc) into
three elements, rtk(4) specific one, re(4) specific one, and a common
(register definitions, eeprom and multicast functions etc) part.

While here, add a couple of comments around weird definitions.
2006-11-05 16:52:10 +00:00
tsutsui 7274f167d2 - make TX threshold macro more generic
- no need to bother to initialize sc_txthresh in rtk_attach()
  since it's done in rtk_init()
2006-11-05 15:49:41 +00:00
christos 9573aa20e8 - call the initialization routine for arc4randbytes.
- knf (add continues)
2006-11-05 14:13:56 +00:00
tsutsui 527c7a697a Use uintNN_t. 2006-11-05 13:05:18 +00:00
jld e973fa550e If the timestamp is/becomes stale when computing the current system_time,
obviously shadow_system_time will need to be reread as well.
2006-11-05 10:11:55 +00:00
jdolecek d5f5129729 add one code style and one knote-related item 2006-11-05 09:40:26 +00:00
martin 956703a5a2 Patch from Christos Zoulas:
rework syslog handling to fix PR 33926.
2006-11-05 09:16:20 +00:00
yamt 7bb70c7257 yamt-splraiseipl: prep 2006-11-05 08:37:20 +00:00
yamt 09a4e92a14 yamt-splraiseipl: pc532 2006-11-05 08:06:48 +00:00
yamt 0f0ac5fba9 vmapbuf: don't try to modify non-lvalue. 2006-11-05 08:04:55 +00:00
itohy bb94735ed0 Restart transmitter, not reset the entire chip, on transmission errors
like Tx underrun.
This should improve performance on such errors.

Handle fifo threshold properly --- actually it did not handled at all.
Note that the Tx Complete interrupts occur only on errors, and ex_txstat()
is not good place to increment sc->tx_succ_ok.  Increase the sc->tx_succ_ok
count from 100 to 256, since the ex(4) does busmastering and underruns
should rarely happen in normal operations.

Possibly improve some situation for the hang-on-heavy-load problems,
such as kern/11450 and kern/27096.
2006-11-05 07:59:21 +00:00
yamt b653f1b34c yamt-splraiseipl: atari 2006-11-05 07:59:17 +00:00
yamt 2c88f5244c yamt-splraiseipl: remove a note about hp300 failure
which has been fixed by tsutsui@.  thanks.
2006-11-05 07:10:58 +00:00
itohy 4be0089972 Add definition for Tx Reclaim status (TXS_RECLAIM). 2006-11-05 05:57:53 +00:00
christos b442c7cdd1 weak for syslog_ss 2006-11-05 04:35:35 +00:00
elad a996c89fcf forward decl struct vnode 2006-11-04 21:24:20 +00:00
jmmv 9d877d347c Use size_t in a couple of places as it makes more sense WRT the places
where the variables are later used.  From PR kern/25277 by Jeff Ito.
2006-11-04 20:51:32 +00:00
pooka 78e8aceaac adapt to mnt_vnodelist being TAILQ 2006-11-04 20:33:17 +00:00
pooka 88134b62a2 add mountdump, prints mount point information a little like mount(8) 2006-11-04 20:29:30 +00:00
apb 044ad93439 Mention gkermit. 2006-11-04 18:18:54 +00:00
wiz 0db5a288e6 Fix a typo. 2006-11-04 17:16:24 +00:00
elad 03a082e7aa Oops, forgot to do this one in previous commit.
Pointed out by mjf@, thanks!
2006-11-04 15:36:37 +00:00
yamt 7c002a63d4 yamt-splraiseipl: ibmnws 2006-11-04 14:45:54 +00:00
yamt c29394e4c8 yamt-splraiseipl: ia64. (just a placeholder, tho.) 2006-11-04 14:32:48 +00:00
yamt 548e7251fd yamt-splraiseipl: note hp300 GENERIC compilation failure which i haven't
investigated yet.
2006-11-04 14:20:50 +00:00
yamt c030485092 yamt-splraiseipl: sandpoint. 2006-11-04 14:17:35 +00:00
yamt 4852bbb11c yamt-splraiseipl: update base. 2006-11-04 14:16:52 +00:00
yamt 3aef238dc0 - define some macros and use them.
- fix an off-by-one in testcode.
2006-11-04 13:26:22 +00:00
yamt e1b6afe136 todo. 2006-11-04 13:25:52 +00:00
yamt 90101c023b be explicit about the difference between vmem_free and vmem_xfree. 2006-11-04 13:07:58 +00:00
yamt bf2265fdcd vmem_xalloc/xfree. 2006-11-04 13:00:00 +00:00
yamt 6b5e5df655 sort. 2006-11-04 12:58:06 +00:00
yamt bf894997ce document vmem_xalloc/xfree. 2006-11-04 12:55:28 +00:00
yamt f0fcd48625 consistency. 2006-11-04 12:39:50 +00:00
hubertf 3da409792d Use CDROMS_RELEASEDIR consistently 2006-11-04 12:06:28 +00:00
jmmv d4cb7c851a Fix matching of options with common prefixes (e.g. console and console_speed).
While here remove an useless assignment and bind a variable to a loop.
2006-11-04 11:37:12 +00:00
elad 1121d7d96a Sync with reality. 2006-11-04 10:47:37 +00:00