dragonfly.git
73 min agohammer2 - Adjust TODO master
Matthew Dillon [Tue, 27 Jan 2015 02:07:05 +0000 (18:07 -0800)]
hammer2 - Adjust TODO

* Add bulkfree TODO items.

77 min agohammer2 - Add bulkfree directive.
Matthew Dillon [Tue, 27 Jan 2015 02:04:30 +0000 (18:04 -0800)]
hammer2 - Add bulkfree directive.

* Add a bulkfree directive for testing the bulkfree code.

80 min agohammer2 - bulkfree work 2/many
Matthew Dillon [Tue, 27 Jan 2015 02:00:53 +0000 (18:00 -0800)]
hammer2 - bulkfree work 2/many

* Compare the in-memory bitmap against the on-media bitmap and issue
  transitions.

  in-memory 00 - 11 (allocated) -> 10 (staged)
  in-memory 00 - 10 (staged)    -> 00 (free)
  in-memory 11 - 10 (staged)    -> 11 (allocated) (handles live races)

3 hours agohammer2 - Stabilize new I/O infrastructure and work on bulkfree
Matthew Dillon [Mon, 26 Jan 2015 23:48:03 +0000 (15:48 -0800)]
hammer2 - Stabilize new I/O infrastructure and work on bulkfree

* Stabilize the new asynchronous hammer_io infrastructure.

* Document the new simpler bulkfree scan algorithm.  The new algorithm
  scans meta-data in two passes, rebuilding the freemap in kernel memory.
  It then compares the map against the live media.

  The first pass transitions the freemap from (11 = allocated) to
  (10 = staged for deletion), the second pass transitions (10) either back
  to (11) if the block is found to not actually be freeable or to (00) if
  the block winds up being actually freeable.

  The two pass mechanism deals with any races and allows the scan to occur
  essentially unlocked,

* Start work on the bulkfree scan algorithm.

3 hours agokernel - Add swap-backed kernel memory allocator API
Matthew Dillon [Mon, 26 Jan 2015 23:46:25 +0000 (15:46 -0800)]
kernel - Add swap-backed kernel memory allocator API

* Add kmem_alloc_swapbacked() and kmem_free_swapbacked().  Allocates kernel
  memory which is pageable and backed by swap.

3 hours agokernel - limit backtrace-on-panic to 6 call levels
Matthew Dillon [Mon, 26 Jan 2015 23:45:11 +0000 (15:45 -0800)]
kernel - limit backtrace-on-panic to 6 call levels

* Limit the backtrace-on-panic to 6 call levels to try to keep more
  information leading up to the crash (such as the panic message) on
  row-limited consoles.

14 hours agopxeboot.8: Small adjustments.
Sascha Wildner [Mon, 26 Jan 2015 12:41:23 +0000 (13:41 +0100)]
pxeboot.8: Small adjustments.

29 hours agoopenssh: Fix version stuff.
Peter Avalos [Sun, 25 Jan 2015 22:00:28 +0000 (14:00 -0800)]
openssh: Fix version stuff.

The previous code was trying to get too fancy by trying to use
configuration options in places where those options weren't sent yet.

Fix a case in sshconnect.c where version_addendum wasn't being used.

Update README.DRAGONFLY to reflect the latest upgrade instructions.

31 hours agoMerge branch 'openssh'
Sascha Wildner [Sun, 25 Jan 2015 20:05:45 +0000 (21:05 +0100)]
Merge branch 'openssh'

31 hours agolibssh: remove some unused files vendor/OPENSSH
Robin Hahling [Sun, 25 Jan 2015 19:49:14 +0000 (20:49 +0100)]
libssh: remove some unused files

32 hours agolibssh: Fix a remaining warning and raise WARNS to 2.
Sascha Wildner [Sun, 25 Jan 2015 19:03:55 +0000 (20:03 +0100)]
libssh: Fix a remaining warning and raise WARNS to 2.

32 hours agolibssh: Silence some redefinition warnings.
Sascha Wildner [Sun, 25 Jan 2015 18:33:15 +0000 (19:33 +0100)]
libssh: Silence some redefinition warnings.

Taken-from:   FreeBSD
Submitted-by: Robin Hahling <robin.hahling@gw-computing.net>
38 hours agofile(1): Unbreak buildworld.
Sascha Wildner [Sun, 25 Jan 2015 12:54:27 +0000 (13:54 +0100)]
file(1): Unbreak buildworld.

The issue is the missing definition of wchar_t in <inttypes.h> (required
by POSIX too) which file(1) winds up needing because of new code in this
version.

The commit 3e581a72263dd3b726387b5dc2399a066511099f fixes it correctly
but mkmagic.nx is a build-tool and so uses host includes (which don't
have that <inttypes.h> fix yet at this point).

I see no other way to fix this easily right now than just including
<wchar.h>. This has a wchar_t definition, too.

Reported-by: Robin Hahling <robin.hahling@gw-computing.net>
43 hours agodrm: Implement and use the Linux version of kfree()
François Tigeot [Sun, 24 May 2015 07:53:21 +0000 (08:53 +0100)]
drm: Implement and use the Linux version of kfree()

2 days agossh: Raise WARNS back to 2.
Sascha Wildner [Sun, 25 Jan 2015 03:09:47 +0000 (04:09 +0100)]
ssh: Raise WARNS back to 2.

2 days agossh: Add a missing include for bindresvport_sa().
Sascha Wildner [Sun, 25 Jan 2015 02:50:33 +0000 (03:50 +0100)]
ssh: Add a missing include for bindresvport_sa().

2 days agorc.d/sshd: Simplify key generation.
Peter Avalos [Sat, 24 Jan 2015 23:10:51 +0000 (15:10 -0800)]
rc.d/sshd: Simplify key generation.

ssh-keygen(1) already provides the functionality we were previously
trying to do here with its -A flag, except now it will reduce the
maintenance burden of having to update this file when there are new key
types.

2 days agoUpdate files for file-5.22 import.
Peter Avalos [Sat, 24 Jan 2015 22:56:40 +0000 (14:56 -0800)]
Update files for file-5.22 import.

2 days agoImport file-5.22.
Peter Avalos [Sat, 24 Jan 2015 20:48:01 +0000 (12:48 -0800)]
Import file-5.22.

2 days agointtypes.h: Add typedef for wchar_t.
Peter Avalos [Sat, 24 Jan 2015 22:36:29 +0000 (14:36 -0800)]
inttypes.h: Add typedef for wchar_t.

2 days agoMerge new origin commits.
Peter Avalos [Sat, 24 Jan 2015 20:15:30 +0000 (12:15 -0800)]
Merge new origin commits.

2 days agoliblvm: Request _XOPEN_SOURCE=700 for alphasort() prototype.
Sascha Wildner [Sat, 24 Jan 2015 13:09:48 +0000 (14:09 +0100)]
liblvm: Request _XOPEN_SOURCE=700 for alphasort() prototype.

2 days ago<dirent.h>: Don't check _POSIX_SOURCE.
Sascha Wildner [Sat, 24 Jan 2015 13:19:59 +0000 (14:19 +0100)]
<dirent.h>: Don't check _POSIX_SOURCE.

Use the __POSIX_VISIBLE, __XSI_VISIBLE and __BSD_VISIBLE macros, per
<sys/cdefs.h>.

2 days agolibc: Change dirfd() into a function (needed per POSIX).
Sascha Wildner [Sat, 24 Jan 2015 13:15:08 +0000 (14:15 +0100)]
libc: Change dirfd() into a function (needed per POSIX).

At the same time, make struct _dirdesc private to libc. If access
to dd_fd is needed, dirfd() has to be used. Inside libc, the former
dirfd() macro is preserved as _dirfd().

Also, in struct _dirdesc, change the lock from "void *" to
"struct pthread_mutex *". This allows us to eliminate some casts
in readdir() and friends.

Our documentation already describes dirfd() as a function.

Based-on: FreeBSD's similar work

2 days ago<dirent.h>: Adjust whitespace better (no functional change).
Sascha Wildner [Sat, 24 Jan 2015 13:11:54 +0000 (14:11 +0100)]
<dirent.h>: Adjust whitespace better (no functional change).

2 days agodrm: Improve linux/jiffies.h
François Tigeot [Sat, 24 Jan 2015 11:11:27 +0000 (12:11 +0100)]
drm: Improve linux/jiffies.h

2 days agodrm: Improve linux/pci.h
François Tigeot [Sat, 24 Jan 2015 10:56:16 +0000 (11:56 +0100)]
drm: Improve linux/pci.h

* Add struct pci_device_id

* Add PCI_DEVFN, obtained from FreeBSD's OFED subsystem

2 days agodrm: Add linux/backlight.h
François Tigeot [Sat, 24 Jan 2015 10:52:03 +0000 (11:52 +0100)]
drm: Add linux/backlight.h

2 days agoRemove blacklisted keys support from OpenSSH.
Peter Avalos [Sat, 24 Jan 2015 07:25:04 +0000 (23:25 -0800)]
Remove blacklisted keys support from OpenSSH.

As time progresses, this code becomes less useful. I left the code that
still scans the configuration option, and in the future it can be
removed as well.

The original author made a decent case for removing this in 2013:
https://lists.debian.org/debian-devel/2013/09/msg00240.html

2 days agoUpdate files for OpenSSH-6.7p1 import.
Peter Avalos [Sat, 24 Jan 2015 05:38:03 +0000 (21:38 -0800)]
Update files for OpenSSH-6.7p1 import.

This also updates the HPN patch to the most recent, which brings in the
multi-threaded cipher for improved performance.

3 days agosys/vfs/hammer: make description on low level storage layout up-to-date with code
Tomohiro Kusumi [Tue, 13 Jan 2015 11:13:28 +0000 (20:13 +0900)]
sys/vfs/hammer: make description on low level storage layout up-to-date with code

- This patch fixes description regarding hammer's low level storage
  layout based on two levels of blockmap layer. It aims to make the
  description explicit and up-to-date with what the actual code
  does.

Closes: #2767

3 days agopxeboot - Add option to improve NFS performance
Matthew Dillon [Fri, 23 Jan 2015 19:28:15 +0000 (11:28 -0800)]
pxeboot - Add option to improve NFS performance

* Allow nfs.read_size=N to be specified in /boot/loader.conf
  (1024-4096 allowed).  This allows the pxe server to tell
  the pxeboot code to use larger NFS data packets, significantly
  reducing kernel binary and module load times.

3 days agopxeboot - Workaround BIOS breakage
Matthew Dillon [Fri, 23 Jan 2015 08:30:38 +0000 (00:30 -0800)]
pxeboot - Workaround BIOS breakage

* Some BIOSes (the one in my Gigabyte H97N-WIFI) continue to use the original
  negotiated by the TFTP preloader even after we have negotiated a new IP
  and used it in the udpopen.  This will cause our dest_ip filter in
  udpread() to implode.  Detect and handle this case.

* Why does dhcpd hand out different IPs?  I tracked one down to the PXE
  BIOS sending a Client-ID option.  However, our PXEBOOT DHCP and our
  dhclient don't seem to send that option and also get different IPs.

* This won't fix post-boot breakage if dhclient rips the IP out from under
  the NFS root mount in a pxebooted situation.

3 days agolibstand - Don't allow the port# to underflow.
Matthew Dillon [Fri, 23 Jan 2015 08:29:26 +0000 (00:29 -0800)]
libstand - Don't allow the port# to underflow.

* Recycle port numbers if our decrement would underflow a reasonable
  low port.

3 days agoMerge branch 'vendor/OPENSSH'
Peter Avalos [Fri, 23 Jan 2015 05:54:26 +0000 (21:54 -0800)]
Merge branch 'vendor/OPENSSH'

3 days agoImport OpenSSH-6.7p1.
Peter Avalos [Wed, 26 Nov 2014 20:54:34 +0000 (12:54 -0800)]
Import OpenSSH-6.7p1.

4 days agokernel/usb4bsd: Remove unused malloc type declaration.
Sascha Wildner [Thu, 22 Jan 2015 22:39:27 +0000 (23:39 +0100)]
kernel/usb4bsd: Remove unused malloc type declaration.

4 days agokinfo.3: Fix prototype.
Sascha Wildner [Thu, 22 Jan 2015 22:23:07 +0000 (23:23 +0100)]
kinfo.3: Fix prototype.

4 days agoalc.4: Update the manual page for today's upgrade.
Sascha Wildner [Thu, 22 Jan 2015 14:59:00 +0000 (15:59 +0100)]
alc.4: Update the manual page for today's upgrade.

4 days agoinet6: Remove detecting of aggregatable unicast address (RFC2374).
Sepherosa Ziehau [Thu, 22 Jan 2015 07:54:24 +0000 (15:54 +0800)]
inet6: Remove detecting of aggregatable unicast address (RFC2374).

It has been deprecated for a long time.

Submitted-by: gpr
Dragonfly-bug: 2774

4 days agoecc: No need to go through parent device explicitly
Sepherosa Ziehau [Wed, 21 Jan 2015 14:17:05 +0000 (22:17 +0800)]
ecc: No need to go through parent device explicitly

4 days agoalc: Fix up MSI configuration
Sepherosa Ziehau [Thu, 22 Jan 2015 07:51:54 +0000 (15:51 +0800)]
alc: Fix up MSI configuration

Tested-by: dillon@
4 days agokernel - Update if_alc
Matthew Dillon [Thu, 22 Jan 2015 04:47:07 +0000 (20:47 -0800)]
kernel - Update if_alc

* Bring in everything FreeBSD has for if_alc.  This adds a few more
  generations including the one used (for the hardport) by my new
  Gigabyte H97N-WIFI mobo.

* Update mii as well.

* Disable MSI for now, doesn't seem to work with my test box.

Taken-From: FreeBSD

4 days agodrm - Add another Haswell graphics chipid
Matthew Dillon [Thu, 22 Jan 2015 04:45:09 +0000 (20:45 -0800)]
drm - Add another Haswell graphics chipid

* Add the gpu identified by the i3-4130 (haswell)

4 days agokernel - audio Makefile needs opt_snd.h
Matthew Dillon [Thu, 22 Jan 2015 04:44:30 +0000 (20:44 -0800)]
kernel - audio Makefile needs opt_snd.h

* Audio Makefile depends on opt_snd.h.

4 days agokernel - Add more definitions to pcireg.h
Matthew Dillon [Thu, 22 Jan 2015 04:43:54 +0000 (20:43 -0800)]
kernel - Add more definitions to pcireg.h

* Add more definitions to pcireg.h

Taken-From: FreeBSD

5 days agoacpi: Don't set non-exist EXT IRQ
Sepherosa Ziehau [Thu, 22 Jan 2015 01:33:04 +0000 (09:33 +0800)]
acpi: Don't set non-exist EXT IRQ

Certain mobo, e.g. gigabyte H97N-WIFI, reports EXT IRQ 37 and 38,
which do not exist at all (max legacy IRQ is 23).  Don't set bus
resource for this kind of IRQ resources.

Tested-by: dillon@
5 days agoecc: Use identify to add ecc device for E3-1200 memory controllers
Sepherosa Ziehau [Wed, 21 Jan 2015 12:50:25 +0000 (20:50 +0800)]
ecc: Use identify to add ecc device for E3-1200 memory controllers

Misc
- Disable ecc for X3400 temporarily; it seems to use E5 style ecc
  registers accessing method, which needs further investigation.
- Ecc should not be forcefully added to hostb

Tested-by: dillon@ on E3-1200 and E3-1200v3
5 days agoAdd a manual page for libkinfo (one for libkcore is still missing).
Sascha Wildner [Wed, 21 Jan 2015 23:48:00 +0000 (00:48 +0100)]
Add a manual page for libkinfo (one for libkcore is still missing).

5 days agorconfig - A couple additions to hammer.sh
Antonio Huete Jimenez [Wed, 21 Jan 2015 22:42:41 +0000 (23:42 +0100)]
rconfig - A couple additions to hammer.sh

Submitted-by: Rumko
Closes: #1173

5 days agolibkvm - Remove unused file
Antonio Huete Jimenez [Wed, 21 Jan 2015 22:33:02 +0000 (23:33 +0100)]
libkvm - Remove unused file

6 days agosysctl.3: Use .Vt instead of .Va for types.
Imre Vadasz [Tue, 20 Jan 2015 23:23:45 +0000 (00:23 +0100)]
sysctl.3: Use .Vt instead of .Va for types.

6 days agosysctl.3: Fix documentation of KERN_FILE.
Imre Vadasz [Tue, 20 Jan 2015 22:27:48 +0000 (23:27 +0100)]
sysctl.3: Fix documentation of KERN_FILE.

6 days agosys/vfs/hammer: make btree_search() climb up btree slightly faster
Tomohiro Kusumi [Thu, 8 Jan 2015 15:13:59 +0000 (00:13 +0900)]
sys/vfs/hammer: make btree_search() climb up btree slightly faster

- This cleanup patch lets cursor climb up deep/fat btree slightly faster
  (lightweight), if not slower.
- Remove a duplicate check that traces back to a moment where there was
  btree_node_is_almost_full() and the differentiation was needed.

Closes: #2765

6 days agosbin/hammer: fix potential memory leak
Tomohiro Kusumi [Mon, 12 Jan 2015 16:37:09 +0000 (01:37 +0900)]
sbin/hammer: fix potential memory leak

- This patch properly frees calloc/malloced memory.

Closes: #2766

6 days agosys/vfs/hammer: fix comments regarding obsolete "spike" code
Tomohiro Kusumi [Thu, 8 Jan 2015 12:29:12 +0000 (21:29 +0900)]
sys/vfs/hammer: fix comments regarding obsolete "spike" code

- This patch fixes comments regarding "spike" code that only existed in
  early days of hammer development.
- The spike comments have been left unchanged even after the code was
  removed in 47197d71536907482d2d215e222600eed3aedc0e.

Closes: #2764

6 days agosbin/hammer: remove obsolete "spike" code from hammer show command
Tomohiro Kusumi [Wed, 7 Jan 2015 12:45:43 +0000 (21:45 +0900)]
sbin/hammer: remove obsolete "spike" code from hammer show command

- Remove spike related code from print_btree_node() as it is no longer
  relevant since commit 47197d.
- Not calling print_btree_node() twice makes 'show' directive more
  efficient.

Closes: #2761

6 days agosys/vfs/hammer: fix off-by-one error in hammer volume-add ioctl
Tomohiro Kusumi [Sun, 18 Jan 2015 18:26:47 +0000 (03:26 +0900)]
sys/vfs/hammer: fix off-by-one error in hammer volume-add ioctl

- This patch should fix off-by-one error regarding maximum volume number.
- Correct how hammer_ioc_volume_add() tests current # of volumes before
  it adds a new volume.

Closes: #2773

7 days agoFix the man page: make sure all list items are bolded and a grammar tweak.
Justin C. Sherrill [Tue, 20 Jan 2015 02:24:54 +0000 (21:24 -0500)]
Fix the man page: make sure all list items are bolded and a grammar tweak.

Based on OpenBSD and FreeBSD changes that are exactly the same.

http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/editors/ee/patches/patch-ee_1?rev=1.4&content-type=text/x-cvsweb-markup&f=h

https://svnweb.freebsd.org/base/head/contrib/ee/ee.1?r1=276230&r2=277328&pathrev=277328

7 days agoecc: Implement detach and shutdown methods
Sepherosa Ziehau [Mon, 19 Jan 2015 13:30:04 +0000 (21:30 +0800)]
ecc: Implement detach and shutdown methods

While I'm here, clean up indentation.

7 days agosysctl.3: Remove KERN_UPDATEINTERVAL identifier. Fix a copy-paste error.
Imre Vadasz [Mon, 19 Jan 2015 22:35:00 +0000 (23:35 +0100)]
sysctl.3: Remove KERN_UPDATEINTERVAL identifier. Fix a copy-paste error.

7 days agokernel - limit DMA for older ALI chips to 256KB
Matthew Dillon [Mon, 19 Jan 2015 17:09:05 +0000 (09:09 -0800)]
kernel - limit DMA for older ALI chips to 256KB

* For ancient machines using old ALI chipsets which do
  not support 48-bit DMA, also limit the maximum DMA
  size to 256KB.

7 days agoipfw2 - Fix buffer overflow with large tables
Matthew Dillon [Mon, 19 Jan 2015 17:04:07 +0000 (09:04 -0800)]
ipfw2 - Fix buffer overflow with large tables

* Fix according to PR 1753.

Taken-from: FreeBSD

7 days agohammer - Attempt to fix improper call to vsetisdirty() in hammer flush
Matthew Dillon [Mon, 19 Jan 2015 04:17:42 +0000 (20:17 -0800)]
hammer - Attempt to fix improper call to vsetisdirty() in hammer flush

* The hammer flush occurs in the background.  Because of this it is possible
  for a vnode to be reclaimed just prior to the flush code getting to it.

* Attempt to fix an improper call to vsetisdirty() which can panic the machine
  on vp->v_mount becoming NULL.  The vnode reclamation should theoretically be
  interlocked against the inode lock so it should suffice to simply check
  to see if it has been reclaimed yet or not.

* Also don't bother marking the vnode dirty if it is already marked dirty.

8 days agoinet: Link ifa after ifa_{addr,dstaddr,netmask} are setup
Sepherosa Ziehau [Sun, 18 Jan 2015 13:53:36 +0000 (21:53 +0800)]
inet: Link ifa after ifa_{addr,dstaddr,netmask} are setup

While I'm here, remove unused in_interfaces.

8 days agobnx/bge: Add miibus module dependency
Sepherosa Ziehau [Sun, 18 Jan 2015 13:19:27 +0000 (21:19 +0800)]
bnx/bge: Add miibus module dependency

8 days agommap.2: A little markup..
Sascha Wildner [Sun, 18 Jan 2015 20:53:54 +0000 (21:53 +0100)]
mmap.2: A little markup..

8 days agoptrace.2: Document the PT_IO request.
Imre Vadasz [Sun, 18 Jan 2015 13:06:43 +0000 (14:06 +0100)]
ptrace.2: Document the PT_IO request.

Taken-from: FreeBSD

8 days agosysctl.3: Fix a typo. Document the HW_MACHINE_PLATFORM identifier.
Imre Vadasz [Sun, 18 Jan 2015 13:07:34 +0000 (14:07 +0100)]
sysctl.3: Fix a typo. Document the HW_MACHINE_PLATFORM identifier.

8 days agosysctl.3: Use .Dv where appropriate, use nicer syntax in tables.
Imre Vadasz [Sun, 18 Jan 2015 09:15:35 +0000 (10:15 +0100)]
sysctl.3: Use .Dv where appropriate, use nicer syntax in tables.

Mostly-taken-from: OpenBSD

8 days agommap.2: Update manpage to reflect the introduction of MAP_ANONYMOUS
Markus Pfeiffer [Sun, 18 Jan 2015 17:23:31 +0000 (17:23 +0000)]
mmap.2: Update manpage to reflect the introduction of MAP_ANONYMOUS

8 days agokernel: Exchange MAP_ANON and MAP_ANONYMOUS
Markus Pfeiffer [Sun, 18 Jan 2015 17:06:58 +0000 (17:06 +0000)]
kernel: Exchange MAP_ANON and MAP_ANONYMOUS

* In commit a2ed5072 I defined MAP_ANONYMOUS to take the role of
  MAP_ANON, and defined MAP_ANON as an alias. This lead to compatibility
  problems with programs that #define MAP_ANONYMOUS MAP_ANON, so
  #define MAP_ANON as before and let MAP_ANONYMOUS be the alias.

Reported-By: John Marino <draco@marino.st>
8 days agodrm: Sync drm_edid.c and drm_modes.c with Linux 3.9.11
François Tigeot [Sun, 18 Jan 2015 09:50:27 +0000 (10:50 +0100)]
drm: Sync drm_edid.c and drm_modes.c with Linux 3.9.11

8 days agodrm: Move vbl_lock initialization to the right place
François Tigeot [Sun, 18 Jan 2015 08:00:07 +0000 (09:00 +0100)]
drm: Move vbl_lock initialization to the right place

Reducing differences with Linux 3.9.11

9 days agosysctl.3: Document the KERN_PROC_CWD sysctl name. Explain KERN_PROC_ARGS.
Imre Vadasz [Sat, 17 Jan 2015 22:02:31 +0000 (23:02 +0100)]
sysctl.3: Document the KERN_PROC_CWD sysctl name. Explain KERN_PROC_ARGS.

Partly-taken-from: FreeBSD

9 days agohammer - cleanup arg names in procedural prototypes - PR 2770
Matthew Dillon [Sat, 17 Jan 2015 21:00:13 +0000 (13:00 -0800)]
hammer - cleanup arg names in procedural prototypes - PR 2770

* Cleanup procedural prototypes to match code.

Submitted-by: tkusumi PR/2770.
9 days agohammer - bring-in cleanup from PR 2771 and 2772
Matthew Dillon [Sat, 17 Jan 2015 20:46:01 +0000 (12:46 -0800)]
hammer - bring-in cleanup from PR 2771 and 2772

* Bring in a macro/inline cleanup that makes the code
  a bit more clear.

Submitted-by: tkusumi
9 days agosys/vfs/hammer: cleanup using existing macro
Tomohiro Kusumi [Fri, 26 Dec 2014 20:38:02 +0000 (05:38 +0900)]
sys/vfs/hammer: cleanup using existing macro

- This patch is a cleanup with no change to behavior of
  hammer_ip_check_directory_empty().
- Using existing macro as well as a new macro HAMMER_RECTYPE_ENTRY_START
  (in the same fashion as HAMMER_RECTYPE_CLEAN_START) makes it easier to
  understand what this function is doing (just like other functions that
  use both key_beg/key_end do).

Closes: #2752

9 days agosbin/hammer: fix counter-intuitive output of hammer show command
Tomohiro Kusumi [Tue, 30 Dec 2014 23:16:28 +0000 (08:16 +0900)]
sbin/hammer: fix counter-intuitive output of hammer show command

- Change 'hammer show' ELM output to match the comparison order in the
  RB tree cmp functions.

Closes: #2755

9 days agosbin/hammer: fix output of hammer blockmap command
Tomohiro Kusumi [Thu, 27 Nov 2014 18:40:53 +0000 (03:40 +0900)]
sbin/hammer: fix output of hammer blockmap command

- Correctly name the zone being dumped.

Closes: #2740

9 days agokernel/ath: Add missing braces (FreeBSD's r277290).
Sascha Wildner [Sat, 17 Jan 2015 08:05:56 +0000 (09:05 +0100)]
kernel/ath: Add missing braces (FreeBSD's r277290).

10 days agokernel - Augment resource_string_value() to check kenv.
Matthew Dillon [Sat, 17 Jan 2015 01:58:21 +0000 (17:58 -0800)]
kernel - Augment resource_string_value() to check kenv.

* resource_string_value() now checks for a kenv hint called
  <devname><unit>.<resourcename>, similar to how resource_int_value()
  and resource_long_value() work.

10 days agopowerd - Add an EXAMPLES section to the manual
Matthew Dillon [Sat, 17 Jan 2015 00:08:44 +0000 (16:08 -0800)]
powerd - Add an EXAMPLES section to the manual

* Add an EXAMPLES section with a suggestion for workstation settings.

10 days agopowerd - Add options to set poll_rate and sample_time, adjust idle algorithm
Matthew Dillon [Fri, 16 Jan 2015 23:44:41 +0000 (15:44 -0800)]
powerd - Add options to set poll_rate and sample_time, adjust idle algorithm

* Add -r poll_rate and -T sample_time.  The user can adjust the values
  to e.g. make a workstation react more quickly to UI operations coming
  out of idle and to take longer to return to idle.

* Use a shorter averaging time (3 poll intervals) for ratcheting up the
  speed and a longer averaging time (adjustable by -T) for ratcheting down
  the speed.

* Enhance the manual page, describe default values and make suggestions.

10 days agoypclnt.3: Add missing parameter type.
Sascha Wildner [Fri, 16 Jan 2015 19:21:12 +0000 (20:21 +0100)]
ypclnt.3: Add missing parameter type.

10 days agolibusb20.3: Add missing function type.
Sascha Wildner [Fri, 16 Jan 2015 17:05:58 +0000 (18:05 +0100)]
libusb20.3: Add missing function type.

10 days agoLINT64: Document the kernel options of the sound stack.
Sascha Wildner [Fri, 16 Jan 2015 08:55:48 +0000 (09:55 +0100)]
LINT64: Document the kernel options of the sound stack.

Also, comment out SND_DIAGNOSTIC which is currently broken.

10 days agokernel: Define HAVE_KERNEL_OPTION_HEADERS when building kernel/modules.
Sascha Wildner [Fri, 16 Jan 2015 08:54:35 +0000 (09:54 +0100)]
kernel: Define HAVE_KERNEL_OPTION_HEADERS when building kernel/modules.

It gets defined when building the kernel and when building modules
along with the kernel.

FreeBSD wraps some of their #include "opt_blah.h" in it and it should
ease porting $stuff from them.

It also makes the kernel options of the sound stack actually work.

10 days agouio.9: uiomove() takes size_t, not int.
Sascha Wildner [Fri, 16 Jan 2015 08:43:14 +0000 (09:43 +0100)]
uio.9: uiomove() takes size_t, not int.

10 days agopfil.9: pfil_{add,remove}_hook() return int.
Sascha Wildner [Fri, 16 Jan 2015 08:20:45 +0000 (09:20 +0100)]
pfil.9: pfil_{add,remove}_hook() return int.

10 days agoeditline.3: Ansify two prototypes.
Sascha Wildner [Fri, 16 Jan 2015 08:01:44 +0000 (09:01 +0100)]
editline.3: Ansify two prototypes.

11 days agoopenssl: Adjust manual pages for 1.0.1l.
Sascha Wildner [Thu, 15 Jan 2015 20:25:46 +0000 (21:25 +0100)]
openssl: Adjust manual pages for 1.0.1l.

11 days agoMerge branch 'vendor/OPENSSL'
Sascha Wildner [Thu, 15 Jan 2015 21:18:26 +0000 (22:18 +0100)]
Merge branch 'vendor/OPENSSL'

11 days agodrm - Fix a second X lockup w/radeon ttm
Matthew Dillon [Thu, 15 Jan 2015 20:59:51 +0000 (12:59 -0800)]
drm - Fix a second X lockup w/radeon ttm

* Code which releases bo->reserved and wakes up waiters was
  not interlocked against wait_event_common() used to wait
  for the release.  This can result in a race where the
  release occurs inbetween the wait's test and its sleep,
  preventing the wait from ever waking up.

* This is different from the recent dev_pager_mtx deadlock which
  was recently fixed, but in the same code path.

* Roll the release of bo->reserved into a static function
  and throw the bo->event_queue.lock around the actual
  release to fix the race.

11 days agoImport OpenSSL-1.0.1l. vendor/OPENSSL
Sascha Wildner [Thu, 15 Jan 2015 20:22:00 +0000 (21:22 +0100)]
Import OpenSSL-1.0.1l.

* Fixes for CVE-2014-3571, CVE-2015-0206, CVE-2014-3569, CVE-2014-3572,
  CVE-2015-0204, CVE-2015-0205, CVE-2014-8275 and CVE-2014-3570.

* Ensure that the session ID context of an SSL is updated when its
  SSL_CTX is updated via SSL_set_SSL_CTX.

* Do not resume sessions on the server if the negotiated protocol
  version does not match the session's version.

* Tighten handling of the ChangeCipherSpec (CCS) message.

* Tighten client-side session ticket handling during renegotiation.

Also, while here, remove the doc/ subdirectory on the vendor branch.
We don't need to distribute it in contrib/.

11 days agokernel/sound: Fix typos in user visible messages etc.
Sascha Wildner [Thu, 15 Jan 2015 15:57:51 +0000 (16:57 +0100)]
kernel/sound: Fix typos in user visible messages etc.

11 days agoumtx.2/quick_exit.3: Fix some prototypes.
Sascha Wildner [Thu, 15 Jan 2015 13:19:38 +0000 (14:19 +0100)]
umtx.2/quick_exit.3: Fix some prototypes.

11 days agotruss(1): Retry opening /proc/%d/mem when errno == EAGAIN.
Imre Vadasz [Thu, 15 Jan 2015 11:04:10 +0000 (12:04 +0100)]
truss(1): Retry opening /proc/%d/mem when errno == EAGAIN.

11 days agolibedit: Install and use the correct <histedit.h>.
Sascha Wildner [Thu, 15 Jan 2015 10:15:19 +0000 (11:15 +0100)]
libedit: Install and use the correct <histedit.h>.

Ever since libedit was moved to contrib/ back in May 2012 (c22639f2f9ab7)
we were still installing the previous <histedit.h> from /usr/src/include.

11 days agoUpdate the pciconf(8) database.
Sascha Wildner [Thu, 15 Jan 2015 08:56:34 +0000 (09:56 +0100)]
Update the pciconf(8) database.

January 5, 2015 snapshot from http://pciids.sourceforge.net/