]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years agoCopy libarchive from vendor branch to contrib
Martin Matuska [Wed, 21 Dec 2011 11:09:24 +0000 (11:09 +0000)]
Copy libarchive from vendor branch to contrib

MFC after: 2 weeks

12 years agoadapt usb transfer code for SCHEDULER_STOPPED
Andriy Gapon [Wed, 21 Dec 2011 10:52:17 +0000 (10:52 +0000)]
adapt usb transfer code for SCHEDULER_STOPPED

When SCHEDULER_STOPPED() is true the mtx_owned() call may return
an unexpected and thus meaningless result.
So, in the code paths that can be reached when SCHEDULER_STOPPED() is true
we need to protect the mtx_owned() calls with the SCHEDULER_STOPPED()
checks and ensure that an appropriate branch is taken in each case.

Reviewed by: hselasky
MFC after: 3 months
X-MFC after: r228424

12 years agoSet svn:eol-style property to native for all text files in vendor/libarchive
Martin Matuska [Wed, 21 Dec 2011 09:08:41 +0000 (09:08 +0000)]
Set svn:eol-style property to native for all text files in vendor/libarchive

12 years agoFix for race against user-space applications trying to change the
Hans Petter Selasky [Wed, 21 Dec 2011 08:46:08 +0000 (08:46 +0000)]
Fix for race against user-space applications trying to change the
configuration on USB HUBs.

PR: kern/163091
MFC after: 1 week

12 years agojwd@ reported a problem via email where the old NFS client would
Rick Macklem [Wed, 21 Dec 2011 02:45:51 +0000 (02:45 +0000)]
jwd@ reported a problem via email where the old NFS client would
get a reply of EEXIST from an NFS server when a Mkdir RPC was retried,
for an NFS over UDP mount.
Upon investigation, it was found that the client was retransmitting
the Mkdir RPC request over UDP, but with a different xid. As such,
the retransmitted message would miss the Duplicate Request Cache
in the server, causing it to reply EEXIST. The kernel client side
UDP rpc code has two timers. The first one causes a retransmit using
the same xid and socket and was set to a fixed value of 3seconds.
(The default can be overridden via CLSET_RETRY_TIMEOUT.)
The second one creates a new socket and xid and should be larger
than the first. However, both NFS clients were setting the second
timer to nm_timeo ("timeout=<value>" mount argument), which defaulted to
1second, so the first timer would never time out.
This patch fixes both NFS clients so that they set the first timer
using nm_timeo and makes the second timer larger than the first one.

Reported by: jwd
Tested by: jwd
Reviewed by: jhb
MFC after: 2 weeks

12 years agoClean an inconsistency with -ffinite-math-only.
Pedro F. Giffuni [Wed, 21 Dec 2011 01:58:35 +0000 (01:58 +0000)]
Clean an inconsistency with -ffinite-math-only.
Backported from the gcc-4_3-branch, revision 118001,
under the GPLv2.

This issue was also fixed in Apple's gcc.

PR: 157025
Reviewed by: mm
Approved by: jhb (mentor)
MFC: 2 weeks

12 years ago- Fix style(9) bugs in glob.c
Eitan Adler [Tue, 20 Dec 2011 22:56:44 +0000 (22:56 +0000)]
- Fix style(9) bugs in glob.c

Approved by: jilles

12 years ago- Add restrict keyword to glob(3)
Eitan Adler [Tue, 20 Dec 2011 22:56:13 +0000 (22:56 +0000)]
- Add restrict keyword to glob(3)

PR: kern/161958
Submitted by: Henning Petersen <henning.petersen@t-online.de>
Approved by: jilles
MFC after: 3 days

12 years agoVendor import of libarchive (release/2.8, r3824)
Martin Matuska [Tue, 20 Dec 2011 22:47:56 +0000 (22:47 +0000)]
Vendor import of libarchive (release/2.8, r3824)

Obtained from: http://libarchive.googlecode.com/svn/release/2.8

12 years agoAdd myself with mentor relationships
Jason Helfman [Tue, 20 Dec 2011 21:16:49 +0000 (21:16 +0000)]
Add myself with mentor relationships
Add tabthorpe -> crees

Approved by: crees (mentor)

12 years agoChange the type of real_dev_bsize variable from long to u_int.
Konstantin Belousov [Tue, 20 Dec 2011 20:39:00 +0000 (20:39 +0000)]
Change the type of real_dev_bsize variable from long to u_int.
The DIOCGSECTORSIZE takes u_int * as an argument, using long *
causes failures on big-endian targets.

Diagnosed by: Michiel Boland <boland37 xs4all nl>
PR: sparc64/163460
Tested by: pho (x86), flo (sparc64)
MFC after: 1 week

12 years agoSync bsdcpio with vendor branch release/2.8:
Martin Matuska [Tue, 20 Dec 2011 20:37:17 +0000 (20:37 +0000)]
Sync bsdcpio with vendor branch release/2.8:

Revision 3770:
Merge r3768 from trunk: Fix typo in dev/ino verification for cpio formats.

Obtained from: http://code.google.com/p/libarchive
MFC after: 2 weeks

12 years agoSync bsdtar with vendor branch release/2.8:
Martin Matuska [Tue, 20 Dec 2011 20:36:00 +0000 (20:36 +0000)]
Sync bsdtar with vendor branch release/2.8:

Revision 3769:
Merge r3744 from trunk:  Correctly return errors when reading
an archive using @archive extension.

Obtained from: http://code.google.com/p/libarchive
MFC after: 2 weeks

12 years agoSync libarchive with vendor branch release/2.8:
Martin Matuska [Tue, 20 Dec 2011 20:34:02 +0000 (20:34 +0000)]
Sync libarchive with vendor branch release/2.8:

3730:
Fix issue 174 (Windows path names, not relevant for FreeBSD)

3734:
Merge r1989: archive_clear_error should set errno to 0.

3735:
Merge r3247 from trunk: Clear errors before returning
from archive_read_support_format_all()

3799:
Check the position before dereferencing the pointer.
This avoids dereferencing one byte past the end of a string

3824:
Merge r3823 from trunk for issue 199 (hang in iso9660 reading)

Obtained from: http://code.google.com/p/libarchive
MFC after: 2 weeks

12 years agoThe size passed to kmem functions should be in terms of bytes and not
Alan Cox [Tue, 20 Dec 2011 20:29:45 +0000 (20:29 +0000)]
The size passed to kmem functions should be in terms of bytes and not
pages.

Avoid an out-of-bounds array access.

Reviewed by: cperciva

12 years agoThe Xen pmap doesn't support superpages. So, there is no point in it
Alan Cox [Tue, 20 Dec 2011 20:16:12 +0000 (20:16 +0000)]
The Xen pmap doesn't support superpages.  So, there is no point in it
initializing structures, like the pv table, that are only used to
implement superpages.  In fact, some of the unnecessary code in
pmap_init() was actually doing harm.  It was preventing the kernel from
booting on virtual machines with more than 768 MB of memory.

Tested by: sbruno

12 years agoUpdate libarchive, tar and cpio to version 2.8.5
Martin Matuska [Tue, 20 Dec 2011 20:06:33 +0000 (20:06 +0000)]
Update libarchive, tar and cpio to version 2.8.5

The following additional vendor revisions are applied:

Revision 3740:
Use archive_clear_error() to clear the error markers.

Obtained from: http://code.google.com/p/libarchive
MFC after: 2 weeks

12 years agoMerge vendor revision 3723:
Martin Matuska [Tue, 20 Dec 2011 20:02:07 +0000 (20:02 +0000)]
Merge vendor revision 3723:
Fixes extraction of Zip entries that use length-at-end without specifying
either the compressed or uncompressed length.  In particular, fixes bsdtar
extraction of such files.

Obtained from: http://code.google.com/p/libarchive
Reported by: Patrick Lamaiziere <patfbsd@davenulle.org> (freebsd-stable@)
MFC after: 1 week

12 years agoAdd some more cross-references.
Alexander Motin [Tue, 20 Dec 2011 17:44:25 +0000 (17:44 +0000)]
Add some more cross-references.

12 years agoFix copy-paste typo.
Alexander Motin [Tue, 20 Dec 2011 17:32:13 +0000 (17:32 +0000)]
Fix copy-paste typo.

12 years agoAdd timecounters(4) man page alike to eventtimers(4).
Alexander Motin [Tue, 20 Dec 2011 17:10:34 +0000 (17:10 +0000)]
Add timecounters(4) man page alike to eventtimers(4).

12 years agoMany style fixes.
Pedro F. Giffuni [Tue, 20 Dec 2011 15:50:54 +0000 (15:50 +0000)]
Many style fixes.
Remove C99 initializers: they don't help in this case.
Set errno to 0 before strtoll() (from NetBSD).

PR: 151850
Suggested by: bde
Approved by: jhb (Mentor)
MFC after: 2 weeks

12 years agos/LAPIC/local APIC/ to closer follow Intel documents.
Alexander Motin [Tue, 20 Dec 2011 15:19:33 +0000 (15:19 +0000)]
s/LAPIC/local APIC/ to closer follow Intel documents.

Submitted by: jhb

12 years agoAllow boot0cfg to force a PXE boot via boot0 on the next boot.
John Baldwin [Tue, 20 Dec 2011 15:19:29 +0000 (15:19 +0000)]
Allow boot0cfg to force a PXE boot via boot0 on the next boot.
- Fix boot0 to check for PXE when using the pre-set setting for the
  preferred slice.
- Update boot0cfg to use slice 6 to select PXE.  Accept a 'pxe' argument
  instead of a number for the 's' option as a way to select PXE as well.

Submitted by: Andrew Boyer  aboyer averesystems
MFC after: 2 weeks

12 years agoRemove extra "and" left from earlier version.
Alexander Motin [Tue, 20 Dec 2011 14:12:50 +0000 (14:12 +0000)]
Remove extra "and" left from earlier version.

12 years agoRestore a feature that was present in 5.x and 6.x, and was cleared in
Gleb Smirnoff [Tue, 20 Dec 2011 13:53:31 +0000 (13:53 +0000)]
Restore a feature that was present in 5.x and 6.x, and was cleared in
7.x, 8.x and 9.x with pf(4) imports: pfsync(4) should suppress CARP
preemption, while it is running its bulk update.

However, reimplement the feature in more elegant manner, that is
partially inspired by newer OpenBSD:

- Rename term "suppression" to "demotion", to match with OpenBSD.
- Keep a global demotion factor, that can be raised by several
  conditions, for now these are:
  - interface goes down
  - carp(4) has problems with ip_output() or ip6_output()
  - pfsync performs bulk update
- Unlike in OpenBSD the demotion factor isn't a counter, but
  is actual value added to advskew. The adjustment values for
  particular error conditions are also configurable, and their
  defaults are maximum advskew value, so a single failure bumps
  demotion to maximum. This is for POLA compatibility, and should
  satisfy most users.
- Demotion factor is a writable sysctl, so user can do
  foot shooting, if he desires to.

12 years agoAdd apic(4) man page, now mostly to cover its event timer functionality.
Alexander Motin [Tue, 20 Dec 2011 13:49:52 +0000 (13:49 +0000)]
Add apic(4) man page, now mostly to cover its event timer functionality.

12 years ago- Fix examples to show new CARP style.
Gleb Smirnoff [Tue, 20 Dec 2011 13:32:56 +0000 (13:32 +0000)]
- Fix examples to show new CARP style.
- Remove OpenBSDisms, add FreeBSDisms.

12 years agoSmall cleanups to panic() prototype.
Ed Schouten [Tue, 20 Dec 2011 12:34:17 +0000 (12:34 +0000)]
Small cleanups to panic() prototype.

- Let panic() use _Noreturn and __printflike() instead of GCC-specific
  attributes.
- Remove prototype from ffs_subr.c and let it include ffs_extern.h.
- Forward declare struct inode to make ffs_extern.h not depend on it.

12 years ago- Cover pfsync callouts deletion with PF_LOCK().
Gleb Smirnoff [Tue, 20 Dec 2011 12:34:16 +0000 (12:34 +0000)]
- Cover pfsync callouts deletion with PF_LOCK().
- Cover setting up interface between pf and pfsync with PF_LOCK().

12 years agoAdd eventtimers(9) man page, describing related KPIs.
Alexander Motin [Tue, 20 Dec 2011 11:40:22 +0000 (11:40 +0000)]
Add eventtimers(9) man page, describing related KPIs.

Sponsored by: iXsystems, Inc.
MFC after: 1 month

12 years agoAdd binding support to libradius(3).
Alexander V. Chernikov [Tue, 20 Dec 2011 11:13:44 +0000 (11:13 +0000)]
Add binding support to libradius(3).

Submitted by:    Sergey Matveychuk <sem33@yandex-team.ru>
Approved by:     ae (mentor)
MFC after:       2 weeks

12 years agoFix broken locking that I introduced in the previous commit.
Adrian Chadd [Tue, 20 Dec 2011 03:25:11 +0000 (03:25 +0000)]
Fix broken locking that I introduced in the previous commit.

12 years agoIIC bitbang changes - prepare to make the bit delay configurable; debug print changes.
Adrian Chadd [Tue, 20 Dec 2011 02:49:01 +0000 (02:49 +0000)]
IIC bitbang changes - prepare to make the bit delay configurable; debug print changes.

* Right now the delay is hard coded at 10uS. This is a bit long when doing lots
  of periodic i2c transactions. So create a 'udelay' parameter and initialise it
  to 10. This can be tuned later.

* Add a newline after a transaction finishes, so the debugging output isn't so
  horrible.

12 years agoOops, list of IDs is not sequential. Have to list all of them expoicitly.
Alexander Motin [Tue, 20 Dec 2011 02:42:53 +0000 (02:42 +0000)]
Oops, list of IDs is not sequential. Have to list all of them expoicitly.

12 years agoCast some vendor-specific spell on VIA VT1708S codecs to:
Alexander Motin [Tue, 20 Dec 2011 02:00:27 +0000 (02:00 +0000)]
Cast some vendor-specific spell on VIA VT1708S codecs to:
 - make analog input loopback work;
 - get access to the mics boost controls.

Sponsored by: iXsystems, Inc.
MFC after: 1 month

12 years agoRemove these locks - they aren't strictly needed and cause measurable
Adrian Chadd [Tue, 20 Dec 2011 00:33:56 +0000 (00:33 +0000)]
Remove these locks - they aren't strictly needed and cause measurable
performance issues.

* Access to the GPIO bus is already locked by requesting
  and releasing the bus - thus the lock isn't really needed
  for each GPIO pin change.
* Don't lock and unlock the GPIO bus for -each- i2c access -
  the i2c bus code is already doing this by calling the upper
  layer callback to request/release the bus. This thus locks
  the bus for the entirety of the transaction.

TODO:

* Further verify that everything is correctly requesting/
  releasing the GPIO bus.
* Look at how to lock the GPIO pin configuration stuff,
  potentially by locking/unlocking the bus at the gpiobus
  layer.

12 years agoAdd comments in NOTES to say what viawd is.
Xin LI [Tue, 20 Dec 2011 00:16:52 +0000 (00:16 +0000)]
Add comments in NOTES to say what viawd is.

12 years agoMake the recently added "no_shutdown_wait" sysctl writeable.
Hans Petter Selasky [Mon, 19 Dec 2011 23:39:08 +0000 (23:39 +0000)]
Make the recently added "no_shutdown_wait" sysctl writeable.

Suggested by: avg @
MFC after: 3 days

12 years agoIn usr.sbin/yp_mkdb/yp_mkdb.c, cast some printf field width parameters
Dimitry Andric [Mon, 19 Dec 2011 20:44:44 +0000 (20:44 +0000)]
In usr.sbin/yp_mkdb/yp_mkdb.c, cast some printf field width parameters
to int, cast time_t to intmax_t, and use the corresponding printf length
modifier.

MFC after: 1 week

12 years agoIn usr.sbin/uhsoctl/uhsoctl.c, fix a few warnings about format strings
Dimitry Andric [Mon, 19 Dec 2011 20:38:26 +0000 (20:38 +0000)]
In usr.sbin/uhsoctl/uhsoctl.c, fix a few warnings about format strings
not being literals.

MFC after: 1 week

12 years agoFix r228719; when you use intmax_t, you need stdint.h.
Dimitry Andric [Mon, 19 Dec 2011 20:33:53 +0000 (20:33 +0000)]
Fix r228719; when you use intmax_t, you need stdint.h.

Pointy hat to: dim
MFC after: 1 week

12 years agoSome people pointed out long is 32-bit on some arches, while time_t is
Dimitry Andric [Mon, 19 Dec 2011 20:29:50 +0000 (20:29 +0000)]
Some people pointed out long is 32-bit on some arches, while time_t is
64-bit, so better cast time_t to intmax_t, and use the appropriate
printf format strings.

MFC after: 1 week

12 years agoule: ensure that batch timeshare threads are scheduled fairly
Andriy Gapon [Mon, 19 Dec 2011 20:01:21 +0000 (20:01 +0000)]
ule: ensure that batch timeshare threads are scheduled fairly

With the previous code, if the range of priorities for timeshare batch
threads was greater than RQ_NQS, then the threads with low priorities in
the part of the range above RQ_NQS would be scheduled to the run-queues
as if they had high priorities at the beginning of the range.
In other words, threads with a nice level of +N could be scheduled as
if they had a nice level of -M.

Reported by: George Mitchell <george@m5p.com>
Reviewed by: jhb
Tested by: George Mitchell <george@m5p.com> (earlier version)
MFC after: 1 week

12 years agoIncrease wait time for OP_TCPSTART command processing. It seems
Pyun YongHyeon [Mon, 19 Dec 2011 19:02:36 +0000 (19:02 +0000)]
Increase wait time for OP_TCPSTART command processing.  It seems
100us is not enough to ensure prefetch unit work.

12 years agoTCP header size is represented by number of 32bits words.
Pyun YongHyeon [Mon, 19 Dec 2011 19:00:34 +0000 (19:00 +0000)]
TCP header size is represented by number of 32bits words.
Fix the TCP header size calculation such that makes TSO engine
cache all header(ethernet/IP/TCP) bytes to its internal buffer.
While here, remove extra pull up for TCP payload.  Unlike some
em(4) controllers, fxp(4) does not require such work around for
TSO.
The two limitations are ethernet/IP/TCP header size should be less
than or equal to the size of controller's internal buffer(80 bytes)
and these header information should be found in the first fragment
of a TSO frame.

12 years agoAdd a TASK_INITIALIZER() macro that can be used to statically
John Baldwin [Mon, 19 Dec 2011 18:55:13 +0000 (18:55 +0000)]
Add a TASK_INITIALIZER() macro that can be used to statically
initialize a task structure.

Reviewed by: gj
MFC after: 2 weeks

12 years agoIn usr.sbin/timed, fix several issues with printf formats:
Dimitry Andric [Mon, 19 Dec 2011 18:08:31 +0000 (18:08 +0000)]
In usr.sbin/timed, fix several issues with printf formats:
- Cast time_t's to long, and print them with %ld.
- Print ptrdiff_t's with %td.
- Print ssize_t's and size_t's with %zd and %zu.
- Print int32_t's with %d.
Also, replace some int variables with the more appropriate size_t.

MFC after: 1 week

12 years agoIn contrib/tcpdump/print-icmp6.c, fix a problem where the comparison
Dimitry Andric [Mon, 19 Dec 2011 17:32:54 +0000 (17:32 +0000)]
In contrib/tcpdump/print-icmp6.c, fix a problem where the comparison
against icmp6_hdr::icmp6_type is done incorrectly.  (This fix has
already been applied upstream, but we do not have the latest version of
tcpdump.)

MFC after: 1 week

12 years agoUse NO_WCAST_ALIGN for usr.bin/hastctl and usr.bin/hastd; the alignment
Dimitry Andric [Mon, 19 Dec 2011 15:46:15 +0000 (15:46 +0000)]
Use NO_WCAST_ALIGN for usr.bin/hastctl and usr.bin/hastd; the alignment
warnings in sbin/hastd/lzf.c are only emitted for i386 and amd64, and
there they can be safely ignored.

MFC after: 1 week

12 years agoAdd code to wait for USB shutdown to be executed at system shutdown.
Hans Petter Selasky [Mon, 19 Dec 2011 15:35:05 +0000 (15:35 +0000)]
Add code to wait for USB shutdown to be executed at system shutdown.
Add sysctl which can be used to skip this waiting.

MFC after: 3 days

12 years agoopensolaris compat: fix vcmn_err so that panic(9) produces a proper message
Andriy Gapon [Mon, 19 Dec 2011 14:55:14 +0000 (14:55 +0000)]
opensolaris compat: fix vcmn_err so that panic(9) produces a proper message

... instead of just a verbatim format string.

Reviewed by: pjd
MFC after: 1 week

12 years agoAdd missing unlock of USB controller's lock, when
Hans Petter Selasky [Mon, 19 Dec 2011 14:53:42 +0000 (14:53 +0000)]
Add missing unlock of USB controller's lock, when
doing shutdown, suspend and resume.

Suggested by: avg @
MFC after: 3 days

12 years agoIn usr.bin/vacation/Makefile, fix a typo in the comment about clang
Dimitry Andric [Mon, 19 Dec 2011 13:38:28 +0000 (13:38 +0000)]
In usr.bin/vacation/Makefile, fix a typo in the comment about clang
warnings.

Spotted by: arundel
MFC after: 1 week

12 years agoUnfortunately, clang gives warnings about sendmail code that cannot be
Dimitry Andric [Mon, 19 Dec 2011 13:35:44 +0000 (13:35 +0000)]
Unfortunately, clang gives warnings about sendmail code that cannot be
turned off yet.  Since this is contrib code, and we don't really care
about the warnings, just turn make them non-fatal for now.

MFC after: 1 week

12 years agoRemove if_carp.ko. /boot/kernel should be upgraded atomically.
Gleb Smirnoff [Mon, 19 Dec 2011 12:50:12 +0000 (12:50 +0000)]
Remove if_carp.ko. /boot/kernel should be upgraded atomically.

Requested by: netchild, bz

12 years agoUnbreak the build after r228697 adding the { } block to make clear which
Bjoern A. Zeeb [Mon, 19 Dec 2011 08:50:17 +0000 (08:50 +0000)]
Unbreak the build after r228697 adding the { } block to make clear which
if the else belongs to.

12 years agoo Convert IPv6 read-only stats sysctls to the read-write ones.
Maxim Konovalov [Mon, 19 Dec 2011 05:50:34 +0000 (05:50 +0000)]
o Convert IPv6 read-only stats sysctls to the read-write ones.
o Teach netstat(1) -z to reset these stats sysctls.

PR: bin/153206
Reviewed by: glebuis
Sponsored by: NGINX, Inc.
MFC after: 1 month

12 years agoo Sort .Xrs.
Maxim Konovalov [Mon, 19 Dec 2011 05:09:08 +0000 (05:09 +0000)]
o Sort .Xrs.

12 years agoRepair breakage after r228697: since m4 now uses pow(3), it needs -lm.
Dimitry Andric [Sun, 18 Dec 2011 23:54:32 +0000 (23:54 +0000)]
Repair breakage after r228697: since m4 now uses pow(3), it needs -lm.

Pointy hat to: bapt

12 years agoReimplement support for the ** (exponent) gnu extension, make it available thought...
Baptiste Daroussin [Sun, 18 Dec 2011 22:04:55 +0000 (22:04 +0000)]
Reimplement support for the ** (exponent) gnu extension, make it available thought the -g (mimic gnu) option

Reviewed by: cognet
Approved by: cognet
Discussed with: espie@OpenBSD.org (upstream)

12 years agoUse lex's standard way of not generating unused function.
Pawel Jakub Dawidek [Sun, 18 Dec 2011 20:41:58 +0000 (20:41 +0000)]
Use lex's standard way of not generating unused function.

Inspired by: r228555
MFC after: 1 week

12 years agoDon't use function name as format string.
Pawel Jakub Dawidek [Sun, 18 Dec 2011 20:40:19 +0000 (20:40 +0000)]
Don't use function name as format string.

Detected by: clang
MFC after: 1 week

12 years agoFix compilation on sparc64 by actually supplying the bus_dma_tag_t member
Marius Strobl [Sun, 18 Dec 2011 17:48:54 +0000 (17:48 +0000)]
Fix compilation on sparc64 by actually supplying the bus_dma_tag_t member
of the rx_ring to bus_dmamap_sync(9). Given that netmap code tries to
obtain the bus addresses of netmap buffers via vtophys(9) instead of using
bus_dma(9) it currently has zero chance of actually working on sparc64
though (and for that matter f.e. also not with MACs limited to 32-bit DMA
on x86 machines with more than 4GB of RAM).

12 years agoRevert r228603, and add the workaround to sbin/fsdb/Makefile instead.
Dimitry Andric [Sun, 18 Dec 2011 17:42:26 +0000 (17:42 +0000)]
Revert r228603, and add the workaround to sbin/fsdb/Makefile instead.

MFC after: 1 week

12 years agoUpgrade to OpenPAM Lycopsida.
Dag-Erling Smørgrav [Sun, 18 Dec 2011 17:22:45 +0000 (17:22 +0000)]
Upgrade to OpenPAM Lycopsida.

12 years agoVendor import of OpenPAM Lycopsida.
Dag-Erling Smørgrav [Sun, 18 Dec 2011 17:08:40 +0000 (17:08 +0000)]
Vendor import of OpenPAM Lycopsida.

12 years agoSupport infrastructure for X11 on PS3.
Nathan Whitehorn [Sun, 18 Dec 2011 16:53:21 +0000 (16:53 +0000)]
Support infrastructure for X11 on PS3.

Submitted by: geoffrey dot levand at mail dot ru
MFC after: 1 week

12 years agoAdd version header to output file.
Nathan Whitehorn [Sun, 18 Dec 2011 16:53:03 +0000 (16:53 +0000)]
Add version header to output file.

12 years agoUse FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.
Sergey Kandaurov [Sun, 18 Dec 2011 15:36:21 +0000 (15:36 +0000)]
Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.

Reviewed by: kib

12 years agoFrom time to time people report space map corruption resulting in panic
Pawel Jakub Dawidek [Sun, 18 Dec 2011 12:27:45 +0000 (12:27 +0000)]
From time to time people report space map corruption resulting in panic
(ss == NULL) on pool import. I had such a panic recently. With current version
of ZFS it is still possible to import the pool in readonly mode and backup
all the data, but in case it is impossible for some reason add tunable
vfs.zfs.space_map_last_hope, which when set to '1' will tell ZFS to remove
colliding range and retry. This seems to have worked for me, but I consider
it highly risky to use.

MFC after: 1 week

12 years agoImplement replying of ACLs updates. ACL changes should go to ZIL only
Pawel Jakub Dawidek [Sun, 18 Dec 2011 12:19:03 +0000 (12:19 +0000)]
Implement replying of ACLs updates. ACL changes should go to ZIL only
if the 'sync' property is set to 'always', so replying them is not common.

MFC after: 1 month

12 years agoForgot to add usr.sbin/sade/label.c in the previous commit.
Dimitry Andric [Sun, 18 Dec 2011 01:14:38 +0000 (01:14 +0000)]
Forgot to add usr.sbin/sade/label.c in the previous commit.

MFC after: 1 week

12 years agoIn usr.sbin/sade/install.c and usr.sbin/sade/label.c, fix a few warnings
Dimitry Andric [Sun, 18 Dec 2011 01:13:21 +0000 (01:13 +0000)]
In usr.sbin/sade/install.c and usr.sbin/sade/label.c, fix a few warnings
about format strings not being literals.

MFC after: 1 week

12 years agoIn usr.sbin/sa/db.c, avoid warnings about assigning two const char
Dimitry Andric [Sun, 18 Dec 2011 01:08:25 +0000 (01:08 +0000)]
In usr.sbin/sa/db.c, avoid warnings about assigning two const char
arrays to non-const void pointers, by casting away const explicitly.

MFC after: 1 week

12 years agoIn usr.sbin/rpc.ypupdated/yp_dbupdate.c, since intmax_t is signed, just
Dimitry Andric [Sun, 18 Dec 2011 00:55:46 +0000 (00:55 +0000)]
In usr.sbin/rpc.ypupdated/yp_dbupdate.c, since intmax_t is signed, just
like time_t, better use %jd instead of %ju.  Strangely enough, neither
gcc, clang nor gcc 4.6 warn about this discrepancy...

MFC after: 1 week

12 years agoIn usr.sbin/rpc.ypupdated/yp_dbupdate.c, include stdint.h, so intmax_t
Dimitry Andric [Sun, 18 Dec 2011 00:44:59 +0000 (00:44 +0000)]
In usr.sbin/rpc.ypupdated/yp_dbupdate.c, include stdint.h, so intmax_t
is known, otherwise it won't build.

Pointy hat to: dim
MFC after: 1 week

12 years agoIn usr.sbin/rpc.ypupdated/yp_dbupdate.c, use the appropriate printf
Dimitry Andric [Sun, 18 Dec 2011 00:40:30 +0000 (00:40 +0000)]
In usr.sbin/rpc.ypupdated/yp_dbupdate.c, use the appropriate printf
length modifier for time_t (after casting it to intmax_t).

MFC after: 1 week

12 years agoDisable another clang warning (-Wempty-body) when WARNS <= 2.
Dimitry Andric [Sun, 18 Dec 2011 00:34:42 +0000 (00:34 +0000)]
Disable another clang warning (-Wempty-body) when WARNS <= 2.

MFC after: 1 week

12 years agoDisable yet another clang warning (-Wconversion) when WARNS <= 3.
Dimitry Andric [Sun, 18 Dec 2011 00:24:11 +0000 (00:24 +0000)]
Disable yet another clang warning (-Wconversion) when WARNS <= 3.

MFC after: 1 week

12 years agoIn usr.sbin/route6d/route6d.c, use the correct printf length modifier
Dimitry Andric [Sun, 18 Dec 2011 00:03:03 +0000 (00:03 +0000)]
In usr.sbin/route6d/route6d.c, use the correct printf length modifier
for an ssize_t.

MFC after: 1 week

12 years agoIn usr.sbin/pw/pw_user.c, use the correct printf length modifier for a
Dimitry Andric [Sat, 17 Dec 2011 23:46:47 +0000 (23:46 +0000)]
In usr.sbin/pw/pw_user.c, use the correct printf length modifier for a
ptrdiff_t.

MFC after: 1 week

12 years agoIn contrib/pnpinfo/pnpinfo.c, remove an extraneous parameter from the
Dimitry Andric [Sat, 17 Dec 2011 23:43:40 +0000 (23:43 +0000)]
In contrib/pnpinfo/pnpinfo.c, remove an extraneous parameter from the
call to isolation_protocol().

MFC after: 1 week

12 years agoIn usr.sbin/pmccontrol/pmccontrol.c, fix a few warnings about format
Dimitry Andric [Sat, 17 Dec 2011 23:39:13 +0000 (23:39 +0000)]
In usr.sbin/pmccontrol/pmccontrol.c, fix a few warnings about format
strings not being literals.

MFC after: 1 week

12 years agoIn usr.sbin/pkg_install/updating/main.c, use the size of the destination
Dimitry Andric [Sat, 17 Dec 2011 23:35:46 +0000 (23:35 +0000)]
In usr.sbin/pkg_install/updating/main.c, use the size of the destination
buffer as size argument to strlcpy(), not the length of the source.

MFC after: 1 week

12 years agodu: Allow multiple -HLP options, the last one wins.
Jilles Tjoelker [Sat, 17 Dec 2011 23:18:14 +0000 (23:18 +0000)]
du: Allow multiple -HLP options, the last one wins.

This matches 4.4BSD tradition and other utilities with these options and is
required by POSIX (POSIX does not specify -P, only -HL).

MFC after: 2 weeks

12 years agoRevert r228650, and work around the clang false positive with printf
Dimitry Andric [Sat, 17 Dec 2011 22:32:00 +0000 (22:32 +0000)]
Revert r228650, and work around the clang false positive with printf
formats in usr.bin/netstat/atalk.c by conditionally adding NO_WFORMAT to
the Makefile instead.

MFC after: 1 week

12 years agoIn usr.bin/csup/auth.c, cast time_t to intmax_t instead, and use the
Dimitry Andric [Sat, 17 Dec 2011 22:20:46 +0000 (22:20 +0000)]
In usr.bin/csup/auth.c, cast time_t to intmax_t instead, and use the
corresponding printf length modifier.

Requested by: mdf
MFC after: 1 week

12 years agoFix style and white spaces.
Mikolaj Golub [Sat, 17 Dec 2011 22:18:26 +0000 (22:18 +0000)]
Fix style and white spaces.

MFC after: 1 week

12 years agoUse NO_WCAST_ALIGN for usr.sbin/ndiscvt; because this is only built for
Dimitry Andric [Sat, 17 Dec 2011 22:16:27 +0000 (22:16 +0000)]
Use NO_WCAST_ALIGN for usr.sbin/ndiscvt; because this is only built for
x86, any alignment warnings can be safely ignored.  Define YY_NO_INPUT
in usr.sbin/ndiscvt/inf-token.l, so no unused lex functions are defined.

MFC after: 1 week

12 years agoIn usr.sbin/lpr/lpd/printjob.c, use the correct printf length modifiers
Dimitry Andric [Sat, 17 Dec 2011 22:05:28 +0000 (22:05 +0000)]
In usr.sbin/lpr/lpd/printjob.c, use the correct printf length modifiers
for off_t (aka int64_t).

MFC after: 1 week

12 years agoIn usr.sbin/lpr/filters/lpf.c, use a less obtuse way of clearing the
Dimitry Andric [Sat, 17 Dec 2011 21:37:21 +0000 (21:37 +0000)]
In usr.sbin/lpr/filters/lpf.c, use a less obtuse way of clearing the
buffer, that also avoids warnings.

MFC after: 1 week

12 years agoIn usr.sbin/keyserv, fix some implicit enum conversions, and use the
Dimitry Andric [Sat, 17 Dec 2011 20:53:06 +0000 (20:53 +0000)]
In usr.sbin/keyserv, fix some implicit enum conversions, and use the
correct printf length modifiers for uid_t.

MFC after: 1 week

12 years agoIn usr.sbin/iostat/iostat.c, use printf format specifiers from
Dimitry Andric [Sat, 17 Dec 2011 20:25:23 +0000 (20:25 +0000)]
In usr.sbin/iostat/iostat.c, use printf format specifiers from
inttypes.h for u_int64_t's.  While here, sort #include directives.

MFC after: 1 week

12 years agoIn usr.sbin/i2c/i2c.c, fix a few warnings about format strings not being
Dimitry Andric [Sat, 17 Dec 2011 20:12:17 +0000 (20:12 +0000)]
In usr.sbin/i2c/i2c.c, fix a few warnings about format strings not being
literals.

MFC after: 1 week

12 years agoIn usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c, cast a printf field width
Dimitry Andric [Sat, 17 Dec 2011 20:07:42 +0000 (20:07 +0000)]
In usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c, cast a printf field width
parameter to int.

MFC after: 1 week

12 years agoUse NO_WCAST_ALIGN for usr.sbin/cpucontrol; because this is only built
Dimitry Andric [Sat, 17 Dec 2011 19:58:48 +0000 (19:58 +0000)]
Use NO_WCAST_ALIGN for usr.sbin/cpucontrol; because this is only built
for x86, any alignment warnings can be safely ignored.

MFC after: 1 week

12 years agoIn usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.h, use the correct
Dimitry Andric [Sat, 17 Dec 2011 19:53:08 +0000 (19:53 +0000)]
In usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.h, use the correct
enumeration types for the mesh_peering and mesh_forwarding members of
struct wlan_iface, to fix enum conversion warnings.

MFC after: 1 week

12 years agoUse NO_WCAST_ALIGN for usr.sbin/boot0cfg; because this is only built for
Dimitry Andric [Sat, 17 Dec 2011 19:33:26 +0000 (19:33 +0000)]
Use NO_WCAST_ALIGN for usr.sbin/boot0cfg; because this is only built for
x86, any alignment warnings can be safely ignored.

MFC after: 1 week

12 years agoIn usr.sbin/bluetooth/sdpd/server.c, don't use the size of a pointer as
Dimitry Andric [Sat, 17 Dec 2011 19:26:03 +0000 (19:26 +0000)]
In usr.sbin/bluetooth/sdpd/server.c, don't use the size of a pointer as
the length argument to memset, but the size of the object pointed to.

MFC after: 1 week