Rui Paulo [Wed, 14 Apr 2010 11:40:21 +0000 (12:40 +0100)]
Fix build with DIAGNOSTIC.
Rui Paulo [Wed, 14 Apr 2010 11:38:03 +0000 (12:38 +0100)]
Update to new if_clone API.
Rui Paulo [Wed, 14 Apr 2010 11:37:48 +0000 (12:37 +0100)]
Fix kernel build.
Rui Paulo [Wed, 14 Apr 2010 11:37:27 +0000 (12:37 +0100)]
Fix build.
Rui Paulo [Wed, 14 Apr 2010 11:37:04 +0000 (12:37 +0100)]
Disable not yet ported drivers.
Rui Paulo [Wed, 14 Apr 2010 11:36:39 +0000 (12:36 +0100)]
Fix wlan_acl and replace kern_firmware with subr_firmware.
Rui Paulo [Wed, 14 Apr 2010 11:35:49 +0000 (12:35 +0100)]
Remove references to ether_snprintf.
Rui Paulo [Tue, 13 Apr 2010 19:49:57 +0000 (20:49 +0100)]
Add AH_SUPPORT_AR5416 always.
Rui Paulo [Tue, 13 Apr 2010 19:49:32 +0000 (20:49 +0100)]
Disable ndis for now.
Rui Paulo [Tue, 13 Apr 2010 19:49:08 +0000 (20:49 +0100)]
Fix for new net80211 options
Rui Paulo [Tue, 13 Apr 2010 18:38:09 +0000 (19:38 +0100)]
Update for new ratectl.
Rui Paulo [Tue, 13 Apr 2010 18:34:34 +0000 (19:34 +0100)]
Merge branch 'master' into net80211-update
Alex Hornung [Tue, 13 Apr 2010 16:32:08 +0000 (16:32 +0000)]
nata - Drop pending requests on dump
* Drop all pending requests in the ata queue when we are about to dump.
* This should solve issues that have been appearing lately causing a
TAILQ_NEXT panic on dumps with nata under heavy I/O.
Reported-by: Jan Lentfer (lentferj@), Antonio Huete (tuxillo@)
Obtained-from: FreeBSD
Alex Hornung [Tue, 13 Apr 2010 16:29:47 +0000 (16:29 +0000)]
ata - Fix dumping of old ata driver
* While we still have ata(4) around, make addump work properly again
with the new dumping infrastructure.
Sascha Wildner [Tue, 13 Apr 2010 06:38:19 +0000 (08:38 +0200)]
Fix i386 buildworld.
Matthew Dillon [Mon, 12 Apr 2010 17:15:51 +0000 (10:15 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Sascha Wildner [Mon, 12 Apr 2010 00:35:32 +0000 (02:35 +0200)]
sleep.9: Document mtxsleep() and tsleep_interlock().
Also, update HISTORY a bit.
Submitted-by: Venkatesh Srinivas <me@endeavour.zapto.org>
Sascha Wildner [Sat, 10 Apr 2010 22:17:32 +0000 (00:17 +0200)]
Fix LINT build.
Sascha Wildner [Sat, 10 Apr 2010 20:41:24 +0000 (22:41 +0200)]
Add -Wold-style-definition to WARNS >= 3 and fix the resulting fallout.
* Ansify a function in mount_smbfs(8).
* Lower the WARNS of some contrib/ stuff from 3 to 2.
Sascha Wildner [Sat, 10 Apr 2010 17:24:49 +0000 (19:24 +0200)]
In man9 manual pages, add some references to where the code is.
Submitted-by: Venkatesh Srinivas <me@endeavour.zapto.org>
Stathis Kamperis [Sat, 10 Apr 2010 15:56:28 +0000 (18:56 +0300)]
ACPI: Don't unlock in lock's error path
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1647>
Submitted-by: Edward O'Callaghan
YONETANI Tomokazu [Sat, 10 Apr 2010 07:24:28 +0000 (16:24 +0900)]
ACPI - disable ACPIIO_ACKSLPSTATE
It's incomplete and an undocumented option in acpiconf can trigger
a kernel panic (only as root, though).
Sascha Wildner [Sat, 10 Apr 2010 08:10:49 +0000 (10:10 +0200)]
mount_portal(8): Raise WARNS to 6.
Sascha Wildner [Sat, 10 Apr 2010 07:06:08 +0000 (09:06 +0200)]
mount_nwfs(8): Raise WARNS to 6.
Sascha Wildner [Sat, 10 Apr 2010 07:05:33 +0000 (09:05 +0200)]
Constify ncp_error()'s fmt argument.
Sascha Wildner [Sat, 10 Apr 2010 06:38:14 +0000 (08:38 +0200)]
sysctl(8): Raise WARNS to 6.
Sascha Wildner [Sat, 10 Apr 2010 06:09:06 +0000 (08:09 +0200)]
Install the boot(8) manual page too during 64 bit install.
Sascha Wildner [Sat, 10 Apr 2010 05:18:04 +0000 (07:18 +0200)]
malloc.3: Remove some phkmalloc specific info in the HISTORY section.
Reported-by: Venkatesh Srinivas <me@endeavour.zapto.org>
YONETANI Tomokazu [Sat, 10 Apr 2010 01:47:16 +0000 (10:47 +0900)]
window(1): Perform NULL check before strcmp() rather than after.
Fixes segfault upon TERM=cons25.
Jan Lentfer [Fri, 9 Apr 2010 18:39:48 +0000 (20:39 +0200)]
sili.4: Mention support for both versions of 3124 chips.
Alex Hornung [Fri, 9 Apr 2010 07:24:53 +0000 (07:24 +0000)]
linux emu - Refactor open code
* Factor out a linux_open_common that both open() and openat() use.
* While here, also use CACHE_*MPLOCK*, as is done in vfs_syscalls.c.
Alex Hornung [Fri, 9 Apr 2010 06:49:06 +0000 (06:49 +0000)]
linux emu - support O_DIRECTORY for open syscall
* Linux opendir seems to rely on O_DIRECTORY to avoid certain race
conditions, so introduce O_DIRECTORY support which just returns
ENOTDIR even if the open is successful, if the opened path is not a
directory.
* This fixes Ant's directory scanner.
Submitted-by: Johannes Hofmann
Sascha Wildner [Fri, 9 Apr 2010 05:38:27 +0000 (07:38 +0200)]
window(1): Remove __RCSID & friends.
Sascha Wildner [Fri, 9 Apr 2010 04:36:05 +0000 (06:36 +0200)]
rcorder(8): Remove __RCSID & friends.
Sascha Wildner [Thu, 8 Apr 2010 21:34:12 +0000 (23:34 +0200)]
hotplugd(8): We have __dead2 for __attribute__((__noreturn__)).
Why? Don't ask me.
Sascha Wildner [Thu, 8 Apr 2010 21:25:52 +0000 (23:25 +0200)]
hotplugd(8): Raise WARNS to 6.
Sascha Wildner [Thu, 8 Apr 2010 14:17:05 +0000 (16:17 +0200)]
look(1): Fix my previous commit.
I broke i386 behavior. Instead, take a nicer fix from NetBSD.
Sascha Wildner [Thu, 8 Apr 2010 13:36:51 +0000 (15:36 +0200)]
nrelease: Remove LiveDVD specific kernel configs and loader menu.
These were introduced in order to also offer SMP kernels (with and
without APIC_IO) from the LiveDVD. But we don't want to maintain 4
extra kernel configs just for that purpose, especially since we
have x86_64 support now which would require introducing even more
configs. The whole concept has to be re-thought.
So until we come up with a better solution, get rid of it and go
with the usual GENERIC/VKERNEL (X86_64_GENERIC/VKERNEL64 on
x86_64) combination just like we do for the LiveCD.
Sascha Wildner [Thu, 8 Apr 2010 13:09:21 +0000 (15:09 +0200)]
Fix look(1) on x86_64.
SIZE_T_MAX, being ULONG_MAX, was -1 when cast to off_t (int64_t).
Reported-by: Urmas Reinsalu <urki@klaasikoda.ee>
Rui Paulo [Thu, 8 Apr 2010 12:50:44 +0000 (13:50 +0100)]
s/firmware.h/fbsd_firmware.h/
Joe Talbott [Wed, 31 Mar 2010 23:39:44 +0000 (19:39 -0400)]
firmware - Import FreeBSD's firmware API.
This should be considered experimental. When porting code from
FreeBSD instances of #include <sys/firmware.h> should be converted
to #include <sys/fbsd_firmware.h>. I have also taken out some of
the firmware file locking code.
Rui Paulo [Thu, 8 Apr 2010 12:46:40 +0000 (13:46 +0100)]
update
Rui Paulo [Thu, 8 Apr 2010 12:46:25 +0000 (13:46 +0100)]
Sync with FreeBSD.
Rui Paulo [Thu, 8 Apr 2010 12:44:40 +0000 (13:44 +0100)]
Sync with FreeBSD.
Rui Paulo [Thu, 8 Apr 2010 12:25:32 +0000 (13:25 +0100)]
Sync with latest net80211 changes from FreeBSD, therby removing DFly's
ratectl code.
Sascha Wildner [Thu, 8 Apr 2010 12:22:07 +0000 (14:22 +0200)]
hammer.5: Add a reference to mneumann's KIT presentation slides.
Rui Paulo [Thu, 8 Apr 2010 12:16:23 +0000 (13:16 +0100)]
Do proper locking in the callout functions.
Sascha Wildner [Thu, 8 Apr 2010 11:58:10 +0000 (13:58 +0200)]
pthread.3: Update the IMPLEMENTATION NOTES to the current state of affairs.
Move information from the README to the manual page since all this
information is also interesting to people who don't have source.
Rui Paulo [Thu, 8 Apr 2010 10:45:04 +0000 (11:45 +0100)]
Disable non-ported drivers.
Sascha Wildner [Thu, 8 Apr 2010 10:04:44 +0000 (12:04 +0200)]
Add an rc script for starting vkernels upon boot.
I'm committing this for now since it works OK here and seems to be a
good thing.
Should anyone come up with better ideas for connecting to the vkernels'
consoles (as suggested by Matt and Nuno), that can go in later.
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue697>
Rui Paulo [Wed, 7 Apr 2010 18:29:39 +0000 (19:29 +0100)]
Merge branch 'master' into net80211-update
Matthew Dillon [Wed, 7 Apr 2010 16:34:43 +0000 (09:34 -0700)]
tmpfs - Add additional mount options
* Add named mount options for guid, uid, mode (root inode)
* Add named mount options ofr inodes, size, and maxfilesize.
Submitted-by: Naoya Sugioka <naoya.sugioka@gmail.com>
Stathis Kamperis [Tue, 6 Apr 2010 19:17:35 +0000 (22:17 +0300)]
mqueues: selwakeup() needs the MP lock to be held
Briefly-discussed-with: sjg@
Michael Neumann [Tue, 6 Apr 2010 18:18:47 +0000 (20:18 +0200)]
hammer volume-add / volume-del: Keep bigblock stats correct
Sascha Wildner [Mon, 5 Apr 2010 17:13:47 +0000 (19:13 +0200)]
Remove an unused target from src/Makefile.
Sascha Wildner [Mon, 5 Apr 2010 15:38:35 +0000 (17:38 +0200)]
Remove the 'update' target which was used for updating source via CVS.
Users can use the targets provided in /usr/Makefile or just 'git pull'.
See development(7).
Submitted-by: Edward O'Callaghan <eocallaghan@auroraux.org>
Sascha Wildner [Mon, 5 Apr 2010 15:29:00 +0000 (17:29 +0200)]
Sync zoneinfo database with tzdata2010h from elsie.nci.nih.gov
africa: 8.23 -> 8.24
asia: 8.58 -> 8.59
Both Tunisia and Pakistan have decided to abandon DST.
Sascha Wildner [Sun, 4 Apr 2010 17:29:04 +0000 (19:29 +0200)]
nrelease: Remove unused variable.
Matthew Dillon [Sun, 4 Apr 2010 16:23:19 +0000 (09:23 -0700)]
HAMMER Utility - Change default split size from 100MB to 4G
* Change the default split size for mirroring from 100MB to 4G. For very
large filesystems a small split size can result in very high meta-data
overheads with very little actual incremental data.
* Adjust the manual page for the split changes.
* Adjust the manual page to clarify limitations of the bandwidth option.
Sascha Wildner [Sun, 4 Apr 2010 16:06:42 +0000 (18:06 +0200)]
nrelease: Add back the creation of the /usr/local hierarchy on the LiveCD.
Even though nothing in base uses it, it's more convenient to have the
hierarchy already in place in case the user wants to install some stuff
the traditional way.
While doing this, remove the documentation of the 'fetch' target from
release.7 since this target no longer exists now that cvsup has been
removed from the LiveCD.
In-discussion-with: dillon
Sascha Wildner [Sun, 4 Apr 2010 15:21:57 +0000 (17:21 +0200)]
installer: Fix the LiveCD's /etc/fstab regarding /usr/local.
/usr/local/etc was mounted read/write (a remnant from the FreeBSD ports
era). Instead, mount /usr/pkg/etc in order to give the user a chance to
tweak the settings of the packages which come on the LiveCD.
Antonio Huete Jimenez [Sun, 4 Apr 2010 00:20:12 +0000 (02:20 +0200)]
systat - Fix a deja vu in a header file.
Sascha Wildner [Sat, 3 Apr 2010 13:37:20 +0000 (15:37 +0200)]
include/Makefile: Add vers.txt to CLEANFILES.
Matthew Dillon [Thu, 1 Apr 2010 18:06:07 +0000 (11:06 -0700)]
kernel - Address excessive stall in pageout during deadlock avoidance
* The pageout daemon uses LK_TIMELOCK to avoid deadlocking on a vnode
that might be held locked during a pfault, which waits up to 1/10 of
a second.
If the vnode has a large number of pageable pages each page may go
through the timeout. This can result in the pageout daemon stalling
for an excessive amount of time.
Reduce instances of the problem by remembering the last vnode which
failed its timelock and using LK_NOWAIT for later pages. A single
vnode is remembered for now.
Reported-by: Francois Tigeot <ftigeot@wolfpond.org>
Matthew Dillon [Thu, 1 Apr 2010 16:16:23 +0000 (09:16 -0700)]
devfs - Fix incorrect st_size reporting
* The default reported st_size should be 0 and not sizeof(devfs_node).
* Fixes incorrect reporting for /dev/null and other devices.
Reported-by: marino2, numerous others (it slipped through the cracks)
Matthew Dillon [Thu, 1 Apr 2010 16:15:17 +0000 (09:15 -0700)]
HAMMER VFS - Fix insufficient cursor change test
* The reblocking code tests whether a cursor has changed after being
unlocked. This test was insufficient and resulted in an assertion
panic. Beef up the test.
Reported-by: Jan Lentfer <Jan.Lentfer@web.de>
Alex Hornung [Wed, 31 Mar 2010 21:18:40 +0000 (21:18 +0000)]
vinum - change drive parsing
* When calling init_drive() from read_drive_label() change the static 0
with the verbose var that is passed to read_drive_label().
* Changed the way the drives are parsed in vinum_scandisk() and removed
the second iteration of detecting vinum partitions
Submitted-by: Rumko
Dragonfly-bug: http//bugs.dragonflybsd.org/issue1565
Matthew Dillon [Wed, 31 Mar 2010 20:39:36 +0000 (13:39 -0700)]
man - Add .Dx entries for 2.6 and 2.7
* Add .Dx entries for 2.6 and 2.7 so nroff -mandoc doesn't complain.
Matthew Dillon [Wed, 31 Mar 2010 20:36:34 +0000 (13:36 -0700)]
HAMMER - Adjust documentation and change default fsync_mode to 3
* The default fsync_mode is 3 (REDO heuristic with no disk flush).
This mode is contemporary with what a UFS fsync() does.
Alex Hornung [Wed, 31 Mar 2010 19:12:08 +0000 (19:12 +0000)]
devfs - remove obsolete KKASSERT
* remove an obsolete KKASSERT checking namlen in allocp, as one was able
to trigger it from userland by adding a sufficiently large link rule.
Reported-by: Sascha Wildner
Matthew Dillon [Wed, 31 Mar 2010 17:44:42 +0000 (10:44 -0700)]
vkernel - remove stale lwbuf fields in globaldata
* Remove stale lwbuf fields that are no longer used from the
vkernel's globaldata.
* Remove a now-unnecessary #include line from globaldata.h
Matthew Dillon [Wed, 31 Mar 2010 16:25:55 +0000 (09:25 -0700)]
kernel - lwbuf - Remove dead code
* Remove dead code. objcache_get() can't return NULL in this case.
Submitted-by: sjg
Matthew Dillon [Wed, 31 Mar 2010 16:14:28 +0000 (09:14 -0700)]
kernel - more lwbuf followup work
* Make lwbuf objcache only, removing all the manual per-cpu allocation
tracking. Keep the cpumask stuff. We will deal with the KVM
fragmentation issue inside objcache later on.
* This basically takes us back to Sam's original objcache implementation.
* Remove unnecessary assembly symbols (assembly didn't use those globaldata
fields). Remove related globaldata fields now that we are back to the
objcache-only implementation.
Samuel J. Greear [Wed, 31 Mar 2010 09:28:11 +0000 (03:28 -0600)]
kernel - lwbuf, don't rely on gcc auto-arrays
Samuel J. Greear [Wed, 31 Mar 2010 08:17:39 +0000 (02:17 -0600)]
kernel - make lwbuf use objcache for ephemeral mappings
* Introduce ephemeral-tagged mappings to lwbuf, these are serviced directly
from objcache.
* Add kern.ipc.lwbuf_reserve, a boot-time tuneable that controls the number
of per-cpu lwbuf's reserved by the subsystem.
* Add kern.ipw.lwbuf_count, which prints the per-cpu number of lwbufs
available for allocation.
Joe Talbott [Wed, 31 Mar 2010 14:02:40 +0000 (10:02 -0400)]
vkernel - Fix kernel build after recent lwbuf work.
Reviewed-By: sjg
Sascha Wildner [Wed, 31 Mar 2010 13:22:42 +0000 (15:22 +0200)]
Fix UP kernel build.
Matthew Dillon [Wed, 31 Mar 2010 06:45:52 +0000 (23:45 -0700)]
kernel - Fix lwbuf leak for i386
* lwbufs were not being freed back to the originating cpu, creating a
situation where an infinite number of lwbufs could be allocated.
* Refactor the lwbuf code for i386. Track the cpu in the lwbuf, remove
lwbuf_free_kvp, track the number of lwbufs on the free list for each
cpu.
Free a lwbuf back to the cpu it was originally created on.
Destroy lwbufs and related kmem if the number of free lwbufs on a cpu
exceeds 256.
* This is a temporary fix until the i386 code can be adjusted to use the
objcache again.
Sascha Wildner [Tue, 30 Mar 2010 22:03:04 +0000 (00:03 +0200)]
Raise default .Os value for the manual pages to 2.7 on 2.7.
Alex Hornung [Tue, 30 Mar 2010 19:23:39 +0000 (19:23 +0000)]
mk.conf - back out part of the previous commit
* It seems that there's no real consensus on the correctness of this, so
I'm keeping them as comments for users to easily enable.
Thanks-to: beket@
Alex Hornung [Tue, 30 Mar 2010 18:57:00 +0000 (18:57 +0000)]
mk.conf - add some more licenses, and dri
* Enable 'dri' by default for pkgsrc packages.
* Enable some licenses that come in handy for typical desktop
applications.
Sascha Wildner [Tue, 30 Mar 2010 16:14:23 +0000 (18:14 +0200)]
Move SHOW_BUSYBUFS to the platform independent kernel options file.
Submitted-by: Sylvestre Gallon <ccna.syl@gmail.com>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1702>
Sylvestre Gallon [Tue, 30 Mar 2010 15:00:51 +0000 (17:00 +0200)]
vadvise depend of COMPAT_43.
Now the kernel compile without COMPAT_43 option.
Sylvestre Gallon [Wed, 24 Mar 2010 12:45:32 +0000 (13:45 +0100)]
Allow nfe and xl to compile without DEVICE_POLLING.
Sylvestre Gallon [Wed, 24 Mar 2010 12:41:32 +0000 (13:41 +0100)]
UFS code is dependant of FFS code. It does not compile without FFS option GENERIC.
Sylvestre Gallon [Wed, 24 Mar 2010 11:54:52 +0000 (12:54 +0100)]
Allow kernel to be compile without SYSV[SHM|MSG|SEM]
Sylvestre Gallon [Wed, 24 Mar 2010 11:53:43 +0000 (12:53 +0100)]
Allow kernel to be compile without _KPOSIX_PRIORITY_SCHEDULING.
Sylvestre Gallon [Wed, 24 Mar 2010 11:52:22 +0000 (12:52 +0100)]
Allow the kernel to be compile without KTRACE option.
Sascha Wildner [Tue, 30 Mar 2010 13:31:19 +0000 (15:31 +0200)]
mandoc(1): Update to 1.9.20.
For a full list of changes, see <http://mdocml.bsd.lv/ChangeLog.html>.
Thanks-to: Kristaps Dzonsons
Rui Paulo [Tue, 30 Mar 2010 08:57:32 +0000 (09:57 +0100)]
Add ieee80211_ammr.c.
Rui Paulo [Tue, 30 Mar 2010 08:48:58 +0000 (09:48 +0100)]
Import wi(4) driver from FreeBSD.
Rui Paulo [Tue, 30 Mar 2010 08:46:14 +0000 (09:46 +0100)]
Regen
Rui Paulo [Tue, 30 Mar 2010 08:45:49 +0000 (09:45 +0100)]
Add more wi(4) devices.
Thomas Nikolajsen [Mon, 29 Mar 2010 23:49:02 +0000 (01:49 +0200)]
hammer(8): adjust markup & improve wording
Thomas Nikolajsen [Mon, 29 Mar 2010 23:33:21 +0000 (01:33 +0200)]
Merge commit 'crater/master'
Thomas Nikolajsen [Mon, 29 Mar 2010 23:28:19 +0000 (01:28 +0200)]
systat: update vmstat & improve man page
* vmstat display:
* change disk stat legend to use `/s' for (r)ead & (w)rite
* adjust `%slo-z' to show advertized value; was inverse
* rename `ofod' to `ozfod' to follow sysctl
* man page:
* include legend for more fields: easier to follow & search
* include description for extended VM stat
Thomas Nikolajsen [Mon, 29 Mar 2010 23:26:32 +0000 (01:26 +0200)]
vknet(1)/vknetd(8): improve markup, sync SYNOPSIS/usage() & update description
Default vknet socket path is /var/run/vknet;
it was updated from /dev/vknet after devfs(5) entered.
Thomas Nikolajsen [Mon, 29 Mar 2010 23:25:59 +0000 (01:25 +0200)]
swapcache.8/chflags.[12]: adjust markup & add flags to chflag.2
Thomas Nikolajsen [Mon, 29 Mar 2010 23:24:28 +0000 (01:24 +0200)]
ahci/sili.4 - Document sysctl nodes & loader tunables
Also sili(4) isn't tested on SiI3531 yet;
while in config(8) files: fix white space.
Thomas Nikolajsen [Mon, 29 Mar 2010 23:21:35 +0000 (01:21 +0200)]
dump.8/dumpfs.8/fsck.8/newfs.8/restore.8/tunefs.8: Note UFS only