]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoFix handling of create operation together with setting other parameters:
Sam Leffler [Mon, 31 Mar 2008 15:38:07 +0000 (15:38 +0000)]
Fix handling of create operation together with setting other parameters:
o mark cmds/parameters to indicate they are potential arguments to a clone
  operation (e.g. vlantag)
o when handling a create/clone operation do the callback on seeing the first
  non-clone cmd line argument so the new device is created and can be used;
  and re-setup operating state to reflect the newly created device

Reviewed by: Eugene Grosbein
MFC after: 2 weeks

16 years agoFix punctiation.
Sergey Skvortsov [Mon, 31 Mar 2008 14:11:37 +0000 (14:11 +0000)]
Fix punctiation.

Approved by: ru

16 years agoAccept empty -T arguments.
Poul-Henning Kamp [Mon, 31 Mar 2008 13:56:15 +0000 (13:56 +0000)]
Accept empty -T arguments.

Proposed by: clemens fischer <ino-qc@spotteswoode.de.eu.org>

16 years agoDouble up the necessary size of /usr/obj to 800MB
Pav Lucistnik [Mon, 31 Mar 2008 13:32:55 +0000 (13:32 +0000)]
Double up the necessary size of /usr/obj to 800MB

PR: misc/99735
Reported by: Philip M. Gollucci <pgollucci@p6m7g8.com>,
Maxim Konovalov <maxim@macomnet.ru>

16 years agoRemove a (bogus) remnant of debugging this on sparc64.
David Schultz [Mon, 31 Mar 2008 13:11:45 +0000 (13:11 +0000)]
Remove a (bogus) remnant of debugging this on sparc64.

16 years agoRetire pkg_sign. It was used to embed signatures in gzip'ed packages.
Florent Thoumie [Mon, 31 Mar 2008 12:45:17 +0000 (12:45 +0000)]
Retire pkg_sign. It was used to embed signatures in gzip'ed packages.
It's not relevant since we've changed to bzip2 compression.

MFC after: 1 week

16 years agoAdd the libc glue and headers definitions for the *at() syscalls.
Konstantin Belousov [Mon, 31 Mar 2008 12:14:04 +0000 (12:14 +0000)]
Add the libc glue and headers definitions for the *at() syscalls.

Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoRegen
Konstantin Belousov [Mon, 31 Mar 2008 12:12:27 +0000 (12:12 +0000)]
Regen

16 years agoAdd the freebsd32 compatibility shims for the *at() syscalls.
Konstantin Belousov [Mon, 31 Mar 2008 12:08:30 +0000 (12:08 +0000)]
Add the freebsd32 compatibility shims for the *at() syscalls.

Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoAdd the openat(), fexecve() and other *at() syscalls to the table.
Konstantin Belousov [Mon, 31 Mar 2008 12:06:55 +0000 (12:06 +0000)]
Add the openat(), fexecve() and other *at() syscalls to the table.

Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoImplement the fexecve(2) syscall.
Konstantin Belousov [Mon, 31 Mar 2008 12:05:52 +0000 (12:05 +0000)]
Implement the fexecve(2) syscall.

Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoImplement the
Konstantin Belousov [Mon, 31 Mar 2008 12:04:20 +0000 (12:04 +0000)]
Implement the
openat(2), faccessat(2), fchmodat(2), fchownat(2), fstatat(2),
futimesat(2), linkat(2), mkdirat(2), mkfifoat(2), mknodat(2),
readlinkat(2), renameat(2), symlinkat(2)
syscalls.

Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoAdd the support for the AT_FDCWD and fd-relative name lookups to the
Konstantin Belousov [Mon, 31 Mar 2008 12:01:21 +0000 (12:01 +0000)]
Add the support for the AT_FDCWD and fd-relative name lookups to the
namei(9).

Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoAdd the support for the O_EXEC open(2) mode, as specified by the
Konstantin Belousov [Mon, 31 Mar 2008 11:57:18 +0000 (11:57 +0000)]
Add the support for the O_EXEC open(2) mode, as specified by the
POSIX Extended API Set Part 2 extension specification.

Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoAdd the constant definition needed by the implementation of the
Konstantin Belousov [Mon, 31 Mar 2008 11:55:10 +0000 (11:55 +0000)]
Add the constant definition needed by the implementation of the
openat() and the related syscalls.

Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoAdd the utility function vn_commname() to retrieve the command name
Konstantin Belousov [Mon, 31 Mar 2008 11:53:03 +0000 (11:53 +0000)]
Add the utility function vn_commname() to retrieve the command name
from the vfs namecache, when available.

Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoImprove some quotes of Chinggis Khan.
Ganbold Tsagaankhuu [Mon, 31 Mar 2008 10:28:09 +0000 (10:28 +0000)]
Improve some quotes of Chinggis Khan.
Remove militant and moralized quotes of Chinggis Khan.
Add one more quote of Chinggis Khan.

Reviewed by: yar
Approved by: keramida(mentor)

16 years ago - Since rev 1.142 of ffs_snapshot.c the interlock has not been required
Jeff Roberson [Mon, 31 Mar 2008 07:55:45 +0000 (07:55 +0000)]
 - Since rev 1.142 of ffs_snapshot.c the interlock has not been required
   to protect the v_lock pointer.  Removing the interlock acquisition
   here allows vn_lock() to proceed without requiring the interlock
   at all.
 - If the lock mutated while we were sleeping on it the interlock has
   been dropped.  It is conceivable that the upper layer code was
   relying on the interlock and LK_NOWAIT to protect the identity or
   state of the vnode while acquiring the lock.  In this case return
   EBUSY rather than trying the new lock to prevent potential races.

Reviewed by: tegge

16 years ago - Don't free snapdata structures when they are no longer in use.
Jeff Roberson [Mon, 31 Mar 2008 07:47:08 +0000 (07:47 +0000)]
 - Don't free snapdata structures when they are no longer in use.
   Keeping the lockmgr lock valid allows us to switch the v_lock pointer
   in snapshot vnodes between the embedded lockmgr lock and snapdata
   lock without needing the vnode interlock to protect against races
 - Keep unused snapdata structures in a list.
 - Add a function to lock the devvp and allocate a snapdata to it or
   acquire a new one without races.  The old function was safe from
   creation races because we set the mount flag when creating snapshots
   and thus serializing them.  However, it might have been subject to
   destroying races.

Reviewed by: tegge

16 years agoInclude an extra byte for the trailing NUL. <sigh>
Tim Kientzle [Mon, 31 Mar 2008 06:24:39 +0000 (06:24 +0000)]
Include an extra byte for the trailing NUL. <sigh>

Pointy hat: Me

16 years agoMFCs noted: BTX real mode, TCP options processing fix, hptrr 1.2.
Bruce A. Mah [Mon, 31 Mar 2008 05:06:00 +0000 (05:06 +0000)]
MFCs noted:  BTX real mode, TCP options processing fix, hptrr 1.2.

16 years agoNew release notes: kern.features, superpages, em(4)/igb split, malo(4),
Bruce A. Mah [Mon, 31 Mar 2008 04:38:58 +0000 (04:38 +0000)]
New release notes:  kern.features, superpages, em(4)/igb split, malo(4),
mxge firmware 1.4.29 update, bpf(4) zerocopy, kgdb(1) add-kld, procstat(1),
realpath(1) -q (+MFC), top(1) -P, hostapd 0.5.10, WPA supplicant 0.5.10,
GNOME 2.22 (+MFC).

Modified release notes:  Add cpuset(2) manpage reference, make wpi(4)
note reflect reality, tzdata2008b.

MFCs noted:  ddb(4) output capture, ddb(4) scripting.

16 years agoPadding more bytes than necessary one broke another variants of
Pyun YongHyeon [Mon, 31 Mar 2008 04:03:14 +0000 (04:03 +0000)]
Padding more bytes than necessary one broke another variants of
PCIe RealTek chips. Only pad IP packets if the payload is less than
28 bytes.

Obtained from: NetBSD
PR: kern/122221

16 years agoRewrite rwlock to user atomic operations to change rwlock state, this
David Xu [Mon, 31 Mar 2008 02:55:49 +0000 (02:55 +0000)]
Rewrite rwlock to user atomic operations to change rwlock state, this
eliminates internal mutex lock contention when most rwlock operations
are read.

Orignal patch provided by: jeff

16 years agoBetter implement I-cache invalidation. The previous implementation
Marcel Moolenaar [Sun, 30 Mar 2008 23:09:14 +0000 (23:09 +0000)]
Better implement I-cache invalidation. The previous implementation
was a kluge. This implementation matches the behaviour on powerpc
and sparc64.
While on the subject, make sure to invalidate the I-cache after
loading a kernel module.

MFC after: 2 weeks

16 years agoAdd assembly versions of remquol() and remainderl().
David Schultz [Sun, 30 Mar 2008 21:21:53 +0000 (21:21 +0000)]
Add assembly versions of remquol() and remainderl().

16 years agoTest remainderl() and remquol() as well.
David Schultz [Sun, 30 Mar 2008 20:48:33 +0000 (20:48 +0000)]
Test remainderl() and remquol() as well.

16 years agoHook remquol() and remainderl() up to the build.
David Schultz [Sun, 30 Mar 2008 20:48:02 +0000 (20:48 +0000)]
Hook remquol() and remainderl() up to the build.

16 years agoImplement remainderl() as a wrapper around remquol(). The extra work
David Schultz [Sun, 30 Mar 2008 20:47:42 +0000 (20:47 +0000)]
Implement remainderl() as a wrapper around remquol(). The extra work
remquol() performs to compute the quotient is negligible.

16 years agoImplement remquol() based on remquo().
David Schultz [Sun, 30 Mar 2008 20:47:26 +0000 (20:47 +0000)]
Implement remquol() based on remquo().

16 years agoAdd some minimal tests for csqrtl().
David Schultz [Sun, 30 Mar 2008 20:09:51 +0000 (20:09 +0000)]
Add some minimal tests for csqrtl().

16 years agoEliminate an unnecessary printf() from kmem_suballoc(). The subsequent
Alan Cox [Sun, 30 Mar 2008 20:08:59 +0000 (20:08 +0000)]
Eliminate an unnecessary printf() from kmem_suballoc().  The subsequent
panic() can be extended to convey the same information.

16 years agoImplement csqrtl().
David Schultz [Sun, 30 Mar 2008 20:07:15 +0000 (20:07 +0000)]
Implement csqrtl().

16 years agoHook hypotl() and cabsl() up to the build.
David Schultz [Sun, 30 Mar 2008 20:03:46 +0000 (20:03 +0000)]
Hook hypotl() and cabsl() up to the build.

16 years agoDocument hypotl().
David Schultz [Sun, 30 Mar 2008 20:03:29 +0000 (20:03 +0000)]
Document hypotl().

Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>

16 years agoAlias hypotl() and cabsl() for platforms where long double is the same
David Schultz [Sun, 30 Mar 2008 20:03:06 +0000 (20:03 +0000)]
Alias hypotl() and cabsl() for platforms where long double is the same
as double.

16 years agoImplement cabsl() in terms of hypotl().
David Schultz [Sun, 30 Mar 2008 20:02:03 +0000 (20:02 +0000)]
Implement cabsl() in terms of hypotl().

Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>

16 years agoImplement hypotl(). This is bde's conversion of fdlibm hypot(), with minor
David Schultz [Sun, 30 Mar 2008 20:01:50 +0000 (20:01 +0000)]
Implement hypotl(). This is bde's conversion of fdlibm hypot(), with minor
fixes for ld128 by me.

16 years agolockmgrs need to be released before to be destroyed and draining doesn't
Attilio Rao [Sun, 30 Mar 2008 18:16:33 +0000 (18:16 +0000)]
lockmgrs need to be released before to be destroyed and draining doesn't
make an exception.
Add correct stub for it.

Reviewed by: rwatson

16 years agoUse fabs[f]() instead of bit fiddling for setting absolute values.
Bruce Evans [Sun, 30 Mar 2008 18:07:12 +0000 (18:07 +0000)]
Use fabs[f]() instead of bit fiddling for setting absolute values.
This makes little difference in float precision, but in double
precision gives a speedup of about 30% on amd64 (A64 CPU) and i386
(A64).  This depends on fabs[f]() being inline and efficient.  The
bit fiddling (or any use of SET_HIGH_WORD(), which libm does too
much because it was best on old 32-bit machines) always causes
packing overheads and sometimes causes stalls in the packing, since
it operates on only part of a variable in the double precision case.
It apparently did cause stalls in a critical path here.

16 years agoUse the expression fabs(x+0.0)-fabs(y+0.0) instead of
Bruce Evans [Sun, 30 Mar 2008 17:28:27 +0000 (17:28 +0000)]
Use the expression fabs(x+0.0)-fabs(y+0.0) instead of
                   fabs(x+0.0)+fabs(y+0.0) when mixing NaNs.  This improves
consistency of the result by making it harder for the compiler to reorder
the operands.  (FP addition is not necessarily commutative because the
order of operands makes a difference on some machines iff the operands are
both NaNs.)

16 years agoFix a missing mask in a hi+lo decomposition. Thus bug made the extra
Bruce Evans [Sun, 30 Mar 2008 17:17:42 +0000 (17:17 +0000)]
Fix a missing mask in a hi+lo decomposition.  Thus bug made the extra
precision in software useless, so hypotf() had some errors in the 1-2
ulp range unless there is extra precision in hardware (as happens on
i386).

16 years agoImprove style a little and remove one always-true condition.
Roman Divacky [Sun, 30 Mar 2008 16:49:19 +0000 (16:49 +0000)]
Improve style a little and remove one always-true condition.

Approved by: portmgr (pav)
Approved by: kib (mentor)

16 years ago - Consistently return EDEADLK when presented with a new set that is
Jeff Roberson [Sun, 30 Mar 2008 11:31:14 +0000 (11:31 +0000)]
 - Consistently return EDEADLK when presented with a new set that is
   incompatible with existing bindings.
 - Try to copyout the setid in cpuset() before migrating the proc to the
   setid in case the user has supplied a bad buffer.
 - Rename cpuset_root() and cpuset_base() to cpuset_ref{root,base} to
   be more descriptive and free cpuset_root to be used as a different
   type of symbol.
 - Make cpuset_root the cpuset_t set of all cpus in the system.  This
   should contain the same bitmask as all_cpus presently.
 - Add a CPU_CMP() macro to compare two sets.

16 years agoDon't call xdrrec_skiprecord in the non-blocking case. If
Doug Rabson [Sun, 30 Mar 2008 09:36:17 +0000 (09:36 +0000)]
Don't call xdrrec_skiprecord in the non-blocking case. If
__xdrrec_getrec has returned TRUE, then we have a complete request in
the buffer - calling xdrrec_skiprecord is not necessary. In particular,
if there is another record already buffered on the stream,
xdrrec_skiprecord will discard both this request and the next
one, causing the call to xdr_callmsg to fail and the stream to be
closed.

Sponsored by: Isilon Systems

16 years agoDon't assume that there is readable data on the stream after the
Doug Rabson [Sun, 30 Mar 2008 09:35:04 +0000 (09:35 +0000)]
Don't assume that there is readable data on the stream after the
fragment header.

16 years ago- Account all node stats at the shape mode.
Alexander Motin [Sun, 30 Mar 2008 07:53:51 +0000 (07:53 +0000)]
- Account all node stats at the shape mode.
- Do not check destination hook presence, it will be done by netgraph.
- Use u_int instead of int in some places to simplify type conversions.
- Use NG_SEND_DATA_ONLY() macro instead of selfmade equivalent.

16 years agoAdd a new function is_default_interface() which determines if this
Brooks Davis [Sun, 30 Mar 2008 02:42:39 +0000 (02:42 +0000)]
Add a new function is_default_interface() which determines if this
interface is one with the default route (or there isn't one).  Use it to
decide if we should adjust the default route and /etc/resolv.conf.

Fix the delete of the default route.  The if statement was totally bogus
and the delete only worked due to a typo. [1]

Reported by: Jordan Coleman <jordan at JordanColeman dot com> [1]
MFC after: 1 week

16 years agoUse new atomic_fetchadd() primitive instead of looping atomic_cmpset().
Alexander Motin [Sun, 30 Mar 2008 00:27:48 +0000 (00:27 +0000)]
Use new atomic_fetchadd() primitive instead of looping atomic_cmpset().

16 years ago - Don't allow calls to vn_lock() with no lock type requested. Callers
Jeff Roberson [Sat, 29 Mar 2008 23:36:26 +0000 (23:36 +0000)]
 - Don't allow calls to vn_lock() with no lock type requested.  Callers
   which simply want a reference should use vref().  Callers which want
   to check validity need to hold a lock while performing any action
   based on that validity.  vn_lock() would always release the interlock
   before returning making any action synchronous with the validity check
   impossible.

16 years ago - Use vget() to lock the vnode rather than refing without a lock and
Jeff Roberson [Sat, 29 Mar 2008 23:30:40 +0000 (23:30 +0000)]
 - Use vget() to lock the vnode rather than refing without a lock and
   locking in separate steps.

16 years ago - Simplify null_hashget() and null_hashins() by using vref() rather
Jeff Roberson [Sat, 29 Mar 2008 23:24:54 +0000 (23:24 +0000)]
 - Simplify null_hashget() and null_hashins() by using vref() rather
   than a complex series of steps involving vget() without a lock type
   to emulate the same thing.

16 years agoThere is no need to erase hook->hk_node before freing hook.
Alexander Motin [Sat, 29 Mar 2008 22:53:58 +0000 (22:53 +0000)]
There is no need to erase hook->hk_node before freing hook.

16 years agoDon't always link statically with libwrap. By the time amd(8)
Ruslan Ermilov [Sat, 29 Mar 2008 18:13:15 +0000 (18:13 +0000)]
Don't always link statically with libwrap.  By the time amd(8)
runs, /usr/lib should have already been mounted.

Found by: make checkdpadd

16 years agoAdd missing library dependency.
Ruslan Ermilov [Sat, 29 Mar 2008 18:07:06 +0000 (18:07 +0000)]
Add missing library dependency.

16 years agoRegen.
Ruslan Ermilov [Sat, 29 Mar 2008 17:47:12 +0000 (17:47 +0000)]
Regen.

16 years agoChange kgdb_parse() to use wrapped versions of parse_expression() and
John Baldwin [Sat, 29 Mar 2008 17:46:03 +0000 (17:46 +0000)]
Change kgdb_parse() to use wrapped versions of parse_expression() and
evaluate_expression() so that any errors are caught and cause the function
to return to 0.  Otherwise the errors posted an exception (via longjmp())
that aborted the current operation.  This fixes the kld handling for
older kernels (6.x and 7.x) that don't have the full pathname stored in
the kernel linker.

MFC after: 3 days

16 years agoRemove options MK_LIBKSE and DEFAULT_THREAD_LIB now that we no longer
Ruslan Ermilov [Sat, 29 Mar 2008 17:44:40 +0000 (17:44 +0000)]
Remove options MK_LIBKSE and DEFAULT_THREAD_LIB now that we no longer
build libkse.  This should fix WITHOUT_LIBTHR builds as a side effect.

16 years agoChange the order from SI_ORDER_FIRST to SI_ORDER_ANY (within
Marcel Moolenaar [Sat, 29 Mar 2008 17:33:29 +0000 (17:33 +0000)]
Change the order from SI_ORDER_FIRST to SI_ORDER_ANY (within
SI_SUB_DRIVERS) to avoid loading schemes before all the GEOM
classes have been loaded and initialized. Otherwise we may
end up using mutexes that haven't been initialized (due to
g_retaste() posting an event).

16 years agoInclude math.h for the fmaf() prototype.
David Schultz [Sat, 29 Mar 2008 16:38:29 +0000 (16:38 +0000)]
Include math.h for the fmaf() prototype.

16 years agoFix some rather obscene code that has ambiguous if...if...else...
David Schultz [Sat, 29 Mar 2008 16:37:59 +0000 (16:37 +0000)]
Fix some rather obscene code that has ambiguous if...if...else...
constructs in it.

16 years agoDocument modff() and modfl(). Technically, modff() and modfl()
David Schultz [Sat, 29 Mar 2008 16:19:35 +0000 (16:19 +0000)]
Document modff() and modfl(). Technically, modff() and modfl()
live in libm, while modf() lives in libc due to historical
mistakes. I'm claiming in the manpage that they all live in libm,
since programmers should not rely on the mistake.

16 years agoAdding glabel alias killed gpart alias; fix it.
Ruslan Ermilov [Sat, 29 Mar 2008 13:15:33 +0000 (13:15 +0000)]
Adding glabel alias killed gpart alias; fix it.

16 years ago - Add a man page for cpuset_getaffinity() and cpuset_setaffinity() and
Jeff Roberson [Sat, 29 Mar 2008 10:26:29 +0000 (10:26 +0000)]
 - Add a man page for cpuset_getaffinity() and cpuset_setaffinity() and
   hook it up to the build.

Reviewed by: brueffer (skeleton and formatting assistance)

16 years ago - Add a man page for cpuset(), cpuset_setid(), and cpuset_getid() and hook
Jeff Roberson [Sat, 29 Mar 2008 10:06:30 +0000 (10:06 +0000)]
 - Add a man page for cpuset(), cpuset_setid(), and cpuset_getid() and hook
   it up to the build.

Reviewed by: brueffer (skeleton and formatting assistance)

16 years ago - Use vm_object_reference_locked() directly from
Jeff Roberson [Sat, 29 Mar 2008 07:06:13 +0000 (07:06 +0000)]
 - Use vm_object_reference_locked() directly from
   vm_object_reference().  This is intended to get rid of vget()
   consumers who don't wish to acquire a lock.  This is functionally
   the same as calling vref(). vm_object_reference_locked() already
   uses vref.

Discussed with: alc

16 years agoRewrite node to support multiple hooks, alike to ng_l2tp, to use one pair
Alexander Motin [Sat, 29 Mar 2008 06:54:13 +0000 (06:54 +0000)]
Rewrite node to support multiple hooks, alike to ng_l2tp, to use one pair
of pptpgre and ksocket nodes for all calls between two peers.

16 years agoEliminate an #if 0/#endif that was unintentionally introduced
Alan Cox [Sat, 29 Mar 2008 04:29:50 +0000 (04:29 +0000)]
Eliminate an #if 0/#endif that was unintentionally introduced
by the previous revision.

16 years agoInitialize the head pointer in kld_current_sos() to NULL to avoid returning
John Baldwin [Sat, 29 Mar 2008 03:48:06 +0000 (03:48 +0000)]
Initialize the head pointer in kld_current_sos() to NULL to avoid returning
a junk pointer and possibly causing a seg fault if we don't have any
non-kernel klds (or are unable to walk the list due to core / kernel
mismatch).

MFC after: 1 week

16 years agoMake ALTQ cope with disappearing interfaces (particularly common with mpd
Max Laier [Sat, 29 Mar 2008 00:24:36 +0000 (00:24 +0000)]
Make ALTQ cope with disappearing interfaces (particularly common with mpd
and netgraph in gernal).  This also allows to add queues for an interface
that is not yet existing (you have to provide the bandwidth for the
interface, however).

PR: kern/106400, kern/117827
MFC after: 2 weeks

16 years agoARC-1680 is supported.
Christian Brueffer [Fri, 28 Mar 2008 23:25:58 +0000 (23:25 +0000)]
ARC-1680 is supported.

Submitted by: Steven Hartland <killing@multiplay.co.uk>
MFC after: 3 days

16 years agoForced commit to note that these files were repo copied.
John Birrell [Fri, 28 Mar 2008 22:16:18 +0000 (22:16 +0000)]
Forced commit to note that these files were repo copied.

16 years agoDocument lockmgr_waiters(9).
Christian Brueffer [Fri, 28 Mar 2008 21:30:37 +0000 (21:30 +0000)]
Document lockmgr_waiters(9).

Reviewed by: attilio

16 years agoImplement FSACTL_LNX_GET_FEATURES and FSACTL_GET_FEATURES ioctls. RAID
Ed Maste [Fri, 28 Mar 2008 19:07:25 +0000 (19:07 +0000)]
Implement FSACTL_LNX_GET_FEATURES and FSACTL_GET_FEATURES ioctls.  RAID
tools (e.g. arcconf) need this to be able to create arrays larger than 2TB.

Submitted by: Adaptec, via driver build 15317

16 years agoAdd a couple of missing NIC driver modules.
Christian Brueffer [Fri, 28 Mar 2008 18:13:09 +0000 (18:13 +0000)]
Add a couple of missing NIC driver modules.

Approved by: rwatson (mentor)
MFC after: 3 days

16 years agoAdd support for PC-9800 partition tables.
Marcel Moolenaar [Fri, 28 Mar 2008 17:58:55 +0000 (17:58 +0000)]
Add support for PC-9800 partition tables.

16 years agoAdd Qualcomm, Inc. ZTE CDMA Technologies MSM to the list of supported
Rui Paulo [Fri, 28 Mar 2008 15:28:59 +0000 (15:28 +0000)]
Add Qualcomm, Inc. ZTE CDMA Technologies MSM to the list of supported
devices.

MFC after: 1 week

16 years agoIf we're returning successfully from bus_dmamem_alloc, don't record a KTR
Ed Maste [Fri, 28 Mar 2008 15:28:20 +0000 (15:28 +0000)]
If we're returning successfully from bus_dmamem_alloc, don't record a KTR
of error = ENOMEM.

16 years agoAdd Qualcomm ZTE CMDMA MSM modem to the list of supported modems.
Rui Paulo [Fri, 28 Mar 2008 14:20:06 +0000 (14:20 +0000)]
Add Qualcomm ZTE CMDMA MSM modem to the list of supported modems.

MFC after:   1 week

16 years agoBump __FreeBSD_version in order to reflect BUF_LOCKWAITERS() reintegration
Attilio Rao [Fri, 28 Mar 2008 12:31:26 +0000 (12:31 +0000)]
Bump __FreeBSD_version in order to reflect BUF_LOCKWAITERS() reintegration
and lockmgr_waiters() introduction.

16 years agob_waiters cannot be adequately protected by the interlock because it is
Attilio Rao [Fri, 28 Mar 2008 12:30:12 +0000 (12:30 +0000)]
b_waiters cannot be adequately protected by the interlock because it is
dropped after the call to lockmgr() so just revert this approach using
something similar to the precedent one:
BUF_LOCKWAITERS() just checks if there are waiters (not the actual number
of them) and it is based on newly introduced lockmgr_waiters() which
returns if the lockmgr has waiters or not. The name has been choosen
differently by old lockwaiters() in order to not confuse them.

KPI results enriched by this commit so __FreeBSD_version bumping and
manpage update will be happening soon.
'struct buf' also changes, so kernel ABI is disturbed.

Bug found by: jeff
Approved by: jeff, kib

16 years agoMinor changes to improve compatibility with older FreeBSD releases.
Doug Rabson [Fri, 28 Mar 2008 09:50:32 +0000 (09:50 +0000)]
Minor changes to improve compatibility with older FreeBSD releases.

16 years agoUse ; instead of : to end a line.
Brooks Davis [Fri, 28 Mar 2008 08:19:03 +0000 (08:19 +0000)]
Use ; instead of : to end a line.

Submitted by: Niclas Zeising <niclas dot zeising at gmail dot com>

16 years agoAdd support for hardwiring ppp sessions to particular devices with new
Brooks Davis [Fri, 28 Mar 2008 07:57:52 +0000 (07:57 +0000)]
Add support for hardwiring ppp sessions to particular devices with new
per-profile variables of the form ppp_<profile>_unit.  No ppp_unit
variable is supported since tying the same unit to more than one profile
won't work.

PR: conf/122127
MFC after: 1 week

16 years agoSupport gif_interface values that don't follow the pattern gif###.
Brooks Davis [Fri, 28 Mar 2008 06:50:06 +0000 (06:50 +0000)]
Support gif_interface values that don't follow the pattern gif###.
Remove ancient compatablity support for gif_interface="NO".

16 years agoWhen retasting, wither any existing GEOMs of the same class. This
Marcel Moolenaar [Fri, 28 Mar 2008 06:31:12 +0000 (06:31 +0000)]
When retasting, wither any existing GEOMs of the same class. This
allows the class to create a different GEOM for the same provider
as well as avoid that we end up with multiple GEOMs of the same
class with the same name.

For example, when a disk contains a PC98 partition table but
only MBR is supported, then the partition table can be treated
as a MBR. If support for PC98 is later loaded as a module, the
MBR scheme is pre-empted for the PC98 scheme as expected.

16 years agoAdd support to mincore for detecting whether a page is part of a
Paul Saab [Fri, 28 Mar 2008 04:29:27 +0000 (04:29 +0000)]
Add support to mincore for detecting whether a page is part of a
"super" page or not.

Reviewed by: alc, ups

16 years ago_lockmgr_args() accepts a 'char *' string as file, so modify _BUF_LOCK()
Attilio Rao [Fri, 28 Mar 2008 02:48:16 +0000 (02:48 +0000)]
_lockmgr_args() accepts a 'char *' string as file, so modify _BUF_LOCK()
and _BUF_TIMELOCK() prototypes accordingly with this.

16 years agoIn revision 1.70, 1.71 and 1.84 re(4) tried to workaround checksum
Pyun YongHyeon [Fri, 28 Mar 2008 01:21:21 +0000 (01:21 +0000)]
In revision 1.70, 1.71 and 1.84 re(4) tried to workaround checksum
offload bugs by manual padding for short IP/UDP frames. Unfortunately
it seems that these workaround does not work reliably on newer PCIe
variants of RealTek chips.

To workaround the hardware bug, always pad short frames if Tx IP
checksum offload is requested. It seems that the hardware has a
bug in IP checksum offload handling. NetBSD manually pads short
frames only when the length of IP frame is less than 28 bytes but I
chose 60 bytes to safety. Also unconditionally set IP checksum
offload bit in Tx descriptor if any TCP or UDP checksum offload is
requested. This is the same way as Linux does but it's not
mentioned in data sheet.

Obtained from: NetBSD
Tested by: remko, danger

16 years agoRemove the last 3 files I missed. These have been repo copied to the new
John Birrell [Fri, 28 Mar 2008 00:28:45 +0000 (00:28 +0000)]
Remove the last 3 files I missed. These have been repo copied to the new
location under a cddl part of the tree following the core@ license review.

16 years agoInstruments buffer lock objects in order to track correctly consumers
Attilio Rao [Fri, 28 Mar 2008 00:14:33 +0000 (00:14 +0000)]
Instruments buffer lock objects in order to track correctly consumers
consumers in locking operations.
While here, operates some style(9) cleanups.

16 years agoRemove files that have been repo copied to their new location
John Birrell [Fri, 28 Mar 2008 00:08:47 +0000 (00:08 +0000)]
Remove files that have been repo copied to their new location
in cddl-specific parts of the source tree.

16 years agoThe sources covered by Sun's CDDL have been repo copied below the
John Birrell [Thu, 27 Mar 2008 23:21:25 +0000 (23:21 +0000)]
The sources covered by Sun's CDDL have been repo copied below the
src/cddl and src/sys/cddl directories per the core@ decision following
the license review.

This change modifies the affected Makefiles to reference the sources
in their new location.

16 years agoRemove ng_setisr() call from ng_dequeue(). It is useless as we any way
Alexander Motin [Thu, 27 Mar 2008 23:02:30 +0000 (23:02 +0000)]
Remove ng_setisr() call from ng_dequeue(). It is useless as we any way
will never exit ngintr(), while there is some ready requests on the queue.
It was made years ago with hope of parallel queue processing by several
net threads. But even if we have several threads sometimes, we have no
rights to process queue in parallel as it will break original requests
serialization that is critically important for some setups.

16 years agoRemove option headers that do not exist and are not used
Antoine Brodin [Thu, 27 Mar 2008 20:38:03 +0000 (20:38 +0000)]
Remove option headers that do not exist and are not used
from the Makefiles in sys/modules.
(opt_devfs.h, opt_bdg.h, opt_emu10kx.h and opt_uslcom.h)

Approved by: rwatson (mentor)

16 years agoSwitch from timeval to bintime, to use 1/(2^20) of seconds instead of
Alexander Motin [Thu, 27 Mar 2008 20:04:20 +0000 (20:04 +0000)]
Switch from timeval to bintime, to use 1/(2^20) of seconds instead of
microseconds. It allows to use bit shifts instead of some heavy 64bit
mul/div math operations.

16 years agoAdd IFF_NEEDSGIANT to IFF_CANTCHANGE, to prevent user-level code
Ian Dowse [Thu, 27 Mar 2008 18:02:30 +0000 (18:02 +0000)]
Add IFF_NEEDSGIANT to IFF_CANTCHANGE, to prevent user-level code
from clearing the IFF_NEEDSGIANT flag on Giant-locked interfaces.
In particular, wpa_supplicant was doing this on USB interfaces,
causing panics when Giant-locked code was then called without Giant.

Submitted by: Alexey Popov
Reviewed by: rwatson
MFC after: 3 days

16 years agoRemove the '-k' option.
Doug Rabson [Thu, 27 Mar 2008 15:11:02 +0000 (15:11 +0000)]
Remove the '-k' option.

16 years agoAdd nfslockd and krpc modules.
Doug Rabson [Thu, 27 Mar 2008 11:55:03 +0000 (11:55 +0000)]
Add nfslockd and krpc modules.

16 years agoAdd kernel module support for nfslockd and krpc. Use the module system
Doug Rabson [Thu, 27 Mar 2008 11:54:20 +0000 (11:54 +0000)]
Add kernel module support for nfslockd and krpc. Use the module system
to detect (or load) kernel NLM support in rpc.lockd. Remove the '-k'
option to rpc.lockd and make kernel NLM the default. A user can still
force the use of the old user NLM by building a kernel without NFSLOCKD
and/or removing the nfslockd.ko module.