]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoAdd a temporary workaround for panics being seen on NFS servers with ZFS,
rwatson [Sun, 7 Jun 2009 20:51:31 +0000 (20:51 +0000)]
Add a temporary workaround for panics being seen on NFS servers with ZFS,
where an improperly initialized prison field could lead to a panic.  This
is not the correct solution, since it fails to address similar problems
for both AUDIT and MAC, which also rely on properly initialized
credentials, but should reduce panic reports while we work that out.

Reported by: ps, kan, others

15 years agoAdd a check to xprt_unregister() to catch the case where another
rmacklem [Sun, 7 Jun 2009 20:38:41 +0000 (20:38 +0000)]
Add a check to xprt_unregister() to catch the case where another
thread has already unregistered the structure. Also add a KASSERT()
to xprt_unregister_locked() to check that the structure hasn't already
been unregistered.

Reviewed by: jhb
Tested by: pho
Approved by: kib (mentor)

15 years agoAllow humanized numbers for LBAs, as well as partition indices for
marcel [Sun, 7 Jun 2009 20:12:14 +0000 (20:12 +0000)]
Allow humanized numbers for LBAs, as well as partition indices for
gpart(8). LBAs in particular are ugly. The ganularity is a sector,
but users expect byte granularity when specifying the size or offset
with a SI unit. Handle LBAs specially to deal with this.

15 years agoRename usb pipes to endpoints as it better represents what they are, and struct
thompsa [Sun, 7 Jun 2009 19:41:11 +0000 (19:41 +0000)]
Rename usb pipes to endpoints as it better represents what they are, and struct
usb_pipe may be used for a different purpose later on.

15 years agoEliminate unnecessary obfuscation when testing a page's valid bits.
alc [Sun, 7 Jun 2009 19:38:26 +0000 (19:38 +0000)]
Eliminate unnecessary obfuscation when testing a page's valid bits.

15 years agoBump driver revision (should have bumped it earlier).
ariff [Sun, 7 Jun 2009 19:36:25 +0000 (19:36 +0000)]
Bump driver revision (should have bumped it earlier).

15 years agoSound Mega-commit. Expect further cleanup until code freeze.
ariff [Sun, 7 Jun 2009 19:12:08 +0000 (19:12 +0000)]
Sound Mega-commit. Expect further cleanup until code freeze.

For a slightly thorough explaination, please refer to
[1] http://people.freebsd.org/~ariff/SOUND_4.TXT.html .

Summary of changes includes:

1 Volume Per-Channel (vpc).  Provides private / standalone volume control
  unique per-stream pcm channel without touching master volume / pcm.
  Applications can directly use SNDCTL_DSP_[GET|SET][PLAY|REC]VOL, or for
  backwards compatibility, SOUND_MIXER_PCM through the opened dsp device
  instead of /dev/mixer.  Special "bypass" mode is enabled through
  /dev/mixer which will automatically detect if the adjustment is made
  through /dev/mixer and forward its request to this private volume
  controller.  Changes to this volume object will not interfere with
  other channels.

  Requirements:
    - SNDCTL_DSP_[GET|SET][PLAY|REC]_VOL are newer ioctls (OSSv4) which
      require specific application modifications (preferred).
    - No modifications required for using bypass mode, so applications
      like mplayer or xmms should work out of the box.

  Kernel hints:
    - hint.pcm.%d.vpc (0 = disable vpc).

  Kernel sysctls:
    - hw.snd.vpc_mixer_bypass (default: 1).  Enable or disable /dev/mixer
      bypass mode.
    - hw.snd.vpc_autoreset (default: 1).  By default, closing/opening
      /dev/dsp will reset the volume back to 0 db gain/attenuation.
      Setting this to 0 will preserve its settings across device
      closing/opening.
    - hw.snd.vpc_reset (default: 0).  Panic/reset button to reset all
      volume settings back to 0 db.
    - hw.snd.vpc_0db (default: 45).  0 db relative to linear mixer value.

2 High quality fixed-point Bandlimited SINC sampling rate converter,
  based on Julius O'Smith's Digital Audio Resampling -
  http://ccrma.stanford.edu/~jos/resample/.  It includes a filter design
  script written in awk (the clumsiest joke I've ever written)
    - 100% 32bit fixed-point, 64bit accumulator.
    - Possibly among the fastest (if not fastest) of its kind.
    - Resampling quality is tunable, either runtime or during kernel
      compilation (FEEDER_RATE_PRESETS).
    - Quality can be further customized during kernel compilation by
      defining FEEDER_RATE_PRESETS in /etc/make.conf.

  Kernel sysctls:
    - hw.snd.feeder_rate_quality.
      0 - Zero-order Hold (ZOH).  Fastest, bad quality.
      1 - Linear Interpolation (LINEAR).  Slightly slower than ZOH,
          better quality but still does not eliminate aliasing.
      2 - (and above) - Sinc Interpolation(SINC).  Best quality.  SINC
          quality always start from 2 and above.

  Rough quality comparisons:
    - http://people.freebsd.org/~ariff/z_comparison/

3 Bit-perfect mode.  Bypasses all feeder/dsp effects.  Pure sound will be
  directly fed into the hardware.

4 Parametric (compile time) Software Equalizer (Bass/Treble mixer). Can
  be customized by defining FEEDER_EQ_PRESETS in /etc/make.conf.

5 Transparent/Adaptive Virtual Channel. Now you don't have to disable
  vchans in order to make digital format pass through.  It also makes
  vchans more dynamic by choosing a better format/rate among all the
  concurrent streams, which means that dev.pcm.X.play.vchanformat/rate
  becomes sort of optional.

6 Exclusive Stream, with special open() mode O_EXCL.  This will "mute"
  other concurrent vchan streams and only allow a single channel with
  O_EXCL set to keep producing sound.

Other Changes:
    * most feeder_* stuffs are compilable in userland. Let's not
      speculate whether we should go all out for it (save that for
      FreeBSD 16.0-RELEASE).
    * kobj signature fixups, thanks to Andriy Gapon <avg@freebsd.org>
    * pull out channel mixing logic out of vchan.c and create its own
      feeder_mixer for world justice.
    * various refactoring here and there, for good or bad.
    * activation of few more OSSv4 ioctls() (see [1] above).
    * opt_snd.h for possible compile time configuration:
      (mostly for debugging purposes, don't try these at home)
        SND_DEBUG
        SND_DIAGNOSTIC
        SND_FEEDER_MULTIFORMAT
        SND_FEEDER_FULL_MULTIFORMAT
        SND_FEEDER_RATE_HP
        SND_PCM_64
        SND_OLDSTEREO

Manual page updates are on the way.

Tested by: joel, Olivier SMEDTS <olivier at gid0 d org>, too many
           unsung / unnamed heroes.

15 years agoEliminate an unused variable from allocbuf().
alc [Sun, 7 Jun 2009 18:19:04 +0000 (18:19 +0000)]
Eliminate an unused variable from allocbuf().

Eliminate the unnecessary setting of page valid bits from a non-VMIO buffer
in vm_hold_load_pages().

15 years agoMention the range for the exit status for the exit special builtin.
jilles [Sun, 7 Jun 2009 15:04:43 +0000 (15:04 +0000)]
Mention the range for the exit status for the exit special builtin.

The exit status may exceed 255 in some cases (return); even though it seems
unwise to rely on this, it is also unwise to assume that $? is always
between 0 and 255.

This resolves bin/124748 by documenting that 'exit -1' is not valid.

PR: bin/124748
Approved by: ed (mentor)

15 years agoWelcome to a default installed /etc/ntp.conf
edwin [Sun, 7 Jun 2009 13:26:57 +0000 (13:26 +0000)]
Welcome to a default installed /etc/ntp.conf

This NTP configuration file points to the [012].pool.ntp.org servers,
which will return a list of geographical local NTP servers.
It uses the best-practice options of "iburst" and "maxpoll 9".
It gives examples on how to use the "restrict" commands, which are
unfortunately not working when you use the pool.ntp.org servers.
It sets up a fudge server so any clients syncing against this server
will always be synced even if we lose the master.

The idea of this file was briefly discussed on -net.

PR: conf/58595
Submitted by: Chris Stenton <jacs@gnome.co.uk>
MFC after: 1 week

15 years agoMake "human-readable" (-H/-h) output also "humanize" inode counts.
simon [Sun, 7 Jun 2009 09:06:21 +0000 (09:06 +0000)]
Make "human-readable" (-H/-h) output also "humanize" inode counts.
Base 10 is always used for the inode counts as I could not think of any
reason base 2 inode counts would be useful.

Minor mdoc markup fix to df(1) while here anyway.

MFC after: 3 weeks

15 years ago- Outindent long printf lines instead of splitting them in the
stas [Sun, 7 Jun 2009 08:42:26 +0000 (08:42 +0000)]
- Outindent long printf lines instead of splitting them in the
  middle of senetences. This also makes the code more consistent
  with the corresponding FFS code.
- Use 2-space sentences breaks consistently.

Suggested by: bde

15 years agoI don't know why fstab doesn't document that the fifth field specifies
imp [Sun, 7 Jun 2009 07:45:25 +0000 (07:45 +0000)]
I don't know why fstab doesn't document that the fifth field specifies
the number of days between backups.  All it says is frequency, with no
units given.  It likely should say "the interval in days between backups"
instead, but not today.

15 years agoFix compilation when compiled w/out WITNESS.
adrian [Sun, 7 Jun 2009 05:52:22 +0000 (05:52 +0000)]
Fix compilation when compiled w/out WITNESS.

Submitted by: Edwin Shao <poleris@gmail.com>

15 years agoRemove cruft at 0E11-0002. Informed upstream.
edwin [Sun, 7 Jun 2009 04:45:50 +0000 (04:45 +0000)]
Remove cruft at 0E11-0002. Informed upstream.

Submitted by: Pawel Worach <pawel.worach@gmail.com>
MFC after: 6 days.

15 years agoFix a lockorder reversal I introduced in r193436 when I moved the
rmacklem [Sun, 7 Jun 2009 01:06:56 +0000 (01:06 +0000)]
Fix a lockorder reversal I introduced in r193436 when I moved the
mtx_destroy() of the pool mutex to after SVC_RELEASE(), because
the pool mutex was still locked when soclose() was called by svc_dg_destroy().
To fix this, an mtx_unlock() was added where mtx_destroy() was before
r193436.

Reviewed by: jhb
Tested by: pho
Approved by: rwatson (mentor)

15 years agoEliminate an unneeded forward declaration. (This should have been removed
alc [Sat, 6 Jun 2009 21:23:29 +0000 (21:23 +0000)]
Eliminate an unneeded forward declaration.  (This should have been removed
in revision 1.42.)

15 years agoIf vm_pager_get_pages() returns VM_PAGER_OK, then there is no need to check
alc [Sat, 6 Jun 2009 20:13:14 +0000 (20:13 +0000)]
If vm_pager_get_pages() returns VM_PAGER_OK, then there is no need to check
the page's valid bits.  The page is guaranteed to be fully valid.  (For the
record, this is documented in vm/vm_pager.h's comments.)

15 years agoCheck that flopen() can lock against self and that children inherit the lock.
des [Sat, 6 Jun 2009 19:07:15 +0000 (19:07 +0000)]
Check that flopen() can lock against self and that children inherit the lock.

15 years agoRevert (once again, and hopefully for the last time) to flock(2) locks.
des [Sat, 6 Jun 2009 18:47:03 +0000 (18:47 +0000)]
Revert (once again, and hopefully for the last time) to flock(2) locks.
The problem with fcntl(2) locks is that they are not inherited by child
processes.  This breaks pidfile(3), where the common idiom is to open
and lock the PID file before daemonizing.

15 years agoAdd missing .Pp
des [Sat, 6 Jun 2009 17:34:49 +0000 (17:34 +0000)]
Add missing .Pp

15 years agoRemove opt_mac.h generation for various kernel modules that no longer
rwatson [Sat, 6 Jun 2009 17:01:44 +0000 (17:01 +0000)]
Remove opt_mac.h generation for various kernel modules that no longer
require it.

Submitted by: pjd

15 years agoRegen:
edwin [Sat, 6 Jun 2009 13:37:53 +0000 (13:37 +0000)]
Regen:

* Hart: rev 671 of pcidevs.txt; 22-01-2008 (D-M-Y).
* Boemler: vendors.txt (2008-06-06)

Initiated by conf/121219 by Yousif Hassan <yousif@alumni.jmu.edu>

MFC after: 1 week

15 years agopciconf(8) removes characters after an #, therefor remove them.
edwin [Sat, 6 Jun 2009 13:33:11 +0000 (13:33 +0000)]
pciconf(8) removes characters after an #, therefor remove them.
Also remove \s used to escape 's.

15 years agoWhen trying to see if we could update the share/misc/pci_vendors,
edwin [Sat, 6 Jun 2009 12:53:54 +0000 (12:53 +0000)]
When trying to see if we could update the share/misc/pci_vendors,
I found out that the input format of the Boemler list was different
than what the code expected: The last two fields were interpreted
as one. Checking the csv version of the list it showed that there
was sometimes a chipset number in the column before the card
description.

This is a rewrite to use the CSV format of the Boemler list. The
output is differently formatted: Instead of the "chip description",
it is now "description (chip)"

15 years agoAdd an interim userland utility for managing vimages / virtualized
zec [Sat, 6 Jun 2009 12:50:10 +0000 (12:50 +0000)]
Add an interim userland utility for managing vimages / virtualized
network stack infrastructure.

Requested by: julian (mentor)
Approved by: julian (mentor)

15 years agoUnbreak options VIMAGE build.
zec [Sat, 6 Jun 2009 12:43:13 +0000 (12:43 +0000)]
Unbreak options VIMAGE build.

Submitted by: julian (mentor)
Approved by: julian (mentor)

15 years agoInitial version of the sec(4) driver for the integrated security engine found
raj [Sat, 6 Jun 2009 09:37:55 +0000 (09:37 +0000)]
Initial version of the sec(4) driver for the integrated security engine found
in Freescale system-on-chip devices.

The following algorithms and schemes are currently supported:
  - 3DES, AES, DES
  - MD5, SHA1, SHA256, SHA384, SHA512

Reviewed by: philip
Obtained from: Freescale, Semihalf

15 years agoProvide 64-bit big endian bus space operations for PowerPC. They are required
raj [Sat, 6 Jun 2009 09:33:32 +0000 (09:33 +0000)]
Provide 64-bit big endian bus space operations for PowerPC. They are required
for the upcoming sec(4) driver.

Submitted by: Piotr Ziecik
Obtained from: Semihalf

15 years agoUse #ifdef APPLE_MAC instead of #ifdef MAC to conditionalize Apple-specific
rwatson [Sat, 6 Jun 2009 07:13:57 +0000 (07:13 +0000)]
Use #ifdef APPLE_MAC instead of #ifdef MAC to conditionalize Apple-specific
behavior for unicode support in UDF so as not to conflict with the MAC
Framework.

Note that Apple's XNU kernel also uses #ifdef MAC for the MAC Framework.

Suggested by: pjd
MFC after: 3 days

15 years agoEliminate trailing_slash, which was made redundant in r193028.
des [Sat, 6 Jun 2009 00:49:49 +0000 (00:49 +0000)]
Eliminate trailing_slash, which was made redundant in r193028.
Remove a couple of 4-year-old "temporary" KASSERTs.
Improve comments.

MFC after: 1 week

15 years agoDrop Giant.
des [Sat, 6 Jun 2009 00:44:13 +0000 (00:44 +0000)]
Drop Giant.

MFC after: 1 week

15 years agoo add bits for STBC and Greenfield
sam [Sat, 6 Jun 2009 00:32:15 +0000 (00:32 +0000)]
o add bits for STBC and Greenfield
o fix some comments

15 years agoOnly four out of nine arguments for ip_ipsec_output() are actually used.
pjd [Fri, 5 Jun 2009 23:53:17 +0000 (23:53 +0000)]
Only four out of nine arguments for ip_ipsec_output() are actually used.
Kill unused arguments except for 'ifp' as it might be used in the future
for detecting IPsec-capable interfaces.

15 years agoreserve node flag bits for a-msdu tx/rx
sam [Fri, 5 Jun 2009 23:37:57 +0000 (23:37 +0000)]
reserve node flag bits for a-msdu tx/rx

15 years agoreserve ioc's for Greenfield and STBC
sam [Fri, 5 Jun 2009 23:36:48 +0000 (23:36 +0000)]
reserve ioc's for Greenfield and STBC

15 years agoSimplify.
pjd [Fri, 5 Jun 2009 23:35:43 +0000 (23:35 +0000)]
Simplify.

15 years agocorrect status code returned for ht capability mismatch on assoc/reassoc
sam [Fri, 5 Jun 2009 23:21:29 +0000 (23:21 +0000)]
correct status code returned for ht capability mismatch on assoc/reassoc

15 years agoo correct/add action frame categories
sam [Fri, 5 Jun 2009 23:20:41 +0000 (23:20 +0000)]
o correct/add action frame categories
o add IEEE80211_STATUS_MISSING_HT_CAPS, added in 11n D3.0 spec

15 years agoadd tid param to ieee80211_notify_replay_failure to get the correct rsc
sam [Fri, 5 Jun 2009 23:10:30 +0000 (23:10 +0000)]
add tid param to ieee80211_notify_replay_failure to get the correct rsc

15 years agoPut intrcnt, eintrcnt, intrnames and eintrnames into the .data section.
kib [Fri, 5 Jun 2009 20:23:29 +0000 (20:23 +0000)]
Put intrcnt, eintrcnt, intrnames and eintrnames into the .data section.

Noted by: "Tseng, Kuo-Lang" <kuo-lang.tseng intel com>, bde
MFC after: 3 days

15 years agomove kernel ipfw-related sources to a separate directory,
luigi [Fri, 5 Jun 2009 19:22:47 +0000 (19:22 +0000)]
move kernel ipfw-related sources to a separate directory,
adjust conf/files and modules' Makefiles accordingly.

No code or ABI changes so this and most of previous related
changes can be easily MFC'ed

MFC after: 5 days

15 years agoImport ACPICA 20090521.
jkim [Fri, 5 Jun 2009 18:50:45 +0000 (18:50 +0000)]
Import ACPICA 20090521.

15 years agoImport ACPICA 20090521.
jkim [Fri, 5 Jun 2009 18:44:36 +0000 (18:44 +0000)]
Import ACPICA 20090521.

15 years agoImport ACPICA 20090521.
jkim [Fri, 5 Jun 2009 18:43:13 +0000 (18:43 +0000)]
Import ACPICA 20090521.

15 years agolack of power save violates 802.11 and is a bug, not a "caveat"
sam [Fri, 5 Jun 2009 17:44:43 +0000 (17:44 +0000)]
lack of power save violates 802.11 and is a bug, not a "caveat"

15 years agonote lack of power save support in ap mode
sam [Fri, 5 Jun 2009 17:26:15 +0000 (17:26 +0000)]
note lack of power save support in ap mode

Submitted by: "Paul B. Mahol" <onemda@gmail.com>

15 years agoDo not force the mtu to 2290; this was done to insure large EAPOL frames
sam [Fri, 5 Jun 2009 17:19:55 +0000 (17:19 +0000)]
Do not force the mtu to 2290; this was done to insure large EAPOL frames
could be handled w/o fragmentation but clobbers user-specified values
such as those required when the interface is bridged.

Submitted by: jim@netgate.com
Reviewed by: Jouni Malinen
MFC after: 3 days

15 years agovm_thread_swapin() needn't validate any pages. The pages are already
alc [Fri, 5 Jun 2009 17:06:20 +0000 (17:06 +0000)]
vm_thread_swapin() needn't validate any pages.  The pages are already
validated by vm_pager_get_pages().

15 years agoSimplify contigfree().
alc [Fri, 5 Jun 2009 16:55:10 +0000 (16:55 +0000)]
Simplify contigfree().

15 years agoUnlock the cache lock before returning when we run out of buffer space
marcus [Fri, 5 Jun 2009 16:44:42 +0000 (16:44 +0000)]
Unlock the cache lock before returning when we run out of buffer space
trying to fill in the full path name.

Reported by: David Naylor <naylor.b.david@gmail.com>
Approved by: kib

15 years agoSeveral ipfw options and actions use a 16-bit argument to indicate
luigi [Fri, 5 Jun 2009 16:16:07 +0000 (16:16 +0000)]
Several ipfw options and actions use a 16-bit argument to indicate
pipes, queues, tags, rule numbers and so on.
These are all different namespaces, and the only thing they have in
common is the fact they use a 16-bit slot to represent the argument.

There is some confusion in the code, mostly for historical reasons,
on how the values 0 and 65535 should be used. At the moment, 0 is
forbidden almost everywhere, while 65535 is used to represent a
'tablearg' argument, i.e. the result of the most recent table() lookup.

For now, try to use explicit constants for the min and max allowed
values, and do not overload the default rule number for that.

Also, make the MTAG_IPFW declaration only visible to the kernel.

NOTE: I think the issue needs to be revisited before 8.0 is out:
the 2^16 namespace limit for rule numbers and pipe/queue is
annoying, and we can easily bump the limit to 2^32 which gives
a lot more flexibility in partitioning the namespace.

MFC after: 5 days

15 years agoRemove clists from the kernel.
ed [Fri, 5 Jun 2009 15:31:38 +0000 (15:31 +0000)]
Remove clists from the kernel.

Clists were originally used by the TTY layer as a text buffer interface.
The advantage of clists were that it would allocate a small set of
additional buffers that could be shared between TTYs when needed. In
the modern days we can just allocate some more KBs of memory to keep the
TTYs satisfied. The global cfreelist also requires synchronisation,
which may not be useful when trying to improve scalability.

The MPSAFE TTY layer uses its own text buffers (ttyinq and ttyoutq). We
had a small amount of drivers in the tree that still uses clists, like
the old USB stack and some keyboard drivers. With the old USB stack gone
and the keyboard drivers changed to use a circular buffer, we can safely
remove clists from the kernel.

15 years agoMove buffer management into kbd and kbdmux drivers.
ed [Fri, 5 Jun 2009 15:19:05 +0000 (15:19 +0000)]
Move buffer management into kbd and kbdmux drivers.

These two drivers seem to be the last consumers of clists. clists are
quite overengineered for simple circular buffers, so I'm adding similar
buffer management routines to the kbd and kbdmux drivers. The input
buffer is now part of the softc structures, instead of having
dynamically allocated cblocks.

15 years agoMove "options MAC" from opt_mac.h to opt_global.h, as it's now in GENERIC
rwatson [Fri, 5 Jun 2009 14:55:22 +0000 (14:55 +0000)]
Move "options MAC" from opt_mac.h to opt_global.h, as it's now in GENERIC
and used in a large number of files, but also because an increasing number
of incorrect uses of MAC calls were sneaking in due to copy-and-paste of
MAC-aware code without the associated opt_mac.h include.

Discussed with: pjd

15 years agoUnifdef MAC label pointer in syncache entries -- in general, ifdef'd
rwatson [Fri, 5 Jun 2009 14:31:03 +0000 (14:31 +0000)]
Unifdef MAC label pointer in syncache entries -- in general, ifdef'd
structure contents are a bad idea in the kernel for binary
compatibility reasons, and this is a single pointer that is now included
in compiles by default anyway due to options MAC being in GENERIC.

15 years agoCorrect MAC compile problems resulting from the new RPC code copying and
rwatson [Fri, 5 Jun 2009 14:29:49 +0000 (14:29 +0000)]
Correct MAC compile problems resulting from the new RPC code copying and
pasting code from the general socket code without also bringing along
required opt_mac.h includes.

15 years agoAdd mac_framework.h include missed when MAC code was (presumably) copied
rwatson [Fri, 5 Jun 2009 14:23:24 +0000 (14:23 +0000)]
Add mac_framework.h include missed when MAC code was (presumably) copied
from another file.

15 years agoDon't check MAC in the NFS server ACL set path, right now we aren't
rwatson [Fri, 5 Jun 2009 14:15:00 +0000 (14:15 +0000)]
Don't check MAC in the NFS server ACL set path, right now we aren't
enforcing MAC for NFS clients.

15 years agoTrim old remnants of per-CPU KTR buffers.
jhb [Fri, 5 Jun 2009 14:07:00 +0000 (14:07 +0000)]
Trim old remnants of per-CPU KTR buffers.

Submitted by:  Eygene Ryabinkin

15 years agoFix spelling of MAC check for 8.x version of MAC Framework, not noticed due
rwatson [Fri, 5 Jun 2009 13:55:33 +0000 (13:55 +0000)]
Fix spelling of MAC check for 8.x version of MAC Framework, not noticed due
to a lack of an opt_mac.h include, which I won't add for now as options MAC
will soon move to opt_global.h.

Spotted by: pjd

15 years agoMore cleanup in preparation of ipfw relocation (no actual code change):
luigi [Fri, 5 Jun 2009 13:44:30 +0000 (13:44 +0000)]
More cleanup in preparation of ipfw relocation (no actual code change):

+ move ipfw and dummynet hooks declarations to raw_ip.c (definitions
  in ip_var.h) same as for most other global variables.
  This removes some dependencies from ip_input.c;

+ remove the IPFW_LOADED macro, just test ip_fw_chk_ptr directly;

+ remove the DUMMYNET_LOADED macro, just test ip_dn_io_ptr directly;

+ move ip_dn_ruledel_ptr to ip_fw2.c which is the only file using it;

To be merged together with rev 193497

MFC after: 5 days

15 years agoremove a printf that was only useful for debugging.
luigi [Fri, 5 Jun 2009 13:11:34 +0000 (13:11 +0000)]
remove a printf that was only useful for debugging.

MFC after: 3 days

15 years ago[patch] Portuguese timedef
edwin [Fri, 5 Jun 2009 13:05:14 +0000 (13:05 +0000)]
[patch] Portuguese timedef

In Portuguese, the names of the days of the week are not capitalized.
Also there is always a dash before "feira" in the names of the days.
For example: "segunda-feira" and not "segunda feira" (which has a
completely different meaning).

x_fmt is not correct either. The date separator should not be a dot
but a slash. Example: 31/12/2005 if far more used in Portugal than
31.12.2005.

References:
- a Portuguese online dictionary http://priberam.pt/dlpo/dlpo.aspx
- http://answers.com/days_of_the_week (there are translations to
  various languages, including Portuguese, at the bottom of the
  page)
- http://en.wikipedia.org/wiki/Week-day_names (there are translations
  to various languages, including Portuguese, at the bottom of the
  page)
- a Portuguese style guide
  http://www.publico.clix.pt/nos/livro_estilo/16d-palavras.html
  ("datas" section)

PR: conf/58595
Submitted by: Chris Stenton <jacs@gnome.co.uk>
MFC after: 1 week

15 years agoSmall changes (no actual code changes) in preparation of moving ipfw-related
luigi [Fri, 5 Jun 2009 12:49:54 +0000 (12:49 +0000)]
Small changes (no actual code changes) in preparation of moving ipfw-related
stuff to its own directory, and cleaning headers and dependencies:

In this commit:
+ remove one use of a typedef;
+ document dn_rule_delete();
+ replace one usage of the DUMMYNET_LOADED macro with its value;

No MFC planned until the cleanup is complete.

15 years agoDiscover and handle the number of E500 CPUs in run time.
raj [Fri, 5 Jun 2009 09:46:00 +0000 (09:46 +0000)]
Discover and handle the number of E500 CPUs in run time.

15 years agoIf we're passed garbage in malloc_init(), panic() rather than expecting
brian [Fri, 5 Jun 2009 09:16:52 +0000 (09:16 +0000)]
If we're passed garbage in malloc_init(), panic() rather than expecting
a KASSERT to handle it.  People are likely to turn off INVARIANTS RSN
and loading an old module can cause garbage-in here.

I saw the issue with an older nvidia driver (x11/nvidia-driver) loading
into a new kernel - a crash wasn't seen 'till sysctl_kern_malloc_stats().
I was lucky that mtp->ks_shortdesc was NULL and not something horrible.

While I'm here, KASSERT that malloc_uninit() isn't passed something that's
not in kmemstatistics.

MFC after: 3 weeks

15 years agoFill PTEs covering kernel code and data.
raj [Fri, 5 Jun 2009 09:09:46 +0000 (09:09 +0000)]
Fill PTEs covering kernel code and data.

Without this fix pte_vatopa() was not able to retrieve physical address of
data structures inside kernel, for example EFAULT was reported while acessing
/dev/kmem ('netstat -nr').

Submitted by: Piotr Ziecik
Obtained from: Semihalf

15 years agoChange the behaviour of -F slightly; it now persists (forever) in
brian [Fri, 5 Jun 2009 09:08:53 +0000 (09:08 +0000)]
Change the behaviour of -F slightly; it now persists (forever) in
trying to open files rather than giving up when it encounters an
error.  ENOENT errors are not reported.

As a result, files that are moved away then recreated are not at
risk of being 'lost' to tail.  Files that are recreated and
temporarily have unreadable permissions will be shown when they
are fixed.

This behaviour is consistent with the GNU version of tail but
without the verbiage that goes with the GNU version.

This change also fixes error messages accompanying -f and -F.
They no longer report problems with (null)!

MFC after: 3 weeks

15 years agoMisc fixed to fortunes
edwin [Fri, 5 Jun 2009 07:57:10 +0000 (07:57 +0000)]
Misc fixed to fortunes

PR: conf/112024
Submitted by: Niclas Zeising <niclas.zeising@gmail.com>
MFC after: 2 days

15 years agoBump document date.
benno [Fri, 5 Jun 2009 03:06:24 +0000 (03:06 +0000)]
Bump document date.

Pointed out by: trhodes

15 years agoPerform some checking on the requested list of modules to warn people if they
benno [Thu, 4 Jun 2009 23:43:08 +0000 (23:43 +0000)]
Perform some checking on the requested list of modules to warn people if they
try to load modules by filename out of the current directory where the module
in question may be further up the module path or not in the module path at all.

Also add some text to the man page to help explain what's going on.

Sponsored by: Redacted Consulting

15 years agostyle(9) pass prior to further changes.
benno [Thu, 4 Jun 2009 23:31:05 +0000 (23:31 +0000)]
style(9) pass prior to further changes.

Sponsored by: Redacted Consulting

15 years ago[patch] fortune(6): George Bernard Shaw quote fix
edwin [Thu, 4 Jun 2009 22:01:50 +0000 (22:01 +0000)]
[patch] fortune(6): George Bernard Shaw quote fix

From the original PR:

    s/milestones/millstones/
    and less important..
    s/man/Man/
    Not every source I've seen capitalizes 'Man', but it seems
    right. Uncapitalized 'man' would usually be preceded by
    an 'a'. But I haven't seen any reference cite the orignal
    source yet, so I can't say for sure.

http://quotationsbook.com/quote/31568/

PR: conf/131469
Submitted by: John Hein <jhein@timing.com>
MFC after: 2 days

15 years agoRemove duplicate variable setting.
thompsa [Thu, 4 Jun 2009 22:00:48 +0000 (22:00 +0000)]
Remove duplicate variable setting.

Spotted by: Sylvestre Gallon

15 years agorevert r162516. We only support 1 or 2 channels per stream
thompsa [Thu, 4 Jun 2009 21:59:28 +0000 (21:59 +0000)]
revert r162516. We only support 1 or 2 channels per stream
which reflects mono and stereo.

Submitted by: Hans Petter Selasky

15 years ago[patch] fortune(6): file not Y2.01K compliant
edwin [Thu, 4 Jun 2009 21:55:07 +0000 (21:55 +0000)]
[patch] fortune(6): file not Y2.01K compliant

Update the time in the fortune to make the joke a little bit more
realistic again: Bump year from 2009 to 2039.

PR: conf/129860
Submitted by: Alan Amesbury <amesbury@umn.edu>
MFC after: 2 days

15 years ago[patch] calendar.music: Chuck Berry was born in St. Louis, Missouri, not California
edwin [Thu, 4 Jun 2009 21:48:04 +0000 (21:48 +0000)]
[patch] calendar.music: Chuck Berry was born in St. Louis, Missouri, not California

    The /usr/bin/calendar program reports that Chuck Berry was born
    in San Jose California but he was not born in California.

    Chuck Berry was born in St. Louis, Missouri in 1926 on October 18.

    http://www.chuckberry.com/about/bio.htm
    http://www.khaldea.com/charts/chuckberry.shtml
    http://en.wikipedia.org/wiki/Chuck_Berry

PR: conf/128215
Submitted by: comet--berkeley (aka Pablo Picasso) <comet@transbay.net>
MFC after: 2 days

15 years agoResync with head.
jkim [Thu, 4 Jun 2009 21:31:03 +0000 (21:31 +0000)]
Resync with head.

15 years agoPrefer predefined DSDT signature from header file.
jkim [Thu, 4 Jun 2009 21:01:04 +0000 (21:01 +0000)]
Prefer predefined DSDT signature from header file.

15 years agoFix ACPI table override. Since ACPI CA 20090123, any ACPI table can be
jkim [Thu, 4 Jun 2009 20:53:26 +0000 (20:53 +0000)]
Fix ACPI table override.  Since ACPI CA 20090123, any ACPI table can be
overriden, not just DSDT.  However, we do not support this feature yet.

15 years agoDo not install SSDT when DSDT is overriden by user.
jkim [Thu, 4 Jun 2009 20:48:31 +0000 (20:48 +0000)]
Do not install SSDT when DSDT is overriden by user.

15 years agotrack rename of CSA ie
sam [Thu, 4 Jun 2009 18:22:21 +0000 (18:22 +0000)]
track rename of CSA ie

Submitted by: wxs

15 years agoWhen checking for shared writes, use the struct mount returned from
ps [Thu, 4 Jun 2009 16:50:03 +0000 (16:50 +0000)]
When checking for shared writes, use the struct mount returned from
vn_start_write.

Reviewed by: jhb

15 years agoSupport shared vnode locks for write operations when the offset is
ps [Thu, 4 Jun 2009 16:18:07 +0000 (16:18 +0000)]
Support shared vnode locks for write operations when the offset is
provided on filesystems that support it.  This really improves mysql
+ innodb performance on ZFS.

Reviewed by: jhb, kmacy, jeffr

15 years agoo station mode channel switch support
sam [Thu, 4 Jun 2009 15:57:38 +0000 (15:57 +0000)]
o station mode channel switch support
o IEEE80211_IOC_CHANSWITCH fixups:
  - restrict to hostap vaps
  - return EOPNOTSUPP instead of EINVAL when applied to !hostap vap
    or to a vap w/o 11h enabled
  - interpret count of 0 to mean cancel the current CSA

Reviewed by: rpaulo, avatar

15 years agoFix upcall races in the client side krpc. For the client side upcall,
rmacklem [Thu, 4 Jun 2009 14:49:27 +0000 (14:49 +0000)]
Fix upcall races in the client side krpc. For the client side upcall,
holding SOCKBUF_LOCK() isn't sufficient to guarantee that there is
no upcall in progress, since SOCKBUF_LOCK() is released/re-acquired
in the upcall. An upcall reference counter was added to the upcall
structure that is incremented at the beginning of the upcall and
decremented at the end of the upcall. As such, a reference count == 0
when holding the SOCKBUF_LOCK() guarantees there is no upcall in
progress. Add a function that is called just after soupcall_clear(),
which waits until the reference count == 0.
Also, move the mtx_destroy() down to after soupcall_clear(), so that
the mutex is not destroyed before upcalls are done.

Reviewed by: dfr, jhb
Tested by: pho
Approved by: kib (mentor)

15 years agoFix two races in the server side krpc w.r.t upcalls:
rmacklem [Thu, 4 Jun 2009 14:13:06 +0000 (14:13 +0000)]
Fix two races in the server side krpc w.r.t upcalls:
  Add a flag so that soupcall_clear() is only called once to cancel
  an upcall.
  Move the test for xprt_registered in the upcall down to after the
  mtx_lock() of the pool mutex, to catch the case where it is
  unregistered while the upcall is waiting for the mutex.
Also, move the mtx_destroy() of the pool mutex to after SVC_RELEASE(),
so that it isn't destroyed before the upcalls are disabled.

Reviewed by: dfr, jhb
Tested by: pho
Approved by: kib (mentor)

15 years agofix a bug introduced in rev.190865 related to the signedness
luigi [Thu, 4 Jun 2009 12:27:57 +0000 (12:27 +0000)]
fix a bug introduced in rev.190865 related to the signedness
of the credit of a pipe. On passing, also use explicit
signed/unsigned types for two other fields.
Noticed by Oleg Bulyzhin and Maxim Ignatenko long ago,
i forgot to commit the fix.

Does not affect RELENG_7.

15 years agoCorrect typo; errno => error.
ed [Thu, 4 Jun 2009 11:22:53 +0000 (11:22 +0000)]
Correct typo; errno => error.

15 years agoRe-add opt_mac.h include, which is required in order for MNT_MULTILABEL
rwatson [Thu, 4 Jun 2009 10:30:18 +0000 (10:30 +0000)]
Re-add opt_mac.h include, which is required in order for MNT_MULTILABEL
to be set properly on devfs.  Otherwise, it isn't possible to set labels
on /dev nodes.

Reported by: Sergio Rodriguez <sergiorr at yahoo.com>
MFC after: 3 days

15 years agoDon't panic in nlm_record_lock if we get ENOENT from lf_advlockasync. This
dfr [Thu, 4 Jun 2009 08:13:51 +0000 (08:13 +0000)]
Don't panic in nlm_record_lock if we get ENOENT from lf_advlockasync. This
is likely to be because the file was just removed and in our context this is
harmless.

15 years agoadd two prerequisites; if_zydreg.h and if_zydfw for dependency check.
weongyo [Thu, 4 Jun 2009 03:59:20 +0000 (03:59 +0000)]
add two prerequisites; if_zydreg.h and if_zydfw for dependency check.

15 years agoreimplements RF logic for GCT chipset (as known as UW2453) to support
weongyo [Thu, 4 Jun 2009 02:49:50 +0000 (02:49 +0000)]
reimplements RF logic for GCT chipset (as known as UW2453) to support
ICIDU NI-707503 which is donated by Nick Hibma (great thanks!).  Though
it has a MAXIM RF (0x8) there's some success reports with using GCT RF
(0x9) codes and it worked well for ICIDU NI-707503 too.  So codes for
MAXIM and GCT RFs are integrated.

Before this commit, if I rememeber correctly, MAXIM RF is never tested
that it seems it's a first report working with FreeBSD.

15 years agocleanups the device match list.
weongyo [Thu, 4 Jun 2009 01:55:13 +0000 (01:55 +0000)]
cleanups the device match list.

15 years agoWhen a channel switch is done to a channel with different operating
sam [Wed, 3 Jun 2009 23:33:09 +0000 (23:33 +0000)]
When a channel switch is done to a channel with different operating
characteristics force the stations to re-associate so protocol state
is re-initialized.  Note that for 11h/DFS this is irrelevant as channel
changes are never cross-band.

Reviewed by: ctlaw

15 years agoAfter a channel switch mark associated stations so they will immediately
sam [Wed, 3 Jun 2009 23:30:25 +0000 (23:30 +0000)]
After a channel switch mark associated stations so they will immediately
be probed as inactive; this more quickly weeds out stations that don't
follow to the new channel.

15 years agoResync with head.
jkim [Wed, 3 Jun 2009 22:54:27 +0000 (22:54 +0000)]
Resync with head.

15 years agoRe-format the nfsv4.4 man page so that all sentences start on a
rmacklem [Wed, 3 Jun 2009 21:50:26 +0000 (21:50 +0000)]
Re-format the nfsv4.4 man page so that all sentences start on a
new line.

Approved by: kib (mentor)

15 years agoTrim unnecessary files from the import.
jkim [Wed, 3 Jun 2009 21:47:13 +0000 (21:47 +0000)]
Trim unnecessary files from the import.