dragonfly.git
14 years agohammer viconfig: remove 2nd 'rebalance'
Thomas Nikolajsen [Mon, 16 Nov 2009 21:16:29 +0000 (22:16 +0100)]
hammer viconfig: remove 2nd 'rebalance'

it will be skipped anyway, period hasn't passed since 1st 'rebalance' run.

14 years agops: Sync usage() to SYNOPSIS
Thomas Nikolajsen [Sun, 15 Nov 2009 14:47:38 +0000 (15:47 +0100)]
ps: Sync usage() to SYNOPSIS

14 years agoktrace.2: Add description of kern.ktrace_suid
Thomas Nikolajsen [Sun, 15 Nov 2009 14:29:45 +0000 (15:29 +0100)]
ktrace.2: Add description of kern.ktrace_suid

14 years agohostname.1: Fix markup
Thomas Nikolajsen [Sun, 15 Nov 2009 12:54:55 +0000 (13:54 +0100)]
hostname.1: Fix markup

14 years agoSync zoneinfo database with tzdata2009s from elsie.
Sascha Wildner [Mon, 16 Nov 2009 21:29:24 +0000 (22:29 +0100)]
Sync zoneinfo database with tzdata2009s from elsie.

antarctica:     8.6  -> 8.7
australasia:    8.14 -> 8.15

* Fiji will re-introduce DST from November 29, 2009 to April 25, 2010

* Cosmetic change in 'antarctica' (2:0 -> 2:00)

14 years agoundo.1: Add some words about the new fake transaction id warning.
Sascha Wildner [Mon, 16 Nov 2009 21:18:17 +0000 (22:18 +0100)]
undo.1: Add some words about the new fake transaction id warning.

Suggested-by: polachok
While here, add an "EXIT STATUS" section and fix a sentence about
hammer synctid (filesystem argument is not optional).

14 years agoAttempt to fix "ACPI Warning: Cannot release the ACPI Global Lock"
Alexander Polakov [Mon, 16 Nov 2009 19:12:14 +0000 (22:12 +0300)]
Attempt to fix "ACPI Warning: Cannot release the ACPI Global Lock"

Reported-by: Edward O'Callaghan <eocallaghan@auroraux.org>
14 years agoundo: fix hanging on fake transaction ids.
Alexander Polakov [Mon, 16 Nov 2009 19:07:39 +0000 (22:07 +0300)]
undo: fix hanging on fake transaction ids.

Reported-by: Justin Sherrill <justin@shiningsilence.com>
14 years agoSSHD - Do not attempt to free environ or its contents
Matthew Dillon [Mon, 16 Nov 2009 02:38:11 +0000 (18:38 -0800)]
SSHD - Do not attempt to free environ or its contents

* DragonFly's libc manages environ in such a way that if sshd attempts to
  free it, libc blows up and causes sshd to crash.

* This may not be the best fix but for now I really do not want to
  completely rewrite libc's environment handling code.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
14 years agoCover some of the recently added ACPI modules by the LINT build.
Sascha Wildner [Mon, 16 Nov 2009 02:12:34 +0000 (03:12 +0100)]
Cover some of the recently added ACPI modules by the LINT build.

While here, add some better descriptions for ACPI stuff in LINT (taken
from FreeBSD).

14 years agoHAMMER VFS - Remove some debug kprintfs from the rebalance code
Matthew Dillon [Sun, 15 Nov 2009 20:26:52 +0000 (12:26 -0800)]
HAMMER VFS - Remove some debug kprintfs from the rebalance code

* Remove two debug kprintf()s for cases which have now been well tested.

14 years agoSSHD - Change default security
Matthew Dillon [Sun, 15 Nov 2009 18:33:06 +0000 (10:33 -0800)]
SSHD - Change default security

This only effects fresh installs.

* Allow root logins via public key only (previously: root logins not allowed
  at all via ssh).  I've done this for years, it allows an authorized_keys
  file in ~root/.ssh to work without having to adjust /etc/ssh/sshd_config
  on every install.

* Do not allow any login, root or otherwise, via tunneled plaintext password
  (previously: non-root logins were allowed via plaintext password).

  Often people want plaintext passwords on e.g. workstations for xdm or
  console logins, but do not want to allow their use over networked
  connections.  Since tunneled plaintext passwords are not considered very
  secure and alternatives exist (aka public key logins) we now disallow
  them by default.

14 years agoMerge commit 'crater/master'
Aggelos Economopoulos [Sat, 14 Nov 2009 21:03:44 +0000 (23:03 +0200)]
Merge commit 'crater/master'

14 years agoMerge branch 'less_update'
Aggelos Economopoulos [Sat, 14 Nov 2009 21:00:40 +0000 (23:00 +0200)]
Merge branch 'less_update'

14 years agoMerge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly
Aggelos Economopoulos [Sat, 14 Nov 2009 20:58:43 +0000 (22:58 +0200)]
Merge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly

14 years agokernconf.5,config.8: minor cleanup
Thomas Nikolajsen [Sat, 14 Nov 2009 14:59:45 +0000 (15:59 +0100)]
kernconf.5,config.8: minor cleanup

 * sort FILES section

 * add X86_64_GENERIC to config.8 & mention that GENERIC is i386 specific

 * mandoc(1) clean kerconf.5 by removing .Xo / .Xc & other minor things

14 years agohammer: minor doc update
Thomas Nikolajsen [Sat, 14 Nov 2009 14:43:51 +0000 (15:43 +0100)]
hammer: minor doc update

 * SYNOPSIS for -f changed to just '-f blkdevs'

 * sync SYNOPSIS & usage()

 * s/filesystem/file system/ (was already used in most places)

 * add description for show-undo

 * fix a few minor typos

14 years agohammer info: align display, include PFS#0 & show correct snapshot count
Thomas Nikolajsen [Sat, 14 Nov 2009 14:08:46 +0000 (15:08 +0100)]
hammer info: align display, include PFS#0 & show correct snapshot count

 * show snapshot count for HAMMER version 2- & 3+

 * fix snapshot count for HAMMER version 3+

 * show HAMMER version

 * show inode count

 * show PFS #0 (HAMMER FS)

 * align display

14 years agoman pages: remove reference to /usr/share/doc/{psd,smm,usd}
Thomas Nikolajsen [Sat, 14 Nov 2009 09:55:14 +0000 (10:55 +0100)]
man pages: remove reference to /usr/share/doc/{psd,smm,usd}

/usr/share/doc/{psd,smm,usd}, 4.4BSD documents apart from man pages,
haven't been installed on DragonFly for several years.

Also improve references for articles to make it easier searching them.

14 years agobusdma: Put alignment/boundary check failure under bootverbose
Thomas Nikolajsen [Wed, 11 Nov 2009 19:50:36 +0000 (20:50 +0100)]
busdma: Put alignment/boundary check failure under bootverbose

Handle pc64 and vkernel platforms like pc32 was done in
e94a9b8c37942b871eb5b23f0643bce535926862

14 years agohammer: hammer_recover_stage2() may only be called for read-write mounts
Thomas Nikolajsen [Wed, 11 Nov 2009 17:56:47 +0000 (18:56 +0100)]
hammer: hammer_recover_stage2() may only be called for read-write mounts

This fixes panic doing readonly mount.

14 years agoInclude pkgin(1) as part of the official distribution.
Sascha Wildner [Sat, 14 Nov 2009 10:17:20 +0000 (11:17 +0100)]
Include pkgin(1) as part of the official distribution.

pkgin is a useful tool for installing/upgrading packages and their
dependencies, using a remote repository.

It also adds sqlite to the distribution as a dependency.

Discussed-with: tuxillo, dillon

14 years agoRemove nsupdate.8 via 'make upgrade'.
Sascha Wildner [Sat, 14 Nov 2009 09:21:38 +0000 (10:21 +0100)]
Remove nsupdate.8 via 'make upgrade'.

14 years agoImport less-436.
Jan Lentfer [Sat, 14 Nov 2009 08:18:02 +0000 (09:18 +0100)]
Import less-436.

14 years agoMerge branch 'vendor/LESS' into less_update
Jan Lentfer [Sat, 14 Nov 2009 08:08:55 +0000 (09:08 +0100)]
Merge branch 'vendor/LESS' into less_update

14 years agoImport less-436.
Jan Lentfer [Sat, 14 Nov 2009 08:07:53 +0000 (09:07 +0100)]
Import less-436.

14 years agoACPI - Fix type-o which caused clock interrupts to stop working properly in C3.
Matthew Dillon [Sat, 14 Nov 2009 02:27:35 +0000 (18:27 -0800)]
ACPI - Fix type-o which caused clock interrupts to stop working properly in C3.

Submitted-by: Johannes Hofmann <johannes.hofmann@gmx.de>
14 years agoHAMMER Utility - Fix typo in var declaration.
Stathis Kamperis [Thu, 12 Nov 2009 23:43:32 +0000 (01:43 +0200)]
HAMMER Utility - Fix typo in var declaration.

Reported-by: Antonio Huete Jimenez <tuxillo@quantumachine.net>
14 years agoacpi(4) manpages: Some minor fixes.
Sascha Wildner [Thu, 12 Nov 2009 21:42:19 +0000 (22:42 +0100)]
acpi(4) manpages: Some minor fixes.

14 years agoacpi_thermal(4): Silence a warning.
Sascha Wildner [Thu, 12 Nov 2009 21:29:58 +0000 (22:29 +0100)]
acpi_thermal(4): Silence a warning.

14 years agoHAMMER Utility - Enhance the info command
Matthew Dillon [Thu, 12 Nov 2009 20:50:52 +0000 (12:50 -0800)]
HAMMER Utility - Enhance the info command

* Add PFS details to the 'info' directive.

Submitted-by: Antonio Huete Jimenez <tuxillo@quantumachine.net>
14 years agoBIND - Update BIND to 9.5.2
Matthew Dillon [Thu, 12 Nov 2009 20:07:44 +0000 (12:07 -0800)]
BIND - Update BIND to 9.5.2

* Enable man page for nslookup.
* nsupdate does not provide man 8 anmyore, but man 1.
* Fixes for x86_64.
* Added all the _LIBC conditionals that where present in 9.3

Submitted-by: Jan Lentfer <Jan.Lentfer@web.de>
Testing-by: dillon
14 years agoacpi.4: Add some missing references.
Sascha Wildner [Wed, 11 Nov 2009 21:29:18 +0000 (22:29 +0100)]
acpi.4: Add some missing references.

14 years agoacpi*.4: Update manual pages for the recent ACPI update.
Sascha Wildner [Wed, 11 Nov 2009 21:12:52 +0000 (22:12 +0100)]
acpi*.4: Update manual pages for the recent ACPI update.

Taken-from: FreeBSD

14 years agoSome mdoc fixes.
Sascha Wildner [Wed, 11 Nov 2009 20:53:49 +0000 (21:53 +0100)]
Some mdoc fixes.

14 years agoFix LINT building, broken by ACPI update.
Alexander Polakov [Wed, 11 Nov 2009 14:20:54 +0000 (17:20 +0300)]
Fix LINT building, broken by ACPI update.

Reported-by: swildner
14 years agoRemove traces of ACPI_QUIRK_VMWARE, should be no longer needed.
Alexander Polakov [Wed, 11 Nov 2009 13:57:49 +0000 (16:57 +0300)]
Remove traces of ACPI_QUIRK_VMWARE, should be no longer needed.

Reported-by: swildner
14 years agoSync zoneinfo database with tzdata2009r from elsie.
Sascha Wildner [Mon, 9 Nov 2009 18:52:35 +0000 (19:52 +0100)]
Sync zoneinfo database with tzdata2009r from elsie.

antarctica:     8.5  -> 8.6

Three Australian stations in Antarctica have changed time zones on
October 18, 2009, 02:00 (local times):

Casey:    UTC+8 -> UTC+11
Davis:    UTC+7 -> UTC+5
Mawson:   UTC+6 -> UTC+5

14 years agoMerge branch 'newacpi+'
Alexander Polakov [Sun, 8 Nov 2009 22:18:23 +0000 (01:18 +0300)]
Merge branch 'newacpi+'

14 years agoACPI: comment-out not-yet-ready code and remove extra debug
Alexander Polakov [Sun, 8 Nov 2009 17:50:55 +0000 (20:50 +0300)]
ACPI: comment-out not-yet-ready code and remove extra debug

14 years agoAlways do PCI_REROUTE_INTERRUPT.
Alexander Polakov [Tue, 3 Nov 2009 21:16:57 +0000 (00:16 +0300)]
Always do PCI_REROUTE_INTERRUPT.

FreeBSD does the same, and it's needed for future ACPI interrupt
routing work.

14 years agoExpand the support for PCI-e memory mapped configuration space access.
Alexander Polakov [Sun, 1 Nov 2009 20:16:28 +0000 (23:16 +0300)]
Expand the support for PCI-e memory mapped configuration space access.

This defaults to off and must be explicitly
enabled by setting the loader tunable hw.pci.mcfg=1.
- Add support for the Intel 915GM chipsets by reading the BAR.
- Add parsing of the ACPI MCFG table to discover memory mapped configuration
  access on modern machines.
- For config requests to busses not listed in ACPI's min/max valid buses,
  fall back to using type #1 configuration access instead.
- Add a workaround for some K8 chipsets that do not expose all devices on
  bus 0 via MCFG and fall back to type #1 for those devices instead.

Obtained-from: FreeBSD

14 years agoUse lockmgr locks for ACPI_SERIAL_*
Alexander Polakov [Sun, 1 Nov 2009 20:03:31 +0000 (23:03 +0300)]
Use lockmgr locks for ACPI_SERIAL_*

Suggested by dillon@

14 years agoACPI: disable acpi_pci_* by default
Alexander Polakov [Mon, 26 Oct 2009 11:45:07 +0000 (14:45 +0300)]
ACPI: disable acpi_pci_* by default

14 years agoACPI: Faking interrupt routing.
Alexander Polakov [Fri, 16 Oct 2009 19:26:23 +0000 (23:26 +0400)]
ACPI: Faking interrupt routing.

pci_apic_irq() accepts pin number instead of irq number, so we pass it.
Interrupt routing still depends on mptable, so we are *not* ACPI, just
faking.

14 years agoUnhide debug message while trying to make it work.
Alexander Polakov [Fri, 16 Oct 2009 19:25:51 +0000 (23:25 +0400)]
Unhide debug message while trying to make it work.

14 years agoRevert "IO APIC: Assign pins dedicated to PCI in the early stage."
Alexander Polakov [Fri, 16 Oct 2009 19:20:50 +0000 (23:20 +0400)]
Revert "IO APIC: Assign pins dedicated to PCI in the early stage."

This reverts commit f41c43c19e17ca807a28ba60b32364f1a40438f4 in order
to allow ACPI interrupt routing.

14 years agoacpi_pcib: Remove APIC case, moving into nexus.
Alexander Polakov [Fri, 16 Oct 2009 17:55:00 +0000 (21:55 +0400)]
acpi_pcib: Remove APIC case, moving into nexus.

14 years agoACPI: use APIC model if APIC_IO enabled.
Alexander Polakov [Fri, 16 Oct 2009 17:51:56 +0000 (21:51 +0400)]
ACPI: use APIC model if APIC_IO enabled.

14 years agoBUS_CONFIG_INTR takes 2 devices now: parent and child
Alexander Polakov [Fri, 16 Oct 2009 16:02:13 +0000 (20:02 +0400)]
BUS_CONFIG_INTR takes 2 devices now: parent and child

14 years agoatkbd: fix resume from ACPI S3
Alexander Polakov [Thu, 15 Oct 2009 17:25:03 +0000 (21:25 +0400)]
atkbd: fix resume from ACPI S3

14 years agoAdd ACPI_ENABLE_PCI option.
Alexander Polakov [Wed, 14 Oct 2009 18:59:35 +0000 (22:59 +0400)]
Add ACPI_ENABLE_PCI option.

14 years agoAdd acpi_{fujitsu, hp, panasonic, sony} modules.
Alexander Polakov [Sun, 8 Nov 2009 19:55:46 +0000 (22:55 +0300)]
Add acpi_{fujitsu, hp, panasonic, sony} modules.

Obtained-from: FreeBSD

14 years agoSync acpiconf with FreeBSD 7.2.
Alexander Polakov [Sun, 8 Nov 2009 14:38:42 +0000 (17:38 +0300)]
Sync acpiconf with FreeBSD 7.2.

14 years agoSync ACPI with FreeBSD 7.2
Alexander Polakov [Sun, 8 Nov 2009 20:26:01 +0000 (23:26 +0300)]
Sync ACPI with FreeBSD 7.2

14 years agoresource manager: add optional resource id.
Alexander Polakov [Tue, 29 Sep 2009 19:49:44 +0000 (19:49 +0000)]
resource manager: add optional resource id.

Obtained-from: FreeBSD

14 years agosys/sbuf.h: add sbuf_new_auto macro
Alexander Polakov [Tue, 29 Sep 2009 16:58:40 +0000 (16:58 +0000)]
sys/sbuf.h: add sbuf_new_auto macro

Obtained-from: FreeBSD

14 years agoACPI: add ACPI_SERIAL_* functions.
Alexander Polakov [Tue, 29 Sep 2009 16:44:25 +0000 (16:44 +0000)]
ACPI: add ACPI_SERIAL_* functions.

14 years agomandoc(1): Update to 1.9.13.
Sascha Wildner [Sun, 8 Nov 2009 07:55:57 +0000 (08:55 +0100)]
mandoc(1): Update to 1.9.13.

Thanks-to: Kristaps Dzonsons

14 years agoGarbage collect ghost sysctl.
Stathis Kamperis [Sat, 7 Nov 2009 23:08:47 +0000 (01:08 +0200)]
Garbage collect ghost sysctl.

p1003_1b.mq_open_max sysctl:

1. Has never worked properly (displayed a wrong value).
2. Didn't allow for its value to be tuned.
3. Is non-standard, so no 3rd party should rely on it. And, thus, noone
   should be harmed by its removal.
   The canonical way to get the maximum open message queue descriptors
   per process is via the sysconf(3) interface.
4. Has now been replaced by kern.mqueue.mq_open_max sysctl which
   addresses 1. and 2.

A stub has been inserted in place of the old sysctl definitions, in order to
reduce unnecessary diffs due to renumbering. This patch does NOT introduce
p1003_1b.unused1.

Partially-discussed-with: swildner@

14 years agoRestrict -Werror to gcc41.
Sascha Wildner [Sat, 7 Nov 2009 21:24:26 +0000 (22:24 +0100)]
Restrict -Werror to gcc41.

We're neither WARNS clean with gcc44 nor with clang.

Reported-by: Saifi Khan <saifi.khan@datasynergy.org>
14 years agoUpdate OpenSSL version number and regenerate the manual pages.
Aggelos Economopoulos [Sat, 7 Nov 2009 18:47:29 +0000 (18:47 +0000)]
Update OpenSSL version number and regenerate the manual pages.

14 years agoImport OpenSSL 0.9.8l
Aggelos Economopoulos [Sat, 7 Nov 2009 18:44:09 +0000 (18:44 +0000)]
Import OpenSSL 0.9.8l

Disables renegotiation to workaround CVE-2009-3555.

14 years agomandoc(1): Update to 1.9.13.
Sascha Wildner [Sun, 8 Nov 2009 07:55:57 +0000 (08:55 +0100)]
mandoc(1): Update to 1.9.13.

Thanks-to: Kristaps Dzonsons

14 years agoGarbage collect ghost sysctl.
Stathis Kamperis [Sat, 7 Nov 2009 23:08:47 +0000 (01:08 +0200)]
Garbage collect ghost sysctl.

p1003_1b.mq_open_max sysctl:

1. Has never worked properly (displayed a wrong value).
2. Didn't allow for its value to be tuned.
3. Is non-standard, so no 3rd party should rely on it. And, thus, noone
   should be harmed by its removal.
   The canonical way to get the maximum open message queue descriptors
   per process is via the sysconf(3) interface.
4. Has now been replaced by kern.mqueue.mq_open_max sysctl which
   addresses 1. and 2.

A stub has been inserted in place of the old sysctl definitions, in order to
reduce unnecessary diffs due to renumbering. This patch does NOT introduce
p1003_1b.unused1.

Partially-discussed-with: swildner@

14 years agoRestrict -Werror to gcc41.
Sascha Wildner [Sat, 7 Nov 2009 21:24:26 +0000 (22:24 +0100)]
Restrict -Werror to gcc41.

We're neither WARNS clean with gcc44 nor with clang.

Reported-by: Saifi Khan <saifi.khan@datasynergy.org>
14 years agoMerge commit 'clone27-scratch-2/master'
Aggelos Economopoulos [Sat, 7 Nov 2009 18:54:52 +0000 (20:54 +0200)]
Merge commit 'clone27-scratch-2/master'

14 years agoMerge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly
Aggelos Economopoulos [Sat, 7 Nov 2009 18:52:22 +0000 (20:52 +0200)]
Merge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly

14 years agoUpdate OpenSSL version number and regenerate the manual pages.
Aggelos Economopoulos [Sat, 7 Nov 2009 18:47:29 +0000 (18:47 +0000)]
Update OpenSSL version number and regenerate the manual pages.

14 years agoMerge branch 'vendor/OPENSSL'
Aggelos Economopoulos [Sat, 7 Nov 2009 18:45:45 +0000 (18:45 +0000)]
Merge branch 'vendor/OPENSSL'

14 years agoImport OpenSSL 0.9.8l
Aggelos Economopoulos [Sat, 7 Nov 2009 18:44:09 +0000 (18:44 +0000)]
Import OpenSSL 0.9.8l

Disables renegotiation to workaround CVE-2009-3555.

14 years agosysconf.3: Document _SC_MESSAGE_PASSING.
Stathis Kamperis [Sat, 7 Nov 2009 18:15:17 +0000 (20:15 +0200)]
sysconf.3: Document _SC_MESSAGE_PASSING.

14 years agosysconf.3: Document _SC_MQ_{OPEN, PRIO}_MAX.
Stathis Kamperis [Sat, 7 Nov 2009 17:37:19 +0000 (19:37 +0200)]
sysconf.3: Document _SC_MQ_{OPEN, PRIO}_MAX.

Discussed-with: swildner@
Reviewed-by: swildner@
14 years agosysconf.3: Sort variables alphabetically.
Stathis Kamperis [Sat, 7 Nov 2009 17:23:23 +0000 (19:23 +0200)]
sysconf.3: Sort variables alphabetically.

14 years agoFix xdm path in the Live{CD,DVD}'s /etc/ttys.
Sascha Wildner [Sat, 7 Nov 2009 15:18:35 +0000 (16:18 +0100)]
Fix xdm path in the Live{CD,DVD}'s /etc/ttys.

Reported-by: Johannes Hofmann <johannes.hofmann@gmx.de>
14 years agorename amd64 architecture to x86_64
Simon Schubert [Wed, 4 Nov 2009 16:22:28 +0000 (08:22 -0800)]
rename amd64 architecture to x86_64

The rest of the world seems to call amd64 x86_64.  Bite the bullet and
rename all of the architecture files and references.  This will
hopefully make pkgsrc builds less painful.

Discussed-with:  dillon@

14 years agoMerge commit 'clone27-scratch-1/master'
Aggelos Economopoulos [Sat, 7 Nov 2009 10:37:04 +0000 (12:37 +0200)]
Merge commit 'clone27-scratch-1/master'

14 years agoRevert "rename amd64 architecture to x86_64"
Jordan Gordeev [Sat, 7 Nov 2009 07:30:29 +0000 (09:30 +0200)]
Revert "rename amd64 architecture to x86_64"

This reverts commit c1543a890188d397acca9fe7f76bcd982481a763.

I'm reverting it because:
1) the change didn't get properly discussed
2) it was based on false premises:
"The rest of the world seems to call amd64 x86_64."
3) no pkgsrc bulk build was done to test the change
4) the original committer acted irresponsibly by committing
   such a big change just before going on vacation.

14 years agoUpdate OpenSSL version number and regenerate the manual pages.
Aggelos Economopoulos [Fri, 6 Nov 2009 22:35:42 +0000 (22:35 +0000)]
Update OpenSSL version number and regenerate the manual pages.

14 years agomqueues: Let the world know we support them.
Stathis Kamperis [Fri, 6 Nov 2009 20:42:26 +0000 (22:42 +0200)]
mqueues: Let the world know we support them.

There are two ways to determine whether we support the message
passing interface, as described in POSIX 1003.1B standard.

The standard way is to use sysconf(3) and the DragonFly-specific
way is to check the value of p1003_1b.message_passing sysctl.

We make sure that both return consistent results with respect to
each other.

14 years agoMerge branch 'vendor/OPENSSL'
User [Fri, 6 Nov 2009 19:22:09 +0000 (19:22 +0000)]
Merge branch 'vendor/OPENSSL'

14 years agoImport OpenSSL 0.9.8l
User [Fri, 6 Nov 2009 18:43:50 +0000 (18:43 +0000)]
Import OpenSSL 0.9.8l

Disables renegotiation to workaround CVE-2009-3555.

14 years agoWhitespace removal.
Stathis Kamperis [Fri, 6 Nov 2009 18:29:31 +0000 (20:29 +0200)]
Whitespace removal.

14 years agomqueues: Add support for _SC_MQ_OPEN_MAX in sysconf(3).
Stathis Kamperis [Fri, 6 Nov 2009 09:39:34 +0000 (11:39 +0200)]
mqueues: Add support for _SC_MQ_OPEN_MAX in sysconf(3).

P1B_SYSCTL() / p31b_setcfg() as found in kern/kern_posix4_mib.c
don't fit well for writeable sysctls.

14 years agorename amd64 architecture to x86_64
Simon Schubert [Wed, 4 Nov 2009 16:22:28 +0000 (08:22 -0800)]
rename amd64 architecture to x86_64

The rest of the world seems to call amd64 x86_64.  Bite the bullet and
rename all of the architecture files and references.  This will
hopefully make pkgsrc builds less painful.

Discussed-with:  dillon@

14 years agoinstaller: Finish incomplete commit to merge nrelease/{installer,root}.
Sascha Wildner [Thu, 5 Nov 2009 20:10:03 +0000 (21:10 +0100)]
installer: Finish incomplete commit to merge nrelease/{installer,root}.

14 years agomqueues: Add support for _SC_MQ_PRIO_MAX in sysconf(3).
Stathis Kamperis [Thu, 5 Nov 2009 14:19:59 +0000 (16:19 +0200)]
mqueues: Add support for _SC_MQ_PRIO_MAX in sysconf(3).

14 years agomqueues: Mark syscalls as MPSAFE.
Stathis Kamperis [Thu, 5 Nov 2009 14:12:38 +0000 (16:12 +0200)]
mqueues: Mark syscalls as MPSAFE.

Partially-tested-by: Saifi Khan and YONETANI Tomokazu.
14 years agohammer.8: version 3 update, mandoc(1) clean
Thomas Nikolajsen [Thu, 5 Nov 2009 06:05:22 +0000 (07:05 +0100)]
hammer.8: version 3 update, mandoc(1) clean

 * update snapshots PFS option description with new defaults
   for HAMMER version 3+

 * Remove .Xo / .Xc to make hammer.8 mandoc(1) clean

 * improve markup

 * update date

 * fix typo from prev. commit

14 years agohammer(8): pfs-status: list correct snapshots default for HAMMER version 3+
Thomas Nikolajsen [Thu, 5 Nov 2009 05:56:41 +0000 (06:56 +0100)]
hammer(8): pfs-status: list correct snapshots default for HAMMER version 3+

14 years agoAHCI/SILI - More adjustments to last commit
Matthew Dillon [Tue, 3 Nov 2009 18:36:35 +0000 (10:36 -0800)]
AHCI/SILI - More adjustments to last commit

* Use the ultradma field instead of the legacy field.  All SATA devices
  must support DMA so don't bother with the other legacy fields.  If the
  ultradma field is not initialized (on future devices) then presumably
  we do not have to SETXFER at all.

* Note that SATA hard drives do report this field.

* Fix mode calculation.

14 years agoAHCI/SILI - Send dummy SETXFER mode even though it is SATA
Matthew Dillon [Tue, 3 Nov 2009 18:00:14 +0000 (10:00 -0800)]
AHCI/SILI - Send dummy SETXFER mode even though it is SATA

* If the identify structure contains a non-zero/non-FFFF dmamode field
  we send a dummy SETXFER mode command to the device.

* Most SATA DISK devices set this field to 0 or FFFF and in this case no
  SETXFER mode command is sent.  SETXFER is non-applicable to SATA in
  general.

  Most ATAPI devices still initialize the dmamode field and some ATAPI
  devices still require SETXFER to be sent even though they are native SATA.

  SATA->PATA converters may require a SETXFER to be passed through before
  the PATA devices will operate properly.  In this case the dmamode field
  will likely be initialized.

14 years agoSync zoneinfo database with tzdata2009q from elsie.
Sascha Wildner [Tue, 3 Nov 2009 08:12:39 +0000 (09:12 +0100)]
Sync zoneinfo database with tzdata2009q from elsie.

asia:           8.42 -> 8.44
europe:         8.22 -> 8.24
zone.tab:       8.28 -> 8.29

* Change end of DST in Syria in 2009 and forward from November 1 to the
  last Friday in October.

* Changes to past Hong Kong transitions.

* New zone for Russia's Kemerovo oblast' (Asia/Novokuznetsk).

14 years agoRemove lib/libc/stdlib/malloc.c, as we're using nmalloc.c for some time now.
Sascha Wildner [Sun, 1 Nov 2009 18:21:32 +0000 (19:21 +0100)]
Remove lib/libc/stdlib/malloc.c, as we're using nmalloc.c for some time now.

14 years agoHAMMER VFS - Handle critical I/O errors without panicing
Matthew Dillon [Tue, 3 Nov 2009 01:42:21 +0000 (17:42 -0800)]
HAMMER VFS - Handle critical I/O errors without panicing

Physically pull the SATA cable while pounding the disk via a HAMMER
mounted filesystem and fix the error paths that are not handled properly.
Make umount -f work properly.

Reminder: Currently if HAMMER hits a critical media error it drops down
into read-only mode and can only be read or unmounted after that.

* Do not try to test the CRC for bread data if the bread fails.

* Clean up the reference count on hammer_buffer structures related to
  dangling modified and ioerror bits.

* Remove a debugging kprintf() that was lousing up the console output.

14 years agoHAMMER VFS - Add sysctl vfs.hammer.debug_critical
Matthew Dillon [Mon, 2 Nov 2009 23:45:27 +0000 (15:45 -0800)]
HAMMER VFS - Add sysctl vfs.hammer.debug_critical

* Add sysctl vfs.hammer.debug_critical.  If set to non-zero a critical
  CRC or media error will cause the kernel debugger to be entered.

14 years agohammer(8): version 3 doc update
Thomas Nikolajsen [Mon, 2 Nov 2009 22:54:39 +0000 (23:54 +0100)]
hammer(8): version 3 doc update

 * improve description

 * update synopsis & sync program

 * improve markup

 * break lines at end of sentence

14 years agoHAMMER VFS - The backend flusher now sorts inodes
Matthew Dillon [Mon, 2 Nov 2009 17:11:46 +0000 (09:11 -0800)]
HAMMER VFS - The backend flusher now sorts inodes

* Change the tailq of inodes in a flush group to a red-black tree.
  The flusher now processes inodes in sorted order and breaks them up
  into larger sets for concurrent flushing.  The flusher threads are thus
  more likely to concurrently process inodes which are fairly far apart
  in the B-Tree.

  This greatly reduces lock interference between flusher threads.  However,
  B-Tree deadlocks are still an issue between inodes undergoing flushes
  and front-end access operations.  This can be observed by noting periods
  of low dev-write activity in 'hammer iostats 1' output during a blogbench
  test.  The hammer-S* kernel threads will likely be in a 'hmrdlk' state
  at the same time.

* Add sysctl vfs.hammer.limit_reclaim to set the maximum
  number of inodes with no vnode associations, default 4000.

  NOTE: For debugging only, setting this value too high will blow
  out the kmalloc pool.

14 years agoHAMMER - Verbosity patch for mount_hammer.
Matthew Dillon [Mon, 2 Nov 2009 06:12:09 +0000 (22:12 -0800)]
HAMMER - Verbosity patch for mount_hammer.

* Be more verbose when a HAMMER mount fails.  Attempt to dissect and
  check the volume list.

Submitted-by: Jan Lentfer <Jan.Lentfer@web.de>
14 years agoVM - Adjust inactive_target and pageout code.
Matthew Dillon [Mon, 2 Nov 2009 05:50:32 +0000 (21:50 -0800)]
VM - Adjust inactive_target and pageout code.

Continue tuning page recyclement in the VM paging queues.  Fix an issue
where the memory used to recycle one-time-use cache data becomes too
constricted.  For example if blogbench is run on one directory and then
run again on another directory, too many pages cached from the first run
were being left in the active queue and not recycled.

The only way to deal with this is to allow the pageout code to pull pages
from the active queue to the inactive queue.  This in turn resurrects the
issue of overnight processes (whos pages are idle, after all), getting
excessively uncached.  I think the goal needs to be to reduce excessive
recyclement of such pages over a shorter time-frame, such as an hour.
Adjusting vfs.vm_cycle_point higher may help (but we don't do it in this
commit).

* Change the pageout code a bit to pull a limited number of pages from
  the active queue to the inactive queue if the inactive target has not
  been met but the cache+free targets were satisfied from the inactive
  queue.  This allows the inactive_target to be increased without creating
  additional mangement overhead on the machine.

* Increase the inactive_target to 1/2 of probed memory.

* Document the issues involved with pulling pages out of the active queue.