]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoDocument the new {set,get}{timestamp,counter} messages supported by the
emaste [Fri, 2 Mar 2007 02:34:31 +0000 (02:34 +0000)]
Document the new {set,get}{timestamp,counter} messages supported by the
ng_source node.  Also remove an obsolete email address.

Sponsored by: Sandvine Incorporated

17 years agoAdd "setcounter" and "getcounter" messages, providing the the ability
emaste [Fri, 2 Mar 2007 01:44:04 +0000 (01:44 +0000)]
Add "setcounter" and "getcounter" messages, providing the the ability
to embed up to four counters in outgoing packets.  The message specifies
the offset at which the counter should be inserted as well as the
parameters of the counter.

Example usage:

  ngctl msg src0: setcounter \
    '{ index=0 offset=0x40 flags=1 width=4 increment=1 max_val=12345 }'

Sponsored by:   Sandvine Incorporated

17 years agoMFP4: 113090, 113130, 113132
jkim [Fri, 2 Mar 2007 01:10:26 +0000 (01:10 +0000)]
MFP4: 113090, 113130, 113132

Add Linux kernel version strings to /proc/sys/kernel.

17 years agoChange fifo_printinfo to check if the vnode v_fifoinfo pointer
mpp [Fri, 2 Mar 2007 00:10:11 +0000 (00:10 +0000)]
Change fifo_printinfo to check if the vnode v_fifoinfo pointer
is NULL and print a message to that effect to prevent a panic.

17 years agoMFP4: 115220, 115222
jkim [Fri, 2 Mar 2007 00:08:47 +0000 (00:08 +0000)]
MFP4: 115220, 115222

- Fix style(9) and reduce diff between amd64 and i386.
- Prefix Linuxulator macros with LINUX_ to prevent future collision.

17 years agoAdd "settimestamp" and "gettimestamp" messages, providing the the ability
emaste [Thu, 1 Mar 2007 23:16:17 +0000 (23:16 +0000)]
Add "settimestamp" and "gettimestamp" messages, providing the the ability
to embed a timestamp (struct timeval) in outgoing packets.  The message
specifies the offset at which the timestamp should be inserted.

NG_SOURCE(4) gives an example usage that queues an ICMP packet.  Using that
example, the following command will insert a timestamp in the ICMP's data
payload:

  ngctl msg src0: settimestamp '{ offset=0x2a flags=1 }'

Sponsored by: Sandvine Incorporated

17 years agoFix build breakage.
pjd [Thu, 1 Mar 2007 23:14:46 +0000 (23:14 +0000)]
Fix build breakage.

17 years agoChange:
pjd [Thu, 1 Mar 2007 21:44:08 +0000 (21:44 +0000)]
Change:
"... try to use VADMIN in preference to VADMIN ..."
To:
"... try to use VADMIN in preference to VWRITE ..."

17 years agoAdd support for the 3 (PATA) channel on the VIA 6421 chip.
sos [Thu, 1 Mar 2007 21:18:27 +0000 (21:18 +0000)]
Add support for the 3 (PATA) channel on the VIA 6421 chip.

HW donated by: Fabian Peters

17 years agoRename PRIV_VFS_CLEARSUGID to PRIV_VFS_RETAINSUGID, which seems to better
pjd [Thu, 1 Mar 2007 20:47:42 +0000 (20:47 +0000)]
Rename PRIV_VFS_CLEARSUGID to PRIV_VFS_RETAINSUGID, which seems to better
describe the privilege.

OK'ed by: rwatson

17 years agoAvoid checking for privileges if there is no need to.
pjd [Thu, 1 Mar 2007 20:38:24 +0000 (20:38 +0000)]
Avoid checking for privileges if there is no need to.

Discussed with: rwatson

17 years agoDo not dispatch SIGPIPE from the generic write path for a socket; with
bms [Thu, 1 Mar 2007 19:20:25 +0000 (19:20 +0000)]
Do not dispatch SIGPIPE from the generic write path for a socket; with
this patch the code behaves according to the comment on the line above.

Without this patch, a socket could cause SIGPIPE to be delivered to its
process, once with SO_NOSIGPIPE set, and twice without.

With this patch, the kernel now passes the sigpipe regression test.

Tested by: Anton Yuzhaninov
MFC after: 1 week

17 years agoAdd -t to set IP TTL.
bms [Thu, 1 Mar 2007 18:36:16 +0000 (18:36 +0000)]
Add -t to set IP TTL.

17 years agoCheck the return value from rad_cvt_ipv6prefix().
ume [Thu, 1 Mar 2007 16:13:56 +0000 (16:13 +0000)]
Check the return value from rad_cvt_ipv6prefix().

PR: bin/89808
MFC after: 1 week

17 years agoBump the bootstrapping requirements for gensnmptree(1) and remove
ru [Thu, 1 Mar 2007 15:42:23 +0000 (15:42 +0000)]
Bump the bootstrapping requirements for gensnmptree(1) and remove
a note in UPDATING that tried to work around the build breakage.

Tested by: jhb
OK'ed by: njl

17 years agoIntroduce a new mbuf flag, M_PROMISC.
bms [Thu, 1 Mar 2007 14:38:08 +0000 (14:38 +0000)]
Introduce a new mbuf flag, M_PROMISC.

An mbuf packet chain with the M_PROMISC flag set contains a unicast packet
received by the link layer, which does not correspond to any configured
link layer address in the local system.

It is copied when copying m_pkthdr. It is not cleared when crossing layers.
As such, it is defined to have a flag value which is outside of the
M_PROTO* range, like M_VLANTAG has.

Reviewed by: andre
Obtained from: NetBSD

17 years agoRemove trailing spaces and make the date canonical.
ru [Thu, 1 Mar 2007 14:33:29 +0000 (14:33 +0000)]
Remove trailing spaces and make the date canonical.

17 years agoUnbreak the kgdb stepping over the special frames on i386 after rev. 1.117 of
kib [Thu, 1 Mar 2007 13:56:08 +0000 (13:56 +0000)]
Unbreak the kgdb stepping over the special frames on i386 after rev. 1.117 of
i386/i386/exception.s.

No objections from: marcel

17 years agoRename lookup() to kgdb_lookup() and make it global (for use in trgt_i386.c).
kib [Thu, 1 Mar 2007 13:55:15 +0000 (13:55 +0000)]
Rename lookup() to kgdb_lookup() and make it global (for use in trgt_i386.c).

No objections from: marcel

17 years agoFix undirected broadcast sends for the case where SO_DONTROUTE has also
bms [Thu, 1 Mar 2007 13:29:30 +0000 (13:29 +0000)]
Fix undirected broadcast sends for the case where SO_DONTROUTE has also
been set at the socket layer, in our somewhat convoluted IPv4 source
selection logic in ip_output().

IP_ONESBCAST is actually a special case of SO_DONTROUTE, as 255.255.255.255
must always be delivered on a local link with a TTL of 1.

If IP_ONESBCAST has been set at the socket layer, also perform destination
interface lookup for point-to-point interfaces based on the destination
address of the link; previously it was not possible to use the option with
such interfaces; also, the destination/broadcast address fields map to the
same field within struct ifnet, which doesn't help matters.

One more valid fix going forward for these issues is to treat 255.255.255.255
as a destination in its own right in the forwarding trie. Other
implementations do this. It fits with the use of multiple paths, though
it then becomes necessary to specify interface preference.
This hack will eventually go away when that comes to pass.

Reviewed by: andre
MFC after: 1 week

17 years agoIntroduce a test program for IPv4 broadcast datagram send.
bms [Thu, 1 Mar 2007 13:26:13 +0000 (13:26 +0000)]
Introduce a test program for IPv4 broadcast datagram send.

17 years agoPrevent TSO mbuf chain from overflowing a few bytes by subtracting the
andre [Thu, 1 Mar 2007 13:12:09 +0000 (13:12 +0000)]
Prevent TSO mbuf chain from overflowing a few bytes by subtracting the
TCP options size before the TSO total length calculation.

Bug found by: kmacy

17 years agoMark addr2ascii() man page as obsolete.
bms [Thu, 1 Mar 2007 10:53:55 +0000 (10:53 +0000)]
Mark addr2ascii() man page as obsolete.

Submitted by: Maxim Konovalov

17 years agoEvidently I've overestimated gcc's ability to peak inside inline functions
kmacy [Thu, 1 Mar 2007 09:35:48 +0000 (09:35 +0000)]
Evidently I've overestimated gcc's ability to peak inside inline functions
and optimize away unused stack values. The 48 bytes that the lock_profile_object
adds to the stack evidently has a measurable performance impact on certain workloads.

17 years agoUpdate bus_setup_intr().
piso [Thu, 1 Mar 2007 09:10:55 +0000 (09:10 +0000)]
Update bus_setup_intr().

Pointed by: Krassimir Slavchev

17 years agoNew sentence -> new line and contractions removed.
brueffer [Thu, 1 Mar 2007 09:07:04 +0000 (09:07 +0000)]
New sentence -> new line and contractions removed.

17 years agoRemove two simultaneous acquisitions of multiple unpcb locks from
rwatson [Thu, 1 Mar 2007 09:00:42 +0000 (09:00 +0000)]
Remove two simultaneous acquisitions of multiple unpcb locks from
uipc_send in cases where only a global read lock is held by breaking
them out and avoiding the unpcb lock acquire in the common case.  This
avoids deadlocks which manifested with X11, and should also marginally
further improve performance.

Reported by: sepotvin, brooks

17 years agoBecause the buffer gets released immediately, I need to
kientzle [Thu, 1 Mar 2007 06:22:34 +0000 (06:22 +0000)]
Because the buffer gets released immediately, I need to
copy the symlink target name, not just copy the reference.
This problem sometimes caused crashes when extracting
symlinks from ISO9660 images.

Thanks to: Diego "Flameeyes" Pettenò

17 years agostub call to addr2ascii().
bms [Thu, 1 Mar 2007 02:11:57 +0000 (02:11 +0000)]
stub call to addr2ascii().

Noticed by: brooks

17 years agoUpdate the isp man page.
mjacob [Wed, 28 Feb 2007 23:21:51 +0000 (23:21 +0000)]
Update the isp man page.
MFC after: 2 weeks

17 years agoUpdate bus_setup_intr() man page after recent newbus modification:
piso [Wed, 28 Feb 2007 23:13:41 +0000 (23:13 +0000)]
Update bus_setup_intr() man page after recent newbus modification:

o uniform the driver_intr_t parameter name to 'ithread'

o delete any reference to INTR_FAST

o document a bit the difference between the filter and ithread
  argument

Reviewed by: mdoc-police (ru)

17 years agoIncrease helpfulness in diagnostic message - ypbind running without -ypset or
jmallett [Wed, 28 Feb 2007 22:49:12 +0000 (22:49 +0000)]
Increase helpfulness in diagnostic message - ypbind running without -ypset or
-ypsetme will prevent use of ypset.  Remind the user to check that it was
started correctly.

17 years agoMore cleanup for rev. 1.56
brueffer [Wed, 28 Feb 2007 22:40:21 +0000 (22:40 +0000)]
More cleanup for rev. 1.56

Submitted by: ru

17 years agoPrepare for 802.1p:
bms [Wed, 28 Feb 2007 22:05:30 +0000 (22:05 +0000)]
Prepare for 802.1p:
 Add macro EVL_APPLY_VLID() which may be used to apply an 802.1q VLAN ID
 to the M_VLANTAG field in an mbuf packet header non-destructively.
 This will be used by net80211 to begin with.

 Add macro EVL_APPLY_PRI() which may be used to apply an 802.1p priority
 class to the M_VLANTAG field in an mbuf packet header non-destructively.

 Add other macros for manipulating tags and the CFI bit.

Submitted by: Boris Kovalenko (EVL_CFIOFTAG(), EVL_MAKETAG())

17 years agoAdd comments about common idioms for cleanup pass at a later date.
bms [Wed, 28 Feb 2007 21:58:37 +0000 (21:58 +0000)]
Add comments about common idioms for cleanup pass at a later date.

17 years agomdoc cleanup for the previous commit and touch .Dd
brueffer [Wed, 28 Feb 2007 21:36:11 +0000 (21:36 +0000)]
mdoc cleanup for the previous commit and touch .Dd

17 years agoDocument removal of addr2ascii/ascii2addr and addition of AF_LINK
bms [Wed, 28 Feb 2007 21:33:40 +0000 (21:33 +0000)]
Document removal of addr2ascii/ascii2addr and addition of AF_LINK
support for getnameinfo.

17 years agoDocument the AF_LINK extension which was imported from NetBSD.
bms [Wed, 28 Feb 2007 21:28:33 +0000 (21:28 +0000)]
Document the AF_LINK extension which was imported from NetBSD.

17 years agoNuke ascii2addr() and addr2ascii(). They have no consumers anywhere
bms [Wed, 28 Feb 2007 21:18:38 +0000 (21:18 +0000)]
Nuke ascii2addr() and addr2ascii(). They have no consumers anywhere
in FreeBSD, and originated from INRIA IPv6.

Stub out netstat reference to addr2ascii() I mistakenly introduced.
Update misleading man page sections.

Merge NetBSD's getnameinfo() AF_LINK extensions for a portable way to
print link-layer addresses given a sockaddr_dl(), minus the IEEE 1394
bits which don't map directly to our code.

Obtained from: NetBSD (getnameinfo.c)
Discussed on: current (March 2006)

17 years agoIn the SYN_SENT case, Initialize the snd_wnd before the call to tcp_mss().
mohans [Wed, 28 Feb 2007 20:48:00 +0000 (20:48 +0000)]
In the SYN_SENT case, Initialize the snd_wnd before the call to tcp_mss().
The TCP hostcache logic in tcp_mss() depends on the snd_wnd being initialized.

17 years agoRemove code which would never be used, viz a viz Quality-of-Service;
bms [Wed, 28 Feb 2007 20:32:25 +0000 (20:32 +0000)]
Remove code which would never be used, viz a viz Quality-of-Service;
the token bucket filter got killed in netinet, so it gets killed here
too. Correct comments.

17 years agoAdd a comment about a struct which needs to be global.
bms [Wed, 28 Feb 2007 20:29:20 +0000 (20:29 +0000)]
Add a comment about a struct which needs to be global.
Remove an unused global variable.
Staticize variables which do not need to be global.

17 years agoResurrect one of the patches from attic and refine the
ru [Wed, 28 Feb 2007 20:06:21 +0000 (20:06 +0000)]
Resurrect one of the patches from attic and refine the
lib32 build somewhat.  Specifically, instead of spamming
${CC} et al with -I${LIB32TMP}/usr/include which can be
harmful (as has been demonstrated by the ncursesw WIP),
use slightly different approach to achieve the same goal.
This also simplifies things a bit.

Prodded by: rafan

17 years agoStyle: Move declaration of subsystem mutex to where other
bms [Wed, 28 Feb 2007 20:02:24 +0000 (20:02 +0000)]
Style: Move declaration of subsystem mutex to where other
mutexes are in this file, and use macros for dealing with it.

17 years agoUpdate the tcp(4) manpage with the new (and some older undocumented) sysctls.
mohans [Wed, 28 Feb 2007 19:32:46 +0000 (19:32 +0000)]
Update the tcp(4) manpage with the new (and some older undocumented) sysctls.
Remove a sysctl that is no longer used.

17 years agoMinor reformatting.
thomas [Wed, 28 Feb 2007 16:51:52 +0000 (16:51 +0000)]
Minor reformatting.

17 years agoInternational code for Russian Ruble is changed from RUR to RUB
ache [Wed, 28 Feb 2007 16:28:49 +0000 (16:28 +0000)]
International code for Russian Ruble is changed from RUR to RUB
starting from 1.1.2001 (ISO 4217)

17 years agoAdd EHOSTDOWN and ENETUNREACH to the list of soft errors, that shouldn't
glebius [Wed, 28 Feb 2007 12:47:49 +0000 (12:47 +0000)]
Add EHOSTDOWN and ENETUNREACH to the list of soft errors, that shouldn't
be returned up to the caller.

PR: 100172
Submitted by: "Andrew - Supernews" <andrew supernews.net>
Reviewed by: rwatson, bms

17 years agoToss the code, that handles errors from ip_output(), to make it more
glebius [Wed, 28 Feb 2007 12:41:49 +0000 (12:41 +0000)]
Toss the code, that handles errors from ip_output(), to make it more
readable:
- Merge two embedded if() into one.
- Introduce switch() block to handle different kinds of errors.

Reviewed by: rwatson, bms

17 years agoFix markup.
ru [Wed, 28 Feb 2007 10:29:48 +0000 (10:29 +0000)]
Fix markup.

17 years agoFix a nit noticed during translation.
ru [Wed, 28 Feb 2007 10:24:34 +0000 (10:24 +0000)]
Fix a nit noticed during translation.

17 years agoBackport markup fixes from a translated version of a manpage.
ru [Wed, 28 Feb 2007 10:22:19 +0000 (10:22 +0000)]
Backport markup fixes from a translated version of a manpage.

17 years agoCheck in some insignificant fixes obtained as a result of
ru [Wed, 28 Feb 2007 10:19:25 +0000 (10:19 +0000)]
Check in some insignificant fixes obtained as a result of
the translation work.

17 years ago- Adopt the short description from POSIX as it better matches the
ru [Wed, 28 Feb 2007 10:13:32 +0000 (10:13 +0000)]
- Adopt the short description from POSIX as it better matches the
  utility name.

- Fix a bug in description: the range preceded by a dash selects
  up to the last number, not first.

17 years agoRevert previous change and take back a pointy hat.
ru [Wed, 28 Feb 2007 09:04:46 +0000 (09:04 +0000)]
Revert previous change and take back a pointy hat.

17 years agoLock unp2 after checking for a non-NULL unp2 pointer in uipc_send() on
rwatson [Wed, 28 Feb 2007 08:08:50 +0000 (08:08 +0000)]
Lock unp2 after checking for a non-NULL unp2 pointer in uipc_send() on
datagram UNIX domain sockets, not before.

17 years agoFix panic on boot caused by setting up a NULL interrupt handler.
ru [Wed, 28 Feb 2007 05:29:23 +0000 (05:29 +0000)]
Fix panic on boot caused by setting up a NULL interrupt handler.

Submitted by: Goran Gajic
Pointy hat to: piso

17 years agoAdd a comment for PRIV_NET_SETLLADDR.
pjd [Tue, 27 Feb 2007 23:38:58 +0000 (23:38 +0000)]
Add a comment for PRIV_NET_SETLLADDR.

OK'ed by: rwatson

17 years agoFurhter clarifications:
grog [Tue, 27 Feb 2007 23:09:31 +0000 (23:09 +0000)]
Furhter clarifications:

- the issues with wakeup_one are due to address space clashes between
  unrelated groups of threads.
- sleep() was removed in FreeBSD 2.2.
- date the page today, not 4 days ago.
- replace grammatically correct "woken" with "woken up" for
  consistency with the function name.

17 years agoSome USB mass storage devices return the number of sectors in response
imp [Tue, 27 Feb 2007 22:33:50 +0000 (22:33 +0000)]
Some USB mass storage devices return the number of sectors in response
to a READ_CAPACITY request rather than the maximum sector (off by one
problem).  This causes a huge cascade of errors as the geom tasting
code tries to read the last sector (which isn't really there in the
face of this error).  automated tools that manipulate disk labels and
such also have issues.

Create a new quirk READ_CAPACITY_OFFBY1 and add a quirk for the
SanDISK ImageMate that I have that suffers from this problem (the
SDDR-31).  It intercepts the READ_CAPACITY response and adjusts it
from number of sectors to max sector for devices with this quirk.

Reading the Linux source suggests that there are a host of
other devices with this issue, including iPods and some popular
cameras.  I've not added quirks for them, since I don't have the
devices in front of me to test.

17 years agoEntries sorted by id number, not name
imp [Tue, 27 Feb 2007 22:27:53 +0000 (22:27 +0000)]
Entries sorted by id number, not name

17 years agoUse pause() in vm_object_deallocate() to yield the CPU to the lock holder
jhb [Tue, 27 Feb 2007 19:40:26 +0000 (19:40 +0000)]
Use pause() in vm_object_deallocate() to yield the CPU to the lock holder
rather than a tsleep() on &proc0.  The only wakeup on &proc0 is intended
to awaken the swapper, not random threads blocked in
vm_object_deallocate().

17 years agoPrint tid's rather than thread pointers in KTR_PROC traces.
jhb [Tue, 27 Feb 2007 18:46:07 +0000 (18:46 +0000)]
Print tid's rather than thread pointers in KTR_PROC traces.

17 years agoUse taskqueue_drain() to wait for any pending tasks to complete rather
jhb [Tue, 27 Feb 2007 18:45:37 +0000 (18:45 +0000)]
Use taskqueue_drain() to wait for any pending tasks to complete rather
than just pausing for a second.

17 years agoUse pause() instead of tsleep()'s on the softc pointer that have no
jhb [Tue, 27 Feb 2007 17:27:23 +0000 (17:27 +0000)]
Use pause() instead of tsleep()'s on the softc pointer that have no
corresponding wakeups.  Also, at least some of the comments nearby indicate
that these are fixed-length I/O sleeps.

17 years agoUse pause() rather than tsleep() on stack variables and function pointers.
jhb [Tue, 27 Feb 2007 17:23:29 +0000 (17:23 +0000)]
Use pause() rather than tsleep() on stack variables and function pointers.

17 years agoUse pause() rather than tsleep() on explicit global dummy variables.
jhb [Tue, 27 Feb 2007 17:22:30 +0000 (17:22 +0000)]
Use pause() rather than tsleep() on explicit global dummy variables.

17 years agoUse pause() rather than using tsleep() on a dummy variable.
jhb [Tue, 27 Feb 2007 17:19:33 +0000 (17:19 +0000)]
Use pause() rather than using tsleep() on a dummy variable.

17 years agoAlways protect the kthread flags with the lock and close a race with
jhb [Tue, 27 Feb 2007 17:16:52 +0000 (17:16 +0000)]
Always protect the kthread flags with the lock and close a race with
module unload and kthread_exit().

MFC after: 3 days

17 years agoUse tsleep() rather than msleep() with a NULL mtx.
jhb [Tue, 27 Feb 2007 17:15:39 +0000 (17:15 +0000)]
Use tsleep() rather than msleep() with a NULL mtx.

17 years agoo consistently check strlcpy result
sam [Tue, 27 Feb 2007 17:11:18 +0000 (17:11 +0000)]
o consistently check strlcpy result
o warn when we skip an interface because it's name is too long

17 years agoDo not execute filter only handlers in ithread_execute_handlers():
piso [Tue, 27 Feb 2007 17:09:20 +0000 (17:09 +0000)]
Do not execute filter only handlers in ithread_execute_handlers():
this fixes the panics when filter only and ithread only handlers where
sharing the same irq .

17 years agocorrect type to silence const complaint
sam [Tue, 27 Feb 2007 17:03:22 +0000 (17:03 +0000)]
correct type to silence const complaint

17 years agounbreak create operation, must copy argument to global name
sam [Tue, 27 Feb 2007 17:00:59 +0000 (17:00 +0000)]
unbreak create operation, must copy argument to global name

Spotted by: des

17 years agoFix obvious typo (use long name if short name isn't provided).
flz [Tue, 27 Feb 2007 16:52:27 +0000 (16:52 +0000)]
Fix obvious typo (use long name if short name isn't provided).

Reviewed by: sam
MFC after: 3 days

17 years agoIn FreeBSD 5.x+, sleep/wakeup operate on threads, not processes.
jhb [Tue, 27 Feb 2007 16:32:55 +0000 (16:32 +0000)]
In FreeBSD 5.x+, sleep/wakeup operate on threads, not processes.

17 years agoFix markup and grammar bugs in recent revisions.
ru [Tue, 27 Feb 2007 16:21:01 +0000 (16:21 +0000)]
Fix markup and grammar bugs in recent revisions.

17 years agoRemove a (harmless) stray backslash.
ru [Tue, 27 Feb 2007 16:13:19 +0000 (16:13 +0000)]
Remove a (harmless) stray backslash.

17 years agoAdd proper return codes to zs_intr() filter, and fix accordinlgly zs_intr()
piso [Tue, 27 Feb 2007 15:31:11 +0000 (15:31 +0000)]
Add proper return codes to zs_intr() filter, and fix accordinlgly zs_intr()
prototype.

17 years agoAdd INADDR_ALLRPTS_GROUP define for 224.0.0.22 for future IGMPv3 support.
bms [Tue, 27 Feb 2007 14:45:37 +0000 (14:45 +0000)]
Add INADDR_ALLRPTS_GROUP define for 224.0.0.22 for future IGMPv3 support.

Obtained from: OpenSolaris

17 years agoMake hosts.allow point to hosts_options instead.
n_hibma [Tue, 27 Feb 2007 14:22:07 +0000 (14:22 +0000)]
Make hosts.allow point to hosts_options instead.

Requested by:  ru

17 years agoCorrect return code (int) for at91_rtc_intr() prototype.
piso [Tue, 27 Feb 2007 13:39:34 +0000 (13:39 +0000)]
Correct return code (int) for at91_rtc_intr() prototype.

Approved by: cognet

17 years agoClean the lib32 object directory with cleandir rather than rm -rf.
des [Tue, 27 Feb 2007 13:02:29 +0000 (13:02 +0000)]
Clean the lib32 object directory with cleandir rather than rm -rf.

Discussed with: ru
MFC after: 2 weeks

17 years agoFix markup.
ru [Tue, 27 Feb 2007 12:06:02 +0000 (12:06 +0000)]
Fix markup.

17 years agoAdd GEOM_MULTIPATH so LINT will build.
des [Tue, 27 Feb 2007 12:05:25 +0000 (12:05 +0000)]
Add GEOM_MULTIPATH so LINT will build.

Pointy hat to: mjacob

17 years agoFix markup.
ru [Tue, 27 Feb 2007 11:25:58 +0000 (11:25 +0000)]
Fix markup.

17 years ago(cam_rescan): Do not reference ccb->ccb_h.path in CAM_DEBUG call before
thomas [Tue, 27 Feb 2007 09:00:51 +0000 (09:00 +0000)]
(cam_rescan): Do not reference ccb->ccb_h.path in CAM_DEBUG call before
it is initialized; use path instead.

This change fixes a panic when using atapicam in conjunction with CAMDEBUG,
which has been described under kern/103602.

Thanks to Josh Carroll <josh.carroll@gmail.com> for providing the traces
that allowed identifying this problem.

PR: kern/103602
MFC after: 1 week

17 years agoCall the multipath device with its real name.
ale [Tue, 27 Feb 2007 08:56:11 +0000 (08:56 +0000)]
Call the multipath device with its real name.

17 years agoFirst cleanup pass: new sentence -> new line, typos fixed, some markup
brueffer [Tue, 27 Feb 2007 07:53:20 +0000 (07:53 +0000)]
First cleanup pass: new sentence -> new line, typos fixed, some markup
errors fixed.

17 years agoKASSERT fails when the condition is false, not when it is true.
mckusick [Tue, 27 Feb 2007 07:34:28 +0000 (07:34 +0000)]
KASSERT fails when the condition is false, not when it is true.

17 years agoAdd a man page.
mjacob [Tue, 27 Feb 2007 07:29:15 +0000 (07:29 +0000)]
Add a man page.

17 years agoFix an error in dumping large sparse files containing extended attributes.
mckusick [Tue, 27 Feb 2007 07:28:17 +0000 (07:28 +0000)]
Fix an error in dumping large sparse files containing extended attributes.

17 years agoFurther improvements to LOCK_PROFILING:
kmacy [Tue, 27 Feb 2007 06:42:05 +0000 (06:42 +0000)]
Further improvements to LOCK_PROFILING:
 - Fix missing initialization in kern_rwlock.c causing bogus times to be collected
 - Move updates to the lock hash to after the lock is released for spin mutexes,
   sleep mutexes, and sx locks
 - Add new kernel build option LOCK_PROFILE_FAST - only update lock profiling
   statistics when an acquisition is contended. This reduces the overhead of
   LOCK_PROFILING to increasing system time by 20%-25% which on
   "make -j8 kernel-toolchain" on a dual woodcrest is unmeasurable in terms
   of wall-clock time. Contrast this to enabling lock profiling without
   LOCK_PROFILE_FAST and I see a 5x-6x slowdown in wall-clock time.

17 years agoUpdate HISTORY.
grog [Tue, 27 Feb 2007 05:39:22 +0000 (05:39 +0000)]
Update HISTORY.

Reviewed by: dmr

17 years agoFixed some style bugs (whitespace lossage for removal of __P(()), and
bde [Tue, 27 Feb 2007 05:10:36 +0000 (05:10 +0000)]
Fixed some style bugs (whitespace lossage for removal of __P(()), and
lots of naming and typing errors involving `interval').

17 years agoUse a periodic itimer instead of repeated calls to alarm() in
bde [Tue, 27 Feb 2007 04:54:33 +0000 (04:54 +0000)]
Use a periodic itimer instead of repeated calls to alarm() in
sidewaysintpr().  This increases the accuracy of the per-interval
counts when they are interpreted as rates.  Repeated calls to alarm(n)
give an average interval that is about 2 ticks larger than n and has
a large variance.  Periodic itimers normally get the average almost
right but have similarly large variance (due to scheduling delays).

Statistics utilities should use clock_gettime() to determine the
actual interval, but it is still useful to maximize the accuracy of
the interval, especially for cases like netstat -w where counts are
displayed so the program cannot hide the inaccuracy in a rate
conversion.

17 years agoFirst cut at GEOM based multipath. This is an active/passive{/passive...}
mjacob [Tue, 27 Feb 2007 04:01:58 +0000 (04:01 +0000)]
First cut at GEOM based multipath. This is an active/passive{/passive...}
arrangement that has no intrinsic internal knowledge of whether devices
it is given are truly multipath devices. As such, this is a simplistic
approach, but still a useful one.

The basic approach is to (at present- this will change soon) use camcontrol
to find likely identical devices and and label the trailing sector of the
first one. This label contains both a full UUID and a name. The name is
what is presented in /dev/multipath, but the UUID is used as a true
distinguishor at g_taste time, thus making sure we don't have chaos
on a shared SAN where everyone names their data multipath as "Fred".

The first of N identical devices (and N *may* be 1!) becomes the active
path until a BIO request is failed with EIO or ENXIO. When this occurs,
the active disk is ripped away and the next in a list is picked to
(retry and) continue with.

During g_taste events new disks that meet the match criteria for existing
multipath geoms get added to the tail end of the list.

Thus, this active/passive setup actually does work for devices which
go away and come back, as do (now) mpt(4) and isp(4) SAN based disks.

There is still a lot to do to improve this- like about 5 of the 12
recommendations I've received about it,  but it's been functional enough
for a while that it deserves a broader test base.

Reviewed by: pjd
Sponsored by: IronPort Systems
MFC: 2 months

17 years agoAdd warning about deadlocks created by use of wakeup_one.
grog [Tue, 27 Feb 2007 02:51:41 +0000 (02:51 +0000)]
Add warning about deadlocks created by use of wakeup_one.

17 years agoMFP4: 115094
jkim [Tue, 27 Feb 2007 02:08:01 +0000 (02:08 +0000)]
MFP4: 115094

Linux does not check file descriptor when MAP_ANONYMOUS is set.
This should fix recent LTP test regressions.

Reported by: Scot Hetzel (swhetzel at gmail dot com)
netchild

17 years agoReplace spaces with tabs in some places.
pjd [Tue, 27 Feb 2007 01:48:58 +0000 (01:48 +0000)]
Replace spaces with tabs in some places.