]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoPass boolean value to __predict_false. Try to keep KSE slot count
davidxu [Tue, 13 Jun 2006 23:01:50 +0000 (23:01 +0000)]
Pass boolean value to __predict_false. Try to keep KSE slot count
correct for migrating thread, the count is a bit mess.

18 years agoUse kern_kldload() and kern_kldunload() to load and unload modules when
jhb [Tue, 13 Jun 2006 21:36:23 +0000 (21:36 +0000)]
Use kern_kldload() and kern_kldunload() to load and unload modules when
we intend for the user to be able to unload them later via kldunload(2)
instead of calling linker_load_module() and then directly adjusting the
ref count on the linker file structure.  This makes the resulting
consumer code simpler and cleaner and better hides the linker internals
making it possible to sanely lock the linker.

18 years agoA couple of minor style tweaks.
jhb [Tue, 13 Jun 2006 21:34:12 +0000 (21:34 +0000)]
A couple of minor style tweaks.

18 years ago- Add a kern_kldload() that is most of the previous kldload() and push
jhb [Tue, 13 Jun 2006 21:28:18 +0000 (21:28 +0000)]
- Add a kern_kldload() that is most of the previous kldload() and push
  Giant down in it.
- Push Giant down in kern_kldunload() and reorganize it slightly to avoid
  using gotos.  Also, expose this function to the rest of the kernel.

18 years ago- Push down Giant some in kldstat().
jhb [Tue, 13 Jun 2006 21:11:12 +0000 (21:11 +0000)]
- Push down Giant some in kldstat().
- Use a 'struct kld_file_stat' on the stack to read data under the lock
  and then do one copyout() w/o holding the lock at the end to push the
  data out to userland.

18 years agoUnexpand TAILQ_FOREACH() and TAILQ_FOREACH_SAFE().
jhb [Tue, 13 Jun 2006 20:49:07 +0000 (20:49 +0000)]
Unexpand TAILQ_FOREACH() and TAILQ_FOREACH_SAFE().

18 years agoRemove some more pointless goto's and don't check to see if
jhb [Tue, 13 Jun 2006 20:27:23 +0000 (20:27 +0000)]
Remove some more pointless goto's and don't check to see if
malloc(M_WAITOK) returns NULL.

18 years agoHandle the simple case of just dropping a reference near the start of
jhb [Tue, 13 Jun 2006 19:45:08 +0000 (19:45 +0000)]
Handle the simple case of just dropping a reference near the start of
linker_file_unload() instead of in the middle of a bunch of code for
the case of dropping the last reference to improve readability and sanity.
While I'm here, remove pointless goto's that were just jumping to a
return statement.

18 years ago- Complete breaking out the definition of bus_space_{tag,handle}_t by
marius [Tue, 13 Jun 2006 19:18:09 +0000 (19:18 +0000)]
- Complete breaking out the definition of bus_space_{tag,handle}_t by
  moving the typedef of bus_space_tag_t from sys/sparc64/include/bus.h
  to sys/sparc64/include/_bus.h. This brings sparc64 in sync with the
  other platforms and fixes the compilation of drivers which include
  <sys/rman.h> before <machine/bus.h> after sys/sys/rman.h rev. 1.34.
- Remove the definition of bus_type_t from sys/sparc64/include/_bus.h
  as it's unused since sys/sparc64/include/bus.h rev. 1.6 and
  sys/sparc64/sparc64/bus_machdep.c rev. 1.3.
- Remove some pointless comments.

18 years agoregen after MFP4 (soc2006/rdivacky_linuxolator) of syscalls.master
netchild [Tue, 13 Jun 2006 18:48:30 +0000 (18:48 +0000)]
regen after MFP4 (soc2006/rdivacky_linuxolator) of syscalls.master

P4-Changes: similar to 98673 and 98675 but regenerated locally
Sponsored by: Google SoC 2006
Submitted by: rdivacky

18 years agoMFP4 (soc2006/rdivacky_linuxolator)
netchild [Tue, 13 Jun 2006 18:43:55 +0000 (18:43 +0000)]
MFP4 (soc2006/rdivacky_linuxolator)

Update of syscall.master:
o Adding of several new dummy syscalls (268-310)
o Synchronization of amd64 syscall.master with i386 one
o Auditing added to amd64 syscall.master
o Change auditing type for lstat syscall (bugfix). [1]

P4-Changes: 98672, 98674
Noticed by: rwatson [1]
Sponsored by: Google SoC 2006
Submitted by: rdivacky

18 years agoCorrect transposed digits in device names which were added in the
marius [Tue, 13 Jun 2006 18:40:39 +0000 (18:40 +0000)]
Correct transposed digits in device names which were added in the
previous revision.

18 years agoFreeBSD/sparc64 supports the Ultra1 (with a serial console) on (at
bmah [Tue, 13 Jun 2006 17:49:33 +0000 (17:49 +0000)]
FreeBSD/sparc64 supports the Ultra1 (with a serial console) on (at
least) 6.1-RELEASE, so move it to the "supported" list.

Submitted by: Gheorghe Ardelean ardelean at ww.uni-erlangen.de

18 years agoMake traceroute decode all the ICMP unreachable messages defined
dwmalone [Tue, 13 Jun 2006 14:59:07 +0000 (14:59 +0000)]
Make traceroute decode all the ICMP unreachable messages defined
in http://www.iana.org/assignments/icmp-parameters. Thankfully
IANA's list aggrees with <netinet/ip_icmp.h>.

I've tried to do this in a way which is mostly consistent with
tcptraceroute and Debian's version of traceroute. However, sometimes
a letter is used twice by these versions, so I've gone with:

                                LBL     tcptr   Debian          (chosen)
ICMP_UNREACH_NET                !N      !N      !N              !N
ICMP_UNREACH_HOST               !H      !H      !H              !H
ICMP_UNREACH_PROTOCOL           !P      !P      !P              !P
ICMP_UNREACH_PORT               !       !p      !               !
ICMP_UNREACH_NEEDFRAG           !F-%d   !F      !F-<%d>         !F-<%d>
ICMP_UNREACH_SRCFAIL            !S      !S      !S              !S
ICMP_UNREACH_NET_UNKNOWN        !<%d>   !U      !<%d>           !U
ICMP_UNREACH_HOST_UNKNOWN       !<%d>   !U      !<%d>           !W
ICMP_UNREACH_ISOLATED           !<%d>   !I      !I              !I
ICMP_UNREACH_NET_PROHIB         !<%d>   !A      !A              !A
ICMP_UNREACH_HOST_PROHIB        !<%d>   !C      !C              !Z
ICMP_UNREACH_TOSNET             !<%d>   !T      !T              !Q
ICMP_UNREACH_TOSHOST            !<%d>   !T      !T              !T
ICMP_UNREACH_FILTER_PROHIB      !X      !A      !A              !X
ICMP_UNREACH_HOST_PRECEDENCE    !V      !<%d>   !V              !V
ICMP_UNREACH_PRECEDENCE_CUTOFF  !C      !<%d>   !C              !C

Graham Wilson is planning to use the same codes in Debian's version.

MFC after: 3 weeks

18 years agoo There are two methods to get a process credentials over the unix
maxim [Tue, 13 Jun 2006 14:33:35 +0000 (14:33 +0000)]
o There are two methods to get a process credentials over the unix
sockets:

1) A sender sends SCM_CREDS message to a reciever, struct cmsgcred;
2) A reciever sets LOCAL_CREDS socket option and gets sender
credentials in control message, struct sockcred.

Both methods use the same control message type SCM_CREDS with the
same control message level SOL_SOCKET, so they are indistinguishable
for the receiver.  A difference in struct cmsgcred and struct sockcred
layouts may lead to unwanted effects.

Now for sockets with LOCAL_CREDS option remove all previous linked
SCM_CREDS control messages and then add a control message with
struct sockcred so the process specifically asked for the peer
credentials by LOCAL_CREDS option always gets struct sockcred.

PR: kern/90800
Submitted by: Andrey Simonenko
Regres. tests: tools/regression/sockets/unix_cmsg/
MFC after: 1 month

18 years agoFix missing \n and when there are no arg's that means just print out
ambrisko [Tue, 13 Jun 2006 14:27:52 +0000 (14:27 +0000)]
Fix missing \n and when there are no arg's that means just print out
the description so we don't have to do any more queries.  Disable the
event query code until it figured out since but it is similar to the
AEN detail so we should be able to get that working.

18 years agos/MYRI10GE/MXGE/ and a typo fixed.
brueffer [Tue, 13 Jun 2006 14:23:13 +0000 (14:23 +0000)]
s/MYRI10GE/MXGE/ and a typo fixed.

18 years ago- Complete the myri10ge -> mxge name change by doing a mechanical
gallatin [Tue, 13 Jun 2006 13:53:52 +0000 (13:53 +0000)]
- Complete the myri10ge -> mxge name change by doing a mechanical
  s/myri10ge/mxge/g replacement in the myri10ge files.  A few contuation
  lines were joined because of the regained columns.
- Hook the mxge driver back to the build.

18 years agoAdd scheduler CORE, the work I have done half a year ago, recent,
davidxu [Tue, 13 Jun 2006 13:12:56 +0000 (13:12 +0000)]
Add scheduler CORE, the work I have done half a year ago, recent,
I picked it up again. The scheduler is forked from ULE, but the
algorithm to detect an interactive process is almost completely
different with ULE, it comes from Linux paper "Understanding the
Linux 2.6.8.1 CPU Scheduler", although I still use same word
"score" as a priority boost in ULE scheduler.

Briefly, the scheduler has following characteristic:
1. Timesharing process's nice value is seriously respected,
   timeslice and interaction detecting algorithm are based
   on nice value.
2. per-cpu scheduling queue and load balancing.
3. O(1) scheduling.
4. Some cpu affinity code in wakeup path.
5. Support POSIX SCHED_FIFO and SCHED_RR.
Unlike scheduler 4BSD and ULE which using fuzzy RQ_PPQ, the scheduler
uses 256 priority queues. Unlike ULE which using pull and push, the
scheduelr uses pull method, the main reason is to let relative idle
cpu do the work, but current the whole scheduler is protected by the
big sched_lock, so the benefit is not visible, it really can be worse
than nothing because all other cpu are locked out when we are doing
balancing work, which the 4BSD scheduelr does not have this problem.
The scheduler does not support hyperthreading very well, in fact,
the scheduler does not make the difference between physical CPU and
logical CPU, this should be improved in feature. The scheduler has
priority inversion problem on MP machine, it is not good for
realtime scheduling, it can cause realtime process starving.
As a result, it seems the MySQL super-smack runs better on my
Pentium-D machine when using libthr, despite on UP or SMP kernel.

18 years agoo Sort .Xrs.
maxim [Tue, 13 Jun 2006 12:49:14 +0000 (12:49 +0000)]
o Sort .Xrs.

18 years agoAdd xref to statfs(2)
phk [Tue, 13 Jun 2006 12:23:22 +0000 (12:23 +0000)]
Add xref to statfs(2)

18 years agoRespect FETCH_BIND_ADDRESS when opening the data connection.
des [Tue, 13 Jun 2006 10:21:03 +0000 (10:21 +0000)]
Respect FETCH_BIND_ADDRESS when opening the data connection.

PR: misc/98872

18 years agoFix a bug introduced in rev 1.92, where, when changing from one directory
des [Tue, 13 Jun 2006 10:19:59 +0000 (10:19 +0000)]
Fix a bug introduced in rev 1.92, where, when changing from one directory
to another, the first CWD after a string of CDUPs would incorrectly include
a slash before the directory name.

Reported by: obrien
PR: bin/83278

18 years agoHandle MFS_IMAGE in the ${FULLKERNEL} target, so that we can build kernel
cognet [Tue, 13 Jun 2006 00:57:10 +0000 (00:57 +0000)]
Handle MFS_IMAGE in the ${FULLKERNEL} target, so that we can build kernel
with MFS root without debugging.

18 years agoBurying UNIX--a quote by Rob Pike,
grog [Mon, 12 Jun 2006 23:28:52 +0000 (23:28 +0000)]
Burying UNIX--a quote by Rob Pike,

Seen on The UNIX Heritage Society mailing list.

18 years agoMFp4:
cognet [Mon, 12 Jun 2006 22:58:50 +0000 (22:58 +0000)]
MFp4:
- Try hard to calculate a safe sp, so that the stack doesn't get smashed
while uncompressing or relocating the kernel.
- Bring in code needed to calculate the cacheline size etc, needed for
arm9_idcache_wbinv_all.

18 years agoMFp4: Increase the L1 pagetable needed for the kernel from 8 to 22, to be
cognet [Mon, 12 Jun 2006 22:57:24 +0000 (22:57 +0000)]
MFp4: Increase the L1 pagetable needed for the kernel from 8 to 22, to be
able to boot fat kernels.

18 years agoUse bit operations to get a locally administered address rather than using a
thompsa [Mon, 12 Jun 2006 22:43:37 +0000 (22:43 +0000)]
Use bit operations to get a locally administered address rather than using a
hardcoded OUI code.

18 years agoAllow variable amounts of verbosity.
obrien [Mon, 12 Jun 2006 22:39:32 +0000 (22:39 +0000)]
Allow variable amounts of verbosity.

18 years agoUse fget() in kqueue_register() instead of doing all the work by hand.
jhb [Mon, 12 Jun 2006 21:46:23 +0000 (21:46 +0000)]
Use fget() in kqueue_register() instead of doing all the work by hand.

18 years agoMake the ISAPNP code optional and only enable it on i386 and pc98 (used
marius [Mon, 12 Jun 2006 21:07:13 +0000 (21:07 +0000)]
Make the ISAPNP code optional and only enable it on i386 and pc98 (used
for CBUS-PNP cards there) by default, as there are no amd64 and sparc64
machines with ISA slots and which therefore could make use of this code
known to exist. For sparc64 this additionally allows to get rid of the
compat shims for in{b,w,l}()/out{b,w,l}() etc and the associated hacks.

OK'ed by: imp, peter

18 years agoDon't strip a leading ./ from the path for the cd builtin to avoid interpreting
stefanf [Mon, 12 Jun 2006 21:06:00 +0000 (21:06 +0000)]
Don't strip a leading ./ from the path for the cd builtin to avoid interpreting
.//dir as /dir.  Rather strip it only for the purpose of checking if the
directory path should be printed.

PR: 88813
Submitted by: Josh Elsasser
Patch from: NetBSD (cd.c rev 1.38)
MFC after: 2 weeks

18 years agoAdd two little nuggets of wisdom I picked up at work today:
philip [Mon, 12 Jun 2006 21:02:19 +0000 (21:02 +0000)]
Add two little nuggets of wisdom I picked up at work today:

  The three most dangerous things in the world are a programmer with a
  soldering iron, a hardware type with a program patch and a user with
  an idea. -- The Wizardry Compiled by Rick Cook

  and

  Debugging is anticipated with distaste, performed with reluctance, and
  bragged about forever. -- Button at the Boston Computer Museum

I wonder why people call me a cynic. ;-)

18 years agoEnable a few more things in x86 NOTES to get broader LINT coverage:
jhb [Mon, 12 Jun 2006 20:38:17 +0000 (20:38 +0000)]
Enable a few more things in x86 NOTES to get broader LINT coverage:
- Turn on iwi(4), ipw(4), and ndis(4) on amd64 and i386.
- Turn on ral(4) and ural(4) on i386, pc98, and amd64.

18 years agoForcefully turn off GPROF in this file if it is enabled as GPROF's
jhb [Mon, 12 Jun 2006 20:35:59 +0000 (20:35 +0000)]
Forcefully turn off GPROF in this file if it is enabled as GPROF's
attempt to use a macro for 'ret' doesn't play well with the wrappers
trying to implement 'Pascal-style' calling conventions.

18 years agoSome machines have an ESCC. Make sure we build uart(4) with support
marcel [Mon, 12 Jun 2006 20:10:46 +0000 (20:10 +0000)]
Some machines have an ESCC. Make sure we build uart(4) with support
for the z8530.

18 years agoDon't invalidate the TLB in pmap_qenter() unless the old mapping was valid.
alc [Mon, 12 Jun 2006 20:05:27 +0000 (20:05 +0000)]
Don't invalidate the TLB in pmap_qenter() unless the old mapping was valid.
Most often, it isn't.

Reviewed by: tegge@

18 years agoNeed machine/bus.h here too
imp [Mon, 12 Jun 2006 19:22:44 +0000 (19:22 +0000)]
Need machine/bus.h here too

18 years agoAdd the model name, obtained from the hw.model sysctl variable.
des [Mon, 12 Jun 2006 18:14:49 +0000 (18:14 +0000)]
Add the model name, obtained from the hw.model sysctl variable.

MFC after: 3 weeks

18 years agoCheck in file missed in last commit. It made it into the MFC properly
njl [Mon, 12 Jun 2006 17:13:57 +0000 (17:13 +0000)]
Check in file missed in last commit.  It made it into the MFC properly
though.

18 years agoMFp4: need machine/bus.h here since we use bus space macros. It used to
imp [Mon, 12 Jun 2006 14:46:44 +0000 (14:46 +0000)]
MFp4: need machine/bus.h here since we use bus space macros.  It used to
be brought in by name-space polluted sys/rman.h.

Pointy hat to: imp

18 years agoWho am I to correct the native speakers... anyway, s/council/counsel/
wilko [Mon, 12 Jun 2006 13:44:17 +0000 (13:44 +0000)]
Who am I to correct the native speakers... anyway, s/council/counsel/

Noted by: des

18 years agoAny sufficiently simple directive can be obfuscated beyond reason
wilko [Mon, 12 Jun 2006 07:56:33 +0000 (07:56 +0000)]
Any sufficiently simple directive can be obfuscated beyond reason
given proper legal council.

- Alfred Perlstein

18 years agoMFp4:
imp [Mon, 12 Jun 2006 04:30:42 +0000 (04:30 +0000)]
MFp4:
o Implement a bunch of sysctl's to report the information
  that's now always reported.  Mvoe reporting of that info
  to bootverbose, but maybe it can go away entirely.
   dev.ed.X.type: string name
   dev.ed.X.TxMem: amount of memory used for tx side of the card
   dev.ed.X.RxMem: amount of memory used for rx side of the card
dev.ed.X.Mem: Total amount of mem on card.
o Better comments about where NE-2000 (and clones) gets their MAC
  address from.

18 years agoAdd the ability to subset the devices that UART pulls in. This allows
imp [Mon, 12 Jun 2006 04:21:50 +0000 (04:21 +0000)]
Add the ability to subset the devices that UART pulls in.  This allows
the arm to compile without all the extras that don't appear, at least
not in the flavors of ARM I deal with.  This helps us save about 100k.

If I've botched the available devices on a platform, please let me
know and I'll correct ASAP.

18 years agoAdd a convenience function rman_init_from_resource for initializing
imp [Mon, 12 Jun 2006 04:06:21 +0000 (04:06 +0000)]
Add a convenience function rman_init_from_resource for initializing
a rman from a resource.

Also, include _bus.h since the implementation of bus_space isn't
needed here, just the definitions of the types.

18 years agoBetter printf
imp [Mon, 12 Jun 2006 04:00:33 +0000 (04:00 +0000)]
Better printf

18 years agoMinor cleanup of CIS parsing.
imp [Mon, 12 Jun 2006 03:28:42 +0000 (03:28 +0000)]
Minor cleanup of CIS parsing.

18 years agoBetter error message when the CIS is a non-standards conforming '0'.
imp [Mon, 12 Jun 2006 03:20:44 +0000 (03:20 +0000)]
Better error message when the CIS is a non-standards conforming '0'.

18 years agoWhen we can't parse the CIS, note with a warning that the bogus CIS
imp [Mon, 12 Jun 2006 03:17:24 +0000 (03:17 +0000)]
When we can't parse the CIS, note with a warning that the bogus CIS
was ignored, rather than freaking out.  In the past, it wasn't possible
to not parse the CIS, so this changes no behavior.

18 years agoUpdate release note: KDE 3.5.3.
bmah [Mon, 12 Jun 2006 01:38:49 +0000 (01:38 +0000)]
Update release note:  KDE 3.5.3.

18 years agoMake cm(4) driver MPSAFE.
fjoe [Sun, 11 Jun 2006 22:25:01 +0000 (22:25 +0000)]
Make cm(4) driver MPSAFE.

18 years agoFix KASSERT conditions in if_deregister_com_alloc().
fjoe [Sun, 11 Jun 2006 22:09:28 +0000 (22:09 +0000)]
Fix KASSERT conditions in if_deregister_com_alloc().

18 years agoo Finally learn how to spell "privileges".
maxim [Sun, 11 Jun 2006 21:13:49 +0000 (21:13 +0000)]
o Finally learn how to spell "privileges".

English trainer: ceri

18 years agoo Add missed $start variable in the grep statement back.
maxim [Sun, 11 Jun 2006 20:39:12 +0000 (20:39 +0000)]
o Add missed $start variable in the grep statement back.

PR: conf/96658
Submitted by: James Snow
MFC after: 1 week

18 years agoBy default, don't disable ACPI during reboot. This appears to hang some
njl [Sun, 11 Jun 2006 20:31:41 +0000 (20:31 +0000)]
By default, don't disable ACPI during reboot.  This appears to hang some
systems.  Introduce a new sysctl "hw.acpi.disable_on_reboot" that allows
users to re-enable the old behavior in case it's needed for some systems.
We never disable in the power-off path.

Original approach submitted by Alexander Logvinov <abuse@akavia.ru> with
reworking by Jung-uk Kim and myself.

18 years agoo Spell "privledges" correctly. Re-style comment.
maxim [Sun, 11 Jun 2006 20:17:18 +0000 (20:17 +0000)]
o Spell "privledges" correctly.  Re-style comment.

18 years agoo vinum.8 -> gvinum.8 as the former was replaced by the latter.
maxim [Sun, 11 Jun 2006 19:41:07 +0000 (19:41 +0000)]
o vinum.8 -> gvinum.8 as the former was replaced by the latter.

PR: docs/98340
MFC after: 1 week

18 years agoFix display of idle processes, which had been broken since rev. 1.56 of
se [Sun, 11 Jun 2006 19:18:39 +0000 (19:18 +0000)]
Fix display of idle processes, which had been broken since rev. 1.56 of
machine.c. The traditional condition was (pctcpu > 0 || SRUN), but the
negation of the condition logic (from select to skip) made this come
out as (pctcpu > 0 && SRUN), leading to a very erratic display, except
for purely CPU bound processes.

This has been discussed in the mail lists some time ago and I have used
top with this patch on my systems for more than a year without problems
(just forgot to commit it earlier, since my systems were all fixed ...).

18 years agoo Sync usage() with reality.
maxim [Sun, 11 Jun 2006 17:40:25 +0000 (17:40 +0000)]
o Sync usage() with reality.

18 years agoo Fix typo.
maxim [Sun, 11 Jun 2006 15:53:36 +0000 (15:53 +0000)]
o Fix typo.

Obtained from: DragonFlyBSD

18 years agoThe monetary decimal point (mon_decimal_point) for pt_PT.ISO8859-1
simon [Sun, 11 Jun 2006 14:43:18 +0000 (14:43 +0000)]
The monetary decimal point (mon_decimal_point) for pt_PT.ISO8859-1
should be a comma (,) and not a dot (.).

PR: misc/98813
Submitted by: Rui Lopes <rgl@ruilopes.com>
MFC after: 1 week
Approved by: cperciva (mentor)

18 years agoUse IP addresses out of "TEST-NET" (for use in documentation and
bz [Sun, 11 Jun 2006 12:57:41 +0000 (12:57 +0000)]
Use IP addresses out of "TEST-NET" (for use in documentation and
example code) [RFC3330].

Reviewed by: simon

18 years agoSpecify default path for SHLIBDIR before bsd.own.mk does.
akiyama [Sun, 11 Jun 2006 09:14:06 +0000 (09:14 +0000)]
Specify default path for SHLIBDIR before bsd.own.mk does.
This fix shared library installed correct place.

18 years agoCross-reference src.conf(5).
jkoshy [Sun, 11 Jun 2006 08:30:38 +0000 (08:30 +0000)]
Cross-reference src.conf(5).

18 years agoRemove pmap_pagedaemon_waken and update pmap_get_pv_entry() to match the
alc [Sun, 11 Jun 2006 04:53:06 +0000 (04:53 +0000)]
Remove pmap_pagedaemon_waken and update pmap_get_pv_entry() to match the
current interface with the machine-independent layer.  Without this change,
the page daemon would only have been awakened the first time that the
number of pv entries went above the high water mark, not each time.

18 years agoEliminate spl calls.
alc [Sun, 11 Jun 2006 04:14:36 +0000 (04:14 +0000)]
Eliminate spl calls.

18 years agoImplement vnode operations for setting and removing extended attributes.
rodrigc [Sun, 11 Jun 2006 03:32:50 +0000 (03:32 +0000)]
Implement vnode operations for setting and removing extended attributes.

18 years agoRestore routines for getting and listing extended attributes which
rodrigc [Sun, 11 Jun 2006 00:55:32 +0000 (00:55 +0000)]
Restore routines for getting and listing extended attributes which
were lost in the last merge.

18 years agoRestore changes to spinlock macros before merge.
rodrigc [Sun, 11 Jun 2006 00:54:35 +0000 (00:54 +0000)]
Restore changes to spinlock macros before merge.

18 years agoRemove debugging printf
rodrigc [Sun, 11 Jun 2006 00:19:00 +0000 (00:19 +0000)]
Remove debugging printf

18 years agoAdd PCI ids for the FC919X
mjacob [Sat, 10 Jun 2006 23:45:31 +0000 (23:45 +0000)]
Add PCI ids for the FC919X

MFC after: 1 week

18 years agoTemporarily disable log recovery until we fix panics.
rodrigc [Sat, 10 Jun 2006 23:40:58 +0000 (23:40 +0000)]
Temporarily disable log recovery until we fix panics.

18 years agoLogical OR the following flags into the va_mode field:
rodrigc [Sat, 10 Jun 2006 23:10:55 +0000 (23:10 +0000)]
Logical OR the following flags into the va_mode field:
S_IFDIR when making a directory
S_IFLNK when making a symbolic link
S_IFIFO when making a pipe

xfs_ialloc() checks this field for these flags when figuring
out whether to make a directory, make a symbolic link or make a pipe.

18 years agoMove the new flags field to the end of the structure to maintain
iedowse [Sat, 10 Jun 2006 19:23:49 +0000 (19:23 +0000)]
Move the new flags field to the end of the structure to maintain
ABI compatibility.

Suggested by: mlaier (and forgotten by me)

18 years agoCall g_vfs_close() if:
rodrigc [Sat, 10 Jun 2006 19:04:21 +0000 (19:04 +0000)]
Call g_vfs_close() if:
(1)  _xfs_mount() fails
(2)  at the end of _xfs_unmount()

18 years agoDo not call vput() after we call VOP_UNLOCK().
rodrigc [Sat, 10 Jun 2006 19:02:13 +0000 (19:02 +0000)]
Do not call vput() after we call VOP_UNLOCK().

18 years agoHold on to firmware images until the interface detaches since
iedowse [Sat, 10 Jun 2006 17:29:40 +0000 (17:29 +0000)]
Hold on to firmware images until the interface detaches since
firmware_get() will not work while resuming. Note that we can't
simply drop the FIRMWARE_UNLOAD flag, because that will result in
a firmware image that can never be unloaded by the user since the
firmware subsystem will hold a linker reference to it (it's not
clear that firmware_put() without FIRMWARE_UNLOAD ever does quite
what you'd want).

18 years agoKeep firmware images on the list until they have been unregistered
iedowse [Sat, 10 Jun 2006 17:04:07 +0000 (17:04 +0000)]
Keep firmware images on the list until they have been unregistered
with firmware_unregister(). Previously when the last driver reference
had been dropped we would clear the list entry under the assumption
that the firmware module was about to be unloaded, but this was not
true if the firmware image had been loaded manually with kldload.

This makes it possible to manually kldload firmware images as a
workaround for drivers such as ipw that attempt to load firmware
while resuming after a suspend.

Reviewed by: mlaier (an earlier version of the patch)

18 years agoBe explicit about which chips support jumbo frames.
brueffer [Sat, 10 Jun 2006 15:14:12 +0000 (15:14 +0000)]
Be explicit about which chips support jumbo frames.

Suggested by: Brad Smith
Obtained from: OpenBSD
MFC after: 3 days

18 years agoNew release notes: i386 boot loader corruption fix, my(4) ALTQ
bmah [Sat, 10 Jun 2006 14:49:44 +0000 (14:49 +0000)]
New release notes:  i386 boot loader corruption fix, my(4) ALTQ
support, geli(8) data authentication and option flag change,

MFCs noted:  du(1) -n, getent(1).

Updated release notes:  OpenBSM 1.0a6, new manpage (device_get_sysctl(9)).

18 years agoMove some functions and definitions from uipc_socket2.c to uipc_socket.c:
rwatson [Sat, 10 Jun 2006 14:34:07 +0000 (14:34 +0000)]
Move some functions and definitions from uipc_socket2.c to uipc_socket.c:

- Move sonewconn(), which creates new sockets for incoming connections on
  listen sockets, so that all socket allocate code is together in
  uipc_socket.c.

- Move 'maxsockets' and associated sysctls to uipc_socket.c with the
  socket allocation code.

- Move kern.ipc sysctl node to uipc_socket.c, add a SYSCTL_DECL() for it
  to sysctl.h and remove lots of scattered implementations in various
  IPC modules.

- Sort sodealloc() after soalloc() in uipc_socket.c for dependency order
  reasons.  Statisticize soalloc() and sodealloc() as they are now
  required only in uipc_socket.c, and are internal to the socket
  implementation.

After this change, socket allocation and deallocation is entirely
centralized in one file, and uipc_socket2.c consists entirely of socket
buffer manipulation and default protocol switch functions.

MFC after: 1 month

18 years agoFix a typo s/Made/Make. Use .Pp for a line break, it will quiet the
trhodes [Sat, 10 Jun 2006 09:45:26 +0000 (09:45 +0000)]
Fix a typo s/Made/Make.  Use .Pp for a line break, it will quiet the
mdoc(7) warning.

18 years ago* Ask for a page-aligned page instead of an arbitrary address. This should
njl [Sat, 10 Jun 2006 08:20:17 +0000 (08:20 +0000)]
* Ask for a page-aligned page instead of an arbitrary address.  This should
  not be necessary but might be helpful and at least reduce fragmentation.
* Add an assert to detect if the wakecode ever grows too big.  We include
  1 KB for stack, which should be more than enough also.
* Remove unnecessary initialization of static variables.
* Add comments and a bootverbose print giving the page phys address.

18 years agoMinor tweaks to the resume code. Previous commit reverted alignment back
njl [Sat, 10 Jun 2006 08:20:03 +0000 (08:20 +0000)]
Minor tweaks to the resume code.  Previous commit reverted alignment back
to 4.  There is no need to be more strict at assembly time since we copy
the code anyway to a private page.

* Clear the direction flag and eflags.  Probably not necessary but it won't
  hurt to be safe.
* Add prefixes to all instructions to prevent any assembler mistakes.
* Remove zeroing of eax - edi.  We use those registers immediately after
  to transfer values to protected mode so this was pointless.
* Update comments to reflect info found during code review.

18 years agoMove the reset beep tunable/sysctl to debug.acpi.resume_beep. This makes
njl [Sat, 10 Jun 2006 08:06:16 +0000 (08:06 +0000)]
Move the reset beep tunable/sysctl to debug.acpi.resume_beep.  This makes
more sense than under hw.acpi.  Also, document this in the man page.

18 years agoMinor sysctl cleanup. The RW flag means read|write and so it is redundant
njl [Sat, 10 Jun 2006 08:04:38 +0000 (08:04 +0000)]
Minor sysctl cleanup.  The RW flag means read|write and so it is redundant
to add the RD flag.  Also, the debug node does not need to be writable.

18 years agoEnable debug.mpsafevm on arm by default.
alc [Sat, 10 Jun 2006 05:29:37 +0000 (05:29 +0000)]
Enable debug.mpsafevm on arm by default.

Tested by: cognet@

18 years agoAdd a lock assertion. Remove dead (locking) code. Change some white
alc [Sat, 10 Jun 2006 05:20:18 +0000 (05:20 +0000)]
Add a lock assertion.  Remove dead (locking) code.  Change some white
space.

Reviewed by: cognet@

18 years agoMinor style tweaks while nearby. Namely ANSIfy and parens on return values.
jmallett [Sat, 10 Jun 2006 01:44:57 +0000 (01:44 +0000)]
Minor style tweaks while nearby.  Namely ANSIfy and parens on return values.

18 years agoRather than using specified_ro to parse the options list an extra time, and
jmallett [Sat, 10 Jun 2006 01:37:00 +0000 (01:37 +0000)]
Rather than using specified_ro to parse the options list an extra time, and
keeping a flag to check whether we actually wanted to mount the filesystem
readonly, setup the options list so that we start off by assuming rw is what's
desired and let later flags change that.

18 years agoAdd ability to reset individual devices and fix SCSI speed negotiation.
jkim [Fri, 9 Jun 2006 23:11:43 +0000 (23:11 +0000)]
Add ability to reset individual devices and fix SCSI speed negotiation.

Reviewed by: mjacob (initial version)

18 years agoDon't build IPv6 support if we have choosen not to have it.
delphij [Fri, 9 Jun 2006 18:11:29 +0000 (18:11 +0000)]
Don't build IPv6 support if we have choosen not to have it.

18 years agoDon't expect that 'device random' will compile in those files into the
pjd [Fri, 9 Jun 2006 17:36:50 +0000 (17:36 +0000)]
Don't expect that 'device random' will compile in those files into the
kernel for us. If random is compiled as kernel module, geom_bde.ko cannot
be loaded.

Reported by: Michal Suszko <michal@dry.pl>

18 years agoo Fix grammar, format.
maxim [Fri, 9 Jun 2006 17:03:24 +0000 (17:03 +0000)]
o Fix grammar, format.

18 years agoDocument the way to get list of files to process from the stdin.
kib [Fri, 9 Jun 2006 16:11:23 +0000 (16:11 +0000)]
Document the way to get list of files to process from the stdin.

MFC after: 1 week
Approved by: kan (mentor)

18 years agoCopy filename read from the stdin into the private buffer. Otherwise,
kib [Fri, 9 Jun 2006 16:09:26 +0000 (16:09 +0000)]
Copy filename read from the stdin into the private buffer. Otherwise,
next read filename overwrite previous one, resulting in acl being
applied only to the last name in the list.

Submitted by: Oleg Lomaka <oleg.lomaka at gmail com>
MFC after: 1 week
Approved by: kan (mentor)

18 years agoo Remove a cruft prevented libpthread sigaction(2) wrapper to
maxim [Fri, 9 Jun 2006 14:23:40 +0000 (14:23 +0000)]
o Remove a cruft prevented libpthread sigaction(2) wrapper to
do its work for SIGINFO.  Always install libpthread signal handler
wrapper for SIGINFO even if user SIG_IGN's or SIG_DFL's it.

SIGINFO has a special meaning for libpthread: when LIBPTHREAD_DEBUG
enviroment variable defined it is used for dumping an information
about threads to /tmp/.

Reported by: mi
Reviewed by: deischen
MFC after: 2 weeks

18 years agoo Re-arrange parentheses and fix a conition logic for !do_dns case.
maxim [Fri, 9 Jun 2006 14:01:07 +0000 (14:01 +0000)]
o Re-arrange parentheses and fix a conition logic for !do_dns case.

PR: bin/98625
MFC after: 1 month

18 years agoTweak mfc.pl to generate backout patchsets.
flz [Fri, 9 Jun 2006 10:59:54 +0000 (10:59 +0000)]
Tweak mfc.pl to generate backout patchsets.

Approved by: cperciva (mentor)