dragonfly.git
10 years agohammer2 - Add debug ioctl
Matthew Dillon [Mon, 31 Mar 2014 01:42:25 +0000 (18:42 -0700)]
hammer2 - Add debug ioctl

* Add a a debugging command to dump the in-memory chain topology.

10 years agoUnbreak buildworld after recent hammer2 changes.
Sascha Wildner [Sun, 30 Mar 2014 21:36:05 +0000 (23:36 +0200)]
Unbreak buildworld after recent hammer2 changes.

504565062f34ec55037ac0cf308fe3562f091460 renamed HAMMER2_MAX_KEY to
HAMMER2_KEY_MAX but libstand wasn't adjusted.

Reported-by: David Shao
Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/2658>

10 years agohammer2 - multi-target mount part 3/many (stabilization)
Matthew Dillon [Sun, 30 Mar 2014 18:07:36 +0000 (11:07 -0700)]
hammer2 - multi-target mount part 3/many (stabilization)

* Fix cluster memory leaks, fix a malloc_type leak.

* Resync cached PFS (pmp) data in the root inode for the PFS on flush.
  (inode allocator).

* Track total DIO memory.

* For now assert on logical mirror mismatches.

* Minor start on infrastructure for mirror synchronization.

* Refactor hammer2_cluster_copy() flags.

10 years ago<sys/cdefs.h>: Simplify the CTASSERT definition better.
Sascha Wildner [Sun, 30 Mar 2014 10:27:07 +0000 (12:27 +0200)]
<sys/cdefs.h>: Simplify the CTASSERT definition better.

10 years agohammer2 - multi-target mount part 2/many
Matthew Dillon [Sun, 30 Mar 2014 00:09:08 +0000 (17:09 -0700)]
hammer2 - multi-target mount part 2/many

* Split media and in-memory tracking of TIDs.  In-memory tracking is
  effectively global, while on-media TIDs are now split into an independent
  domain for each PFS plus one for the super-root and freemap topology.

  Introduces hammer2_xid_t and reformulates some of the TID and XID
  constants.

* Refactor the flush code to no longer depend on media modify_tid/mirror_tid
  values during a flush.  In-memory XIDs are used for all flush recursions.

* Refactor the transaction mechanisms in order to allow XIDs to cover multiple
  TID domains.  For the moment, the transaction management structure is
  global but the code is designed to allow us to have multiple management
  domains in a future commit.

* Associate a PMP structure with each storage topology's super-root and
  freemap (still a bit rough).

* Each PFS now accounts for its own inode numbers and transaction ids,
  independent of other PFSs.  This also means that both inode numbers
  and transaction ids are PFS-specific, so multiple storage medias which
  are part of the same PFS will use the PFS-centric tracking rather than
  per-media tracking.

* Cleanup a few memory leaks and remove some debugging from the chain code.

* Refactor mount and unmount code to handle the new PFS abstraction.

* Refactor the volume data lock/unlock/modify mechanics somewhat.

10 years ago<sys/cdefs.h>: Use _Static_assert for CTASSERT.
Sascha Wildner [Sat, 29 Mar 2014 09:07:03 +0000 (10:07 +0100)]
<sys/cdefs.h>: Use _Static_assert for CTASSERT.

Move CTASSERT from <sys/systm.h> to <sys/cdefs.h> and use _Static_assert
for its definition (which gives us a better error message in case it is
triggered).

But if there is no support for _Static_assert or static_assert in the
compiler, use the previous typedef method.

10 years agokernel/hptmv: Don't mess up the struct by copying too much.
Sascha Wildner [Sat, 29 Mar 2014 08:06:44 +0000 (09:06 +0100)]
kernel/hptmv: Don't mess up the struct by copying too much.

VendorId is only 8 chars.

10 years agokernel/cpu_topology: Fix a casting issue in the topology tree printing.
Sascha Wildner [Fri, 28 Mar 2014 22:18:02 +0000 (23:18 +0100)]
kernel/cpu_topology: Fix a casting issue in the topology tree printing.

compute_unit_id is uint8_t so it's actually 0xff we want to check for.
Before this commit, the "... != -1" checks were always true.

10 years agokernel/acpi_fujitsu: Doh, fix a copy/paste error I did in my last upgrade.
Sascha Wildner [Fri, 28 Mar 2014 21:09:55 +0000 (22:09 +0100)]
kernel/acpi_fujitsu: Doh, fix a copy/paste error I did in my last upgrade.

10 years ago<sys/hash.h>: Fix wrong header guard.
Sascha Wildner [Fri, 28 Mar 2014 20:54:07 +0000 (21:54 +0100)]
<sys/hash.h>: Fix wrong header guard.

10 years agokernel/acpi: Improve the errors which AcpiOsTableOverride() returns.
Sascha Wildner [Thu, 27 Mar 2014 13:49:25 +0000 (14:49 +0100)]
kernel/acpi: Improve the errors which AcpiOsTableOverride() returns.

While here, use ACPI_COMPARE_NAME() and ACPI_SIG_DSDT.

10 years agoFix the usbd rc script a bit better.
Sascha Wildner [Wed, 26 Mar 2014 09:42:11 +0000 (10:42 +0100)]
Fix the usbd rc script a bit better.

Most importantly, take care about the case where usb isn't in the
kernel config.

Reported-by: lhmwzy on users@
10 years agoSync zoneinfo database with tzdata2014b from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Tue, 25 Mar 2014 09:35:13 +0000 (10:35 +0100)]
Sync zoneinfo database with tzdata2014b from ftp://ftp.iana.org/tz/releases

* africa: Morocco's 2014 DST start will be as predicted. (Thanks to
    Sebastien Willemijns.)

* australasia: Add comments about Johnston Island time in the 1960s.
    (Thanks to Lyle McElhaney.)

* antarctica: New entry for Troll station, Antarctica. (Thanks to
    Paul-Inge Flakstad and Bengt-Inge Larsson.) This is currently an
    approximation; a better version will require zic and localtime
    fixes. Also the NZAQ rules - which are never used - have been
    removed.

* europe: Crimea switches to Moscow time on 2014-03-30 at 02:00 local
    time. (Thanks to Alexander Krivenyshev.)
    Move its zone.tab entry from UA to RU.

10 years agokernel/i386: Remove CPU_ENABLE_TCC traces.
Sascha Wildner [Tue, 25 Mar 2014 03:32:16 +0000 (04:32 +0100)]
kernel/i386: Remove CPU_ENABLE_TCC traces.

10 years agoinpcb: Use a special version of in_pcbinsporthash() on TCP accept path
Sepherosa Ziehau [Mon, 24 Mar 2014 13:22:27 +0000 (21:22 +0800)]
inpcb: Use a special version of in_pcbinsporthash() on TCP accept path

It holds the port token for in_pcbinsporthash().  Assert that the port
token is held in in_pcbinsport() now.

10 years agoFix kernel build.
Sascha Wildner [Mon, 24 Mar 2014 08:59:54 +0000 (09:59 +0100)]
Fix kernel build.

10 years agonetstat - Replace a couple malloc calls.
Antonio Huete Jimenez [Thu, 20 Mar 2014 15:26:26 +0000 (08:26 -0700)]
netstat - Replace a couple malloc calls.

- Use calloc to ensure memory is zeroed.

10 years agoinpcb: Group port related fields into inpcbportinfo
Sepherosa Ziehau [Sun, 23 Mar 2014 13:30:27 +0000 (21:30 +0800)]
inpcb: Group port related fields into inpcbportinfo

Prepare for port token splitting.

10 years agolibc: Remove a useless assignment.
Sascha Wildner [Sun, 23 Mar 2014 11:53:57 +0000 (12:53 +0100)]
libc: Remove a useless assignment.

10 years agoext2fs - Attempt to fix a panic on VOP_CLOSE
Antonio Huete Jimenez [Sun, 23 Mar 2014 01:30:01 +0000 (02:30 +0100)]
ext2fs - Attempt to fix a panic on VOP_CLOSE

Follows-up commit 12cdc371fb859682eda7d1c26c5059920a7cf118

10 years agousb4bsd: Sync the run(4) driver with FreeBSD.
Sascha Wildner [Sat, 22 Mar 2014 20:37:55 +0000 (21:37 +0100)]
usb4bsd: Sync the run(4) driver with FreeBSD.

This adds support for a number of new chipsets/adapters (see the
manual page for a list).

Thanks to Markus Pfeiffer for testing with a RT5370 based adapter.

Taken-from: FreeBSD

10 years agokernel/802_11: Fix panic when the desired ratectl algorithm is unavailable.
Sascha Wildner [Sat, 22 Mar 2014 17:44:28 +0000 (18:44 +0100)]
kernel/802_11: Fix panic when the desired ratectl algorithm is unavailable.

Set the default to NONE. When a driver calls ieee80211_ratectl_init(), try
to use AMRR etc. if NONE is selected. Drivers may still select other
algorithms using ieee80211_ratectl_set() prior to calling _init().

Due to our broken ieee80211_load_module(), we do not currently autoload
the desired ratectl algorithm like FreeBSD does. Instead, a message about
manually loading the module will be printed (see ieee80211_dragonfly.c).

Reported-by: profmakx
Taken-from:  FreeBSD

10 years agoin6_pcbbind: Rearrange local port bind/select code path.
Sepherosa Ziehau [Sat, 22 Mar 2014 10:45:21 +0000 (18:45 +0800)]
in6_pcbbind: Rearrange local port bind/select code path.

Mainly group local port binding logic together.  This paves way for the
upcoming port token splitting.

Tested-by: ftigeot@
10 years agomount_hammer2 - Check ERANGE for mount integration result
Matthew Dillon [Sat, 22 Mar 2014 01:01:44 +0000 (18:01 -0700)]
mount_hammer2 - Check ERANGE for mount integration result

* For now  the H2 vfs code returns ERANGE when mounting multiple
  elements of a cluster, report it as an integration instead of
  as an error.

10 years agonewfs_hammer2 - add -R uuid and -I uuid
Matthew Dillon [Sat, 22 Mar 2014 00:18:33 +0000 (17:18 -0700)]
newfs_hammer2 - add -R uuid and -I uuid

* Allow the super-root (-R) cluster id and the labeled PFS's cluster id
  to be specified.

* Populate the cluster id in the inode data.

10 years agohammer2 - skeleton multi target mount detection
Matthew Dillon [Sat, 22 Mar 2014 00:15:22 +0000 (17:15 -0700)]
hammer2 - skeleton multi target mount detection

* Detect H2 filesystems with the same cluster id and add to an existing
  mount's cluster instead of mounting separately.

* Very preliminary, not operational.  Transactions, flush, and volume
  management need to be rewritten.

10 years agohammer2 - cluster API, preliminary implementation of multi-chain updates
Matthew Dillon [Thu, 20 Mar 2014 00:28:42 +0000 (17:28 -0700)]
hammer2 - cluster API, preliminary implementation of multi-chain updates

* Separate out read-only from read-write access to cluster data.

* Implement hammer2_cluster_modsync() and call in appropriate places.

* Clean up some media inode fields not currently in-use.

10 years agokernel/msdosfs: Merge deName and deExtension in the direntry struct.
Sascha Wildner [Fri, 21 Mar 2014 20:39:12 +0000 (21:39 +0100)]
kernel/msdosfs: Merge deName and deExtension in the direntry struct.

* winChkSum() in msdosfs_conv.c was assuming that deExtension was
  following deName in memory, which is meh.

* While here, add some include guards and put some reserved bytes
  explicitly in the structs.

This is basically r203827 from FreeBSD.

10 years agoFix MLINKS for the last sbuf(9) update.
Sascha Wildner [Thu, 20 Mar 2014 22:47:56 +0000 (23:47 +0100)]
Fix MLINKS for the last sbuf(9) update.

10 years agokernel: check that p_ucred is not NULL before calling p_trespass
Joris Giovannangeli [Thu, 20 Mar 2014 17:23:59 +0000 (18:23 +0100)]
kernel: check that p_ucred is not NULL before calling p_trespass

10 years agocrashinfo(8): Add -w and -R to the ps command.
Sascha Wildner [Thu, 20 Mar 2014 10:55:14 +0000 (11:55 +0100)]
crashinfo(8): Add -w and -R to the ps command.

10 years agompt(4): Sync with FreeBSD.
Sascha Wildner [Thu, 20 Mar 2014 09:17:14 +0000 (10:17 +0100)]
mpt(4): Sync with FreeBSD.

Nothing big, as far as I can tell. Some fixes and removal of old
compatibility code.

While here, use callout_init_mp() and callout_stop_sync().

10 years agoAdd some missing MLINKS for lock.9 and pidfile.3.
Sascha Wildner [Wed, 19 Mar 2014 22:11:54 +0000 (23:11 +0100)]
Add some missing MLINKS for lock.9 and pidfile.3.

10 years agotbridge.9: Adjust typedefs a bit.
Sascha Wildner [Wed, 19 Mar 2014 20:50:20 +0000 (21:50 +0100)]
tbridge.9: Adjust typedefs a bit.

10 years agoaac(4): Sync with FreeBSD.
Sascha Wildner [Wed, 19 Mar 2014 18:58:36 +0000 (19:58 +0100)]
aac(4): Sync with FreeBSD.

Some bug fixes, static/const, etc.

Also, add MSI support and use callout_init_mp().

10 years agousb4bsd/run: Fix compilation without INVARIANTS.
Sascha Wildner [Wed, 19 Mar 2014 17:37:01 +0000 (18:37 +0100)]
usb4bsd/run: Fix compilation without INVARIANTS.

Since wlan_serializer is now held consistently, we can unconditionally
wlan_serialize_exit/enter around firmware_get().

This commit is identical to 11d169ef87e7b77e152510810bec814b36ac584d
for iwn(4).

10 years agoin6_pcblookup_local: Make in6_addr const
Sepherosa Ziehau [Wed, 19 Mar 2014 12:36:12 +0000 (20:36 +0800)]
in6_pcblookup_local: Make in6_addr const

10 years agoin_pcbbind: Rearrange local port bind/select code path.
Sepherosa Ziehau [Wed, 19 Mar 2014 11:52:08 +0000 (19:52 +0800)]
in_pcbbind: Rearrange local port bind/select code path.

- Group local port binding logic together.
- Group local port auto-selecting logic together and factor out
  in_pcbsetlport().

This paves way for the upcoming port token splitting.

10 years agoFix license in some USB related manual pages (taken from FreeBSD).
Sascha Wildner [Wed, 19 Mar 2014 09:17:32 +0000 (10:17 +0100)]
Fix license in some USB related manual pages (taken from FreeBSD).

10 years agohammer2 - Cluster API stabilization
Matthew Dillon [Wed, 19 Mar 2014 05:17:08 +0000 (22:17 -0700)]
hammer2 - Cluster API stabilization

* Fix issues that come up with mount/umount/cpdup tests related to the
  new cluster API.  Ref-counting, locks, and many other (expected) items.

* Fleshing out cluster->focus was a bit more involved than I had hoped.

* Generally speaking, cluster refs and locks work the same way that chain
  refs and locks do.

10 years agoTry to start usbd(8) only if it actually exists.
Sascha Wildner [Tue, 18 Mar 2014 18:21:31 +0000 (19:21 +0100)]
Try to start usbd(8) only if it actually exists.

It is specific to the old USB stack so we can remove the rc script
once we don't offer it anymore. For now, just check if it is there
before starting.

10 years agohammer2 - Start adding internal cluster API
Matthew Dillon [Tue, 18 Mar 2014 16:35:21 +0000 (09:35 -0700)]
hammer2 - Start adding internal cluster API

Initial addition of the cluster API.  H2 will be non-operational until this
is stabilized.  Adding the cluster API will require a few stages.  This first
stage is to add the API and make it work under degenerate (single-target)
conditions.

The hammer2_cluster structure collects and manages an array of up to
8 chains representing mirrors / cluster nodes / copies of the same point
in the topology.

* Add hammer2_cluster.c, and hammer2_cluster_t

* Replace nearly all high-level (vnops, vfsops) chain calls with
  cluster calls.

10 years agousb4bsd: FWIW, port usb_template and hook it into the build.
Sascha Wildner [Tue, 18 Mar 2014 08:37:31 +0000 (09:37 +0100)]
usb4bsd: FWIW, port usb_template and hook it into the build.

10 years agoAdd umoscom(4) and usfs(4) manual pages (from FreeBSD).
Sascha Wildner [Tue, 18 Mar 2014 07:54:36 +0000 (08:54 +0100)]
Add umoscom(4) and usfs(4) manual pages (from FreeBSD).

10 years agotcplay: Fix a function name in tcplay.3 and .Dd in tcplay.8.
Sascha Wildner [Tue, 18 Mar 2014 07:30:31 +0000 (08:30 +0100)]
tcplay: Fix a function name in tcplay.3 and .Dd in tcplay.8.

10 years agoRemove old tcplay(3) MLINKS via 'make upgrade'.
Sascha Wildner [Mon, 17 Mar 2014 18:32:37 +0000 (19:32 +0100)]
Remove old tcplay(3) MLINKS via 'make upgrade'.

10 years agotest/debug - Tweak vnodeinfo a bit
Antonio Huete Jimenez [Mon, 17 Mar 2014 14:33:21 +0000 (07:33 -0700)]
test/debug - Tweak vnodeinfo a bit

- Remove trailing white spaces.
- Fix usage.
- Add '-p' option to show filesystem specific inode data. Currently
  only dirfs is supported.
- Additional filesystems can be added easily to the dumplist struct.

10 years agolibusb20.3: uint61_t -> uint16_t
Sascha Wildner [Sun, 16 Mar 2014 20:39:25 +0000 (21:39 +0100)]
libusb20.3: uint61_t -> uint16_t

10 years agousbhid.3: u_int -> unsigned int
Sascha Wildner [Sun, 16 Mar 2014 20:39:01 +0000 (21:39 +0100)]
usbhid.3: u_int -> unsigned int

10 years agodevd: Regenerate usb.conf.
Sascha Wildner [Sun, 16 Mar 2014 20:01:13 +0000 (21:01 +0100)]
devd: Regenerate usb.conf.

10 years agousb.4: Add ufm reference.
Sascha Wildner [Sun, 16 Mar 2014 17:57:13 +0000 (18:57 +0100)]
usb.4: Add ufm reference.

10 years agokernel/twa: Sync a bit with FreeBSD.
Sascha Wildner [Sun, 16 Mar 2014 17:43:38 +0000 (18:43 +0100)]
kernel/twa: Sync a bit with FreeBSD.

Mainly s/callout_init/callout_init_mp/ and using pci_enable_busmaster()
directly.

10 years agousb4bsd: Port ufm.
Sascha Wildner [Sun, 16 Mar 2014 17:49:38 +0000 (18:49 +0100)]
usb4bsd: Port ufm.

10 years agotcplay - fix compile error on i386
Alex Hornung [Sun, 16 Mar 2014 16:55:59 +0000 (16:55 +0000)]
tcplay - fix compile error on i386

10 years agocryptdisks safe_mem - use weak symbols
Alex Hornung [Sun, 16 Mar 2014 13:45:21 +0000 (13:45 +0000)]
cryptdisks safe_mem - use weak symbols

 * Use weak symbols so that the ones in libtcplay.a can override the
   symbols in the local safe_mem.

 * I'm not sure why this ever worked before, but it definitely doesn't
   work anymore.

10 years agocryptdisks - update to new tcplay API
Alex Hornung [Sun, 16 Mar 2014 13:45:09 +0000 (13:45 +0000)]
cryptdisks - update to new tcplay API

10 years agoupdate tcplay to 2.0
Alex Hornung [Sun, 16 Mar 2014 07:37:01 +0000 (07:37 +0000)]
update tcplay to 2.0

10 years agoin6_pcbbind: Move stack variable declaration near its usage
Sepherosa Ziehau [Sun, 16 Mar 2014 13:18:02 +0000 (21:18 +0800)]
in6_pcbbind: Move stack variable declaration near its usage

10 years agoin_pcbbind: Move stack variable declaration near its usage
Sepherosa Ziehau [Sun, 16 Mar 2014 13:09:11 +0000 (21:09 +0800)]
in_pcbbind: Move stack variable declaration near its usage

10 years agoinpcb: Break long line
Sepherosa Ziehau [Sun, 16 Mar 2014 13:05:19 +0000 (21:05 +0800)]
inpcb: Break long line

10 years agoinpcb: in_pcbconn_bind -> in_pcbsetlport_remote; no functional change.
Sepherosa Ziehau [Sun, 16 Mar 2014 12:45:55 +0000 (20:45 +0800)]
inpcb: in_pcbconn_bind -> in_pcbsetlport_remote; no functional change.

10 years agoin_pcbconn_bind: Change argument name from 'nam' to 'remote'
Sepherosa Ziehau [Sun, 16 Mar 2014 12:07:51 +0000 (20:07 +0800)]
in_pcbconn_bind: Change argument name from 'nam' to 'remote'

Increase readability.

10 years agoinpcb: in_pcblookup_addrport -> in_pcblookup_localremote
Sepherosa Ziehau [Sun, 16 Mar 2014 11:48:05 +0000 (19:48 +0800)]
inpcb: in_pcblookup_addrport -> in_pcblookup_localremote

Compared w/ in_pcblookup_local, in_pcblookup_addrport checks remote
address and port (faddr,fport) too.  Renaming it to
in_pcblookup_localremote to be consistent w/ in_pcblookup_local name.

No functional changes.

10 years agoinpcb/in6pcb: in_pcbinsporthash() never fails
Sepherosa Ziehau [Sun, 16 Mar 2014 11:34:18 +0000 (19:34 +0800)]
inpcb/in6pcb: in_pcbinsporthash() never fails

10 years agoin6pcb: in6_pcblookup_local() must have been protected by port token
Sepherosa Ziehau [Sun, 16 Mar 2014 07:31:50 +0000 (15:31 +0800)]
in6pcb: in6_pcblookup_local() must have been protected by port token

10 years agoinpcb: in_pcblookup_local() must have been protected by port token
Sepherosa Ziehau [Sun, 16 Mar 2014 07:31:32 +0000 (15:31 +0800)]
inpcb: in_pcblookup_local() must have been protected by port token

10 years agoin6pcb: Properly hold port token for in6_pcbbind() and in6_pcbsetport()
Sepherosa Ziehau [Sun, 16 Mar 2014 07:24:08 +0000 (15:24 +0800)]
in6pcb: Properly hold port token for in6_pcbbind() and in6_pcbsetport()

10 years agoman.1: Add missing section.
Sascha Wildner [Sun, 16 Mar 2014 11:19:36 +0000 (12:19 +0100)]
man.1: Add missing section.

10 years agogdbinit - Fix previous commit.
Antonio Huete Jimenez [Sun, 16 Mar 2014 01:12:16 +0000 (02:12 +0100)]
gdbinit - Fix previous commit.

Spotted-by: swildner
10 years agogdbinit - A couple fixes.
Antonio Huete Jimenez [Sun, 16 Mar 2014 00:34:53 +0000 (01:34 +0100)]
gdbinit - A couple fixes.

- Fix 'lstok' for proc_tokens and vmobj_tokens.

10 years agousb.4: Use .Nx and fix a wrong reference.
Sascha Wildner [Sat, 15 Mar 2014 21:07:09 +0000 (22:07 +0100)]
usb.4: Use .Nx and fix a wrong reference.

10 years agolibkvm - Adjust for the proc_token changes
Antonio Huete Jimenez [Sat, 15 Mar 2014 15:05:44 +0000 (16:05 +0100)]
libkvm - Adjust for the proc_token changes

- allproc, zombproc are now gone. All processes are now in an array of
  proclist structures.
- ps(1) did not work on coredumps because '_allproc' and '_zombproc'
  were missing.

10 years agokernel - Add allproc_hsize global
Antonio Huete Jimenez [Fri, 14 Mar 2014 09:04:19 +0000 (10:04 +0100)]
kernel - Add allproc_hsize global

- Used by kvm(3) to determine the proc hash size.

10 years agoinstaller: Export /boot device name in loader.conf
François Tigeot [Sat, 15 Mar 2014 16:37:33 +0000 (17:37 +0100)]
installer: Export /boot device name in loader.conf

This will eventually allow the kernel to mount /boot directly

10 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sat, 15 Mar 2014 16:34:48 +0000 (09:34 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

10 years agodntpd - Improve offset correction precision
Matthew Dillon [Sat, 15 Mar 2014 16:28:55 +0000 (09:28 -0700)]
dntpd - Improve offset correction precision

* Offset corrections are more accurate with more samples (whereas frequency
  corrections are more accurate when the first and last sample are far apart
  in the time domain).

* Even though dntpd uses a standard deviation test to conditionalize offset
  corrections, it is still possible to get false positives with only 4
  samples.

* Once dntpd has gone into maintainance mode increase the number of
  required samples for an offset correction from 4 to 8.  This makes
  the standard deviation more accurate, reduces false positives, and
  improves stability.

* Retain the original mechanic during aquisition so dntpd applies corrections
  sooner rather than later when first started.

10 years agoUpdate the pciconf(8) database.
Sascha Wildner [Sat, 15 Mar 2014 16:28:19 +0000 (17:28 +0100)]
Update the pciconf(8) database.

March 14, 2014 snapshot from http://pciids.sourceforge.net/

10 years agoinpcb: in_pcblookup_addrport() must have been protected by port token
Sepherosa Ziehau [Sat, 15 Mar 2014 13:30:55 +0000 (21:30 +0800)]
inpcb: in_pcblookup_addrport() must have been protected by port token

10 years agoin_pcbconn_bind: Reduce port token cover range
Sepherosa Ziehau [Sat, 15 Mar 2014 13:05:09 +0000 (21:05 +0800)]
in_pcbconn_bind: Reduce port token cover range

10 years agoin_pcbconn_bind: Remove duplicated prison_replace_wildcards()
Sepherosa Ziehau [Sat, 15 Mar 2014 12:46:46 +0000 (20:46 +0800)]
in_pcbconn_bind: Remove duplicated prison_replace_wildcards()

10 years agoin_pcbbind: Merge duplicated prison_replace_wildcards()
Sepherosa Ziehau [Sat, 15 Mar 2014 12:43:58 +0000 (20:43 +0800)]
in_pcbbind: Merge duplicated prison_replace_wildcards()

10 years agoSome usb4bsd manpage related shuffling/additions in Makefiles.
Sascha Wildner [Sat, 15 Mar 2014 11:55:35 +0000 (12:55 +0100)]
Some usb4bsd manpage related shuffling/additions in Makefiles.

10 years agousb.4: Sync parts of the manual page with FreeBSD.
Sascha Wildner [Sat, 15 Mar 2014 09:20:58 +0000 (10:20 +0100)]
usb.4: Sync parts of the manual page with FreeBSD.

10 years agoAdd a ufoma(4) manual page (from FreeBSD).
Sascha Wildner [Sat, 15 Mar 2014 09:19:45 +0000 (10:19 +0100)]
Add a ufoma(4) manual page (from FreeBSD).

10 years agoImplemented casuword for vkernel64. Fix two typos in casuword for pc64.
Imre Vadasz [Fri, 14 Mar 2014 22:56:40 +0000 (23:56 +0100)]
Implemented casuword for vkernel64. Fix two typos in casuword for pc64.

10 years agodevfs - sync devfs after cloning a device
Alex Hornung [Fri, 14 Mar 2014 19:27:19 +0000 (19:27 +0000)]
devfs - sync devfs after cloning a device

 * Use case are devices such as tty_pty which create a ptm/foo node as
   the cloned one, but also create a slave node (in pts/foo).

 * Without this, it's possible that ptm/foo is created before pts/foo
   is, and the program may race and not see pts/foo yet.

10 years agoSync ucom.4, uplcom.4 and uslcom.4 with FreeBSD.
Sascha Wildner [Fri, 14 Mar 2014 21:40:48 +0000 (22:40 +0100)]
Sync ucom.4, uplcom.4 and uslcom.4 with FreeBSD.

10 years agolibusb: add libusb_log_level enum
Markus Pfeiffer [Fri, 14 Mar 2014 19:27:20 +0000 (19:27 +0000)]
libusb: add libusb_log_level enum

This is documented on http://libusb.sourceforge.net/api-1.0/group__lib.html

10 years agoAdd udav(4) and uep(4) manual pages.
Sascha Wildner [Fri, 14 Mar 2014 10:20:52 +0000 (11:20 +0100)]
Add udav(4) and uep(4) manual pages.

10 years agoSync uhid.4 with FreeBSD.
Sascha Wildner [Fri, 14 Mar 2014 10:10:43 +0000 (11:10 +0100)]
Sync uhid.4 with FreeBSD.

10 years agoSync ugen.4 with FreeBSD.
Sascha Wildner [Fri, 14 Mar 2014 09:28:37 +0000 (10:28 +0100)]
Sync ugen.4 with FreeBSD.

10 years agoSync axe.4 with FreeBSD.
Sascha Wildner [Thu, 13 Mar 2014 22:42:07 +0000 (23:42 +0100)]
Sync axe.4 with FreeBSD.

10 years agoGnargh, fix typo.
Sascha Wildner [Thu, 13 Mar 2014 18:32:20 +0000 (19:32 +0100)]
Gnargh, fix typo.

10 years agoRemove usbdevs_data.h in /usr/include via 'make upgrade'.
Sascha Wildner [Thu, 13 Mar 2014 18:31:30 +0000 (19:31 +0100)]
Remove usbdevs_data.h in /usr/include via 'make upgrade'.

10 years agokernel - Correct second edge-case for machdep.pmap_mmu_optimize
Matthew Dillon [Thu, 13 Mar 2014 16:25:29 +0000 (09:25 -0700)]
kernel - Correct second edge-case for machdep.pmap_mmu_optimize

* The pmap_release*() code was previously optimized to not invalidate
  on pml4, pdp, pd, or pt pte's, only on terminal ptes.  This invalidation
  interferes with the PT replacement that the pmap_mmu_optimize feature
  uses.

* The bug generally would only occur when memory is mmap()'d and munmap()'d
  multiple times, which something like postgres will not do, but which
  rtorrent and other programs will do.

* Correctly invalidate page tables (use invltlb) when PT pte's are replaced.

* Requires further testing.  Default for this feature is still off.

10 years agonrelease - Minor fixes
Antonio Huete Jimenez [Thu, 13 Mar 2014 14:25:24 +0000 (07:25 -0700)]
nrelease - Minor fixes

- Use 'reinstallkernel' to avoid leaving *.old files
  in the ISO image.
- Make sure the '/boot/kernel/kernel.BOOTP' symbolic link
  is recreated when it already exists (-f option to ln).
- Do not use '-p' to cp. In the case /etc/resolv.conf file
  has schg flag set, a later rm during nrelease would fail.

Submitted-by: YONETANI Tomokazu <y0netan1@dragonflybsd.org>
DragonFly-bug: <http://bugs.dragonflybsd.org/issues/1496>

This commit closes #1496

10 years agosbin/hammer - Add 'header' option for mirror-dump directive.
Antonio Huete Jimenez [Thu, 13 Mar 2014 11:49:33 +0000 (12:49 +0100)]
sbin/hammer - Add 'header' option for mirror-dump directive.

- Provide means to dump PFS information only via 'mirror-dump'
  directive.
- Snapshots directory is not shown at the moment.

Submitted-by: YONETANI Tomokazu <y0netan1@dragonflybsd.org>
DragonFly-bug: <http://bugs.dragonflybsd.org/issues/1497>

This commit closes #1497

10 years agotools - Fix operator in hammer-backup.sh
Antonio Huete Jimenez [Thu, 13 Mar 2014 09:43:30 +0000 (10:43 +0100)]
tools - Fix operator in hammer-backup.sh

Submitted-by: Freddy DISSAUX
10 years agotools - Fix return code in hammer-backup.sh
Antonio Huete Jimenez [Thu, 13 Mar 2014 09:25:56 +0000 (10:25 +0100)]
tools - Fix return code in hammer-backup.sh

- When requesting help with '-h', exit with return code 0.

Submitted-by: Freddy DISSAUX
10 years agoehci.4: Break a long line.
Sascha Wildner [Thu, 13 Mar 2014 09:28:03 +0000 (10:28 +0100)]
ehci.4: Break a long line.