Commit Graph

12172 Commits

Author SHA1 Message Date
Fabien Thomas
060d3bde04 MFC r204878:
Change the way shutdown is handled for log file.

 pmc_flush_logfile is now non-blocking and just ask the kernel
 to shutdown the file. From that point, no more data is
 accepted by the log thread and when the last buffer is flushed
 the file is closed.

 This will remove a deadlock between pmcstat asking for
 flush while it cannot flush the pipe itself.
2010-03-11 07:36:45 +00:00
Fabien Thomas
433d44f161 MFC r204783:
Bug fixed:
 - no display on serial terminal in top mode.
 - display alignment for continuation string.
 - correct invalid value used for display limit.
2010-03-08 07:53:44 +00:00
Fabien Thomas
02178aec70 MFC 204329 partially:
Fixed dependencies (make checkdpadd).
2010-03-05 22:52:41 +00:00
Fabien Thomas
2553c38555 MFC 203790:
- Reorganize code in 'plugin' to share log processing.
- Kcachegrind (calltree) support with assembly/source
  code mapping and call count estimator (-F).
- Top mode for calltree and callgraph plugin (-T).
2010-03-05 22:40:31 +00:00
John Baldwin
8224141fb7 MFC 204090:
Fix mptutil's method for locating disk devices attached to a specific
mpt(4) controller.  Previously, the code assumed that multiple match
patterns provided to an XPT_DEV_MATCH request were ANDed together.
Instead, they are ORed.  Instead, to match peripherals for a specific bus,
one query needs to be performed to lookup the path ID of the bus.  A second
query can then be performed matching peripherals attached to that path.
This approach also makes the code a bit cleaner as the returned match
results do not mix buses and perphierals.
2010-02-24 21:29:18 +00:00
John Baldwin
daeeeefea0 MFC 204086:
- Don't emit a warning in 'show adapter' if the IOC2 or IOC6 pages are not
  present.  mpt(4) controllers that do not support RAID do not have an IOC6
  page, for example.
- Correct a check for a missing page error in a debug function.
2010-02-24 21:20:25 +00:00
Ruslan Ermilov
9cdec2ba0e MFC: r203919: Show when an ARP entry expires (now that this info
cannot be obtained with netstat(1)).
2010-02-22 16:00:55 +00:00
Rebecca Cran
6d812e4f38 MFC r203690:
Xorg isn't treated as a distribution, so /usr/X11R6/lib shouldn't be
configured when running ldconfig.

PR:	bin/138945
Approved by:	rrs (mentor)
2010-02-18 10:48:37 +00:00
Hajimu UMEMOTO
93bc06c320 MFC r203387: Exclude the interfaces which IPv6 and/or accepting
RA is disabled from the auto probed interface list.
2010-02-13 16:28:25 +00:00
Hajimu UMEMOTO
6c204d20ba MFC r203378: Make -a option actually work. 2010-02-13 16:25:33 +00:00
Andriy Gapon
e21bbd1743 MFC r197104,197105,197106,197107,197688,198237,199337,199338,200553,200554,
202771,202773: bring acpica version to 20100121

MFC details:
r197104 | jkim | 2009-09-12 01:48:53 +0300 (Sat, 12 Sep 2009) | 4 lines
MFV:    r196804
Import ACPICA 20090903

r197105 | jkim | 2009-09-12 01:49:34 +0300 (Sat, 12 Sep 2009) | 2 lines
Catch up with ACPICA 20090903.

r197106 | jkim | 2009-09-12 01:50:15 +0300 (Sat, 12 Sep 2009) | 2 lines
Catch up with ACPICA 20090903.

r197107 | jkim | 2009-09-12 01:56:08 +0300 (Sat, 12 Sep 2009) | 2 lines
Canonify include paths for newly added files.

r197688 | jkim | 2009-10-01 23:56:15 +0300 (Thu, 01 Oct 2009) | 4 lines
Compile ACPI debugger and disassembler for kernel modules
unconditionally.
These files will generate almost empty object files without
ACPI_DEBUG/DDB
options.  As a result, size of acpi.ko will increase slightly.

r198237 | jkim | 2009-10-19 19:12:58 +0300 (Mon, 19 Oct 2009) | 2 lines
Merge ACPICA 20091013.

r199337 | jkim | 2009-11-16 23:47:12 +0200 (Mon, 16 Nov 2009) | 2 lines
Merge ACPICA 20091112.

r199338 | jkim | 2009-11-16 23:53:56 +0200 (Mon, 16 Nov 2009) | 2 lines
Add a forgotten module Makefile change from the previous commit.

r200553 | jkim | 2009-12-15 00:24:04 +0200 (Tue, 15 Dec 2009) | 2 lines
Merge ACPICA 20091214.

r200554 | jkim | 2009-12-15 00:28:32 +0200 (Tue, 15 Dec 2009) | 3 lines
Remove _FDE quirk handling as these quirks are automatically repaired
by ACPICA layer since ACPICA 20091214.

r202771 | jkim | 2010-01-21 23:14:28 +0200 (Thu, 21 Jan 2010) | 2 lines
Merge ACPICA 20100121.

r202773 | jkim | 2010-01-21 23:31:39 +0200 (Thu, 21 Jan 2010) | 2 lines
Fix a new header inclusion.

Discussed with:		jkim, jhb
No objections from:	acpi@
2010-02-06 12:03:25 +00:00
Xin LI
db265fb4a8 MFC r202668+r200806:
Don't consider non-existence of a PID file an error, we should be able
to proceed anyway as this most likely mean that the process has been
terminated. [1]

Add a new option, -P, which reverts newsyslog(8) to the old behavior,
which stops to proceed further, as it is possible that processes which
fails to create PID file get screwed by rotation. [2]

PR:		bin/140397
Submitted by:	Dan Lukes [1]
Requested by:	stas [2]
2010-02-03 18:42:14 +00:00
John Baldwin
ca999e2992 MFC 203032:
Don't pop up the menu to select a documentation language for non-interactive
installs.  Default to not installing any documentation in that case.
2010-02-02 18:50:02 +00:00
Antoine Brodin
c9e0de0179 MFC r202440 to stable/8:
Unbreak world WITHOUT_NETGRAPH.

  PR:		137487
  Submitted by:	bf (previous version)
  No objections:	net@
2010-01-30 15:40:00 +00:00
Antoine Brodin
e2b36efde5 MFC r201145 to stable/8:
(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.
  Fix some wrong usages.
  Note: this does not affect generated binaries as this argument is not used.

  PR:		137213
  Submitted by:	Eygene Ryabinkin (initial version)
2010-01-30 12:11:21 +00:00
Xin LI
ef096f9d2a MFC r200135:
Make umount(8) WARNS=6 clean:
 - Cast delimiter width to integer [1]
 - Solve name conflicts against system header
 - Constify parameters to avoid qualifier conflict

PR:		bin/140017 [1]
Submitted by:	Ulrich Spörlein <uqs spoerlein net> [1]
Sponsored by:	iXsystems, Inc
2010-01-28 02:33:20 +00:00
Doug Barton
5915044ff5 MFC r202817:
Make -U once again honor -D after my change to consolidate setting
of MTREEDB with DESTDIR.

PR:		bin/143089
Submitted by:	Anton Yuzhaninov <citrin@citrin.ru>
2010-01-26 18:24:13 +00:00
Konstantin Belousov
b3c4be736e Merge scandir(3) interface update to stable/8.
MFC r201512:
Modernize scandir(3) and alphasort(3) interfaces according to the IEEE
Std 1003.1-2008.

MFC r201602:
Move scandir(3) and alphasort(3) into XSI namespace.

MFC r201604:
Use thunks to adapt alphasort-like interface to the comparision function
required by qsort() and qsort_r().

MFC r202556 (by ache):
Use strcoll() in opendir() and alphasort(). Remove some comments.

MFC r202572 (by ache):
Revert to using strcmp() for opendir().

MFC r202677 (by ache):
Style.

MFC r202679 (by ache):
Style: rename internal function to opendir_compar().

MFC r202691 (by ache):
For alphasort(3) add reference to strcoll(3).

MFC r202693 (by ache):
Style: reword comment.
2010-01-24 12:35:36 +00:00
Bjoern A. Zeeb
3bcceea40e MFC r202468:
Add ip4.saddrsel/ip4.nosaddrsel (and equivalent for ip6) to control
  whether to use source address selection (default) or the primary
  jail address for unbound outgoing connections.

  This is intended to be used by people upgrading from single-IP
  jails to multi-IP jails but not having to change firewall rules,
  application ACLs, ... but to force their connections (unless
  otherwise changed) to the primry jail IP they had been used for
  years, as well as for people prefering to implement similar policies.

  Note that for IPv6, if configured incorrectly, this might lead to
  scope violations, which single-IPv6 jails could as well, as by the
  design of jails. [1]

  Reviewed by:		jamie, hrs (ipv6 part)
  Pointed out by:	hrs [1]
2010-01-23 16:40:35 +00:00
Xin LI
aa0cab0517 MFC r202709:
Give the right value when complaining it being wrong.

Reported by:	danfe
2010-01-23 00:52:32 +00:00
Florent Thoumie
aa780fe9b5 Synchronize pkg_install with HEAD. 2010-01-22 23:13:46 +00:00
Xin LI
3895783a8a MFC r200795:
Add support of using environment variable BURNCD_SPEED to specify
recodring speed.

PR:		bin/140530
Submitted by:	Alexander Best <alexbestms wwu.de>
2010-01-20 00:43:15 +00:00
Yoshihiro Takahashi
e3ab51c73d MFC: revision 201392
Use UFS2 as default filesystem on pc98.  Now pc98's boot2 works for UFS2.
2010-01-18 10:55:29 +00:00
Xin LI
48ca68836f MFC r210520:
Test index value is within the range before using it to reference
array member.

PR:		bin/141838
Submitted by:	Henning Petersen <henning.petersen@t-online.de>
2010-01-18 04:58:14 +00:00
Andrew Thompson
781ecb6a74 MFC r202026
Print error messages to stderr.
2010-01-17 18:27:53 +00:00
Andrew Thompson
f7a26bb302 MFC r201922
Add missing library dependency.
2010-01-17 18:27:13 +00:00
Andrew Thompson
c38eb9217c MFC r201705
Sync to p4
  - Add new quirks commands and the '-d' option optionally to specify the ugen device.
2010-01-17 18:26:21 +00:00
Andrew Thompson
bc4acc704f MFC r202181,202243,202270
Add a driver by Fredrik Lindberg for Option HSDPA USB devices. These differ
 from standard 3G wireless units by supplying a raw IP/IPv6 endpoint rather than
 using PPP over serial. uhsoctl(1) is used to initiate and close the WAN
 connection.

Obtained from:	Fredrik Lindberg <fli@shapeshifter.se>
2010-01-17 18:22:42 +00:00
Christian Brueffer
c1bf101993 MFC: r201870, r201889
Various language fixes.  Also fixed the URL to totd, obtained from NetBSD.
2010-01-17 17:31:53 +00:00
Bjoern A. Zeeb
f0e64789dd MFC r201806:
Switch traceroute over to make use of proper in-kernel source
  address selection.

  Reviewed by:  rwatson, fenner
  PR:           kern/139454
  Tested by:    Frank Steinborn (steinex nognu.de)

MFC r201897:
  Correct spelling.

  Submitted by: (pluknet gmail.com)
2010-01-17 15:20:34 +00:00
Gavin Atkinson
eecb07159d Merge r197308 from head (originally by ed):
Spell Israel correctly.

PR:		bin/138580
Submitted by:	Alexey Savartsov <asavartsov gmail com>
Approved by:	ed (mentor, implicit)
2010-01-17 11:20:53 +00:00
Dmitry Morozovsky
2eea36f8d9 MFH r201051:
To remove a server, one should use double backslash, and half of them
  are eaten by shell.  Fix this.
2010-01-15 12:02:22 +00:00
Doug Barton
ad9bb0898d MFC r200416:
Simplify handling of MTREEFILE relative to DESTDIR

Make the message about a missing MTREEFILE combined with -U
more informative

MFC r200425:
Over time things that used to be files/directories/links can change
to something else. So add code to detect when things don't match and
give the user choices about how to fix it.

If we're using -P and something in the above check needs to be moved
we need to have the directory there for it, so create it at the
beginning and delete empty versions of it at the end.

The case where something used to be a file or link and now is supposed
to be a directory (e.g., /etc/security) is especially dangerous, so
make failure to install a necessary directory in $DESTDIR a fatal error.

MFC r200700:
In the places where find is used that the user may see the results,
first pipe it to sort so that order of processing will be deterministic
and like things will be grouped together.

MFC r200701:
Fix an indentation issue, no functional changes

MFC r200708:
Fix a problem with how mergemaster handles the hard links for /.cshrc
and /.profile. The problem is that install(1) will unlink the old file
before it installs the new one, which means that in the best case we
have to compare the changes for the old file twice.

So, change the logic to first test to see if the link exists, then
install the file. Then if the link was there and we're using -i, just
create the link in /root and be done with it. Otherwise display the
message to the user and give them the option.

Because we are now sorting things before doing the comparison we can
know conclusively that the files in / should be the sources, and the
files in /root will be the targets, so adjust the paths accordingly.

While I'm here, split a too-long error message into two lines and
just return at the end of handling these files instead of setting
the variable that says "do nothing" and then returning at the end
of the function anyway.

MFC r201291:
Add some patches contributed by jhb:
1. Don't prompt the user for "-U but no db" error if we're using -a
2. Add an option to delete stale rc.d files automatically if the user
has DELETE_STALE_RC_FILES in their rc file. Lack of command line option
for this is not an oversight.
3. Add []'s around the terminal $ for the $FreeBSD$ test for -F

For one bug raised by jhb I did a more thorough solution:
There were a lot of things that "snuck in" between the end of the test
for -r and the start of the comparison. One of them is the creation of
the mtree db, as pointed out by jhb. Fix this problem more thoroughly
by moving the end of the test down to where it should/used to be, right
before the comparison. As a result, indent the interloping code to match.

MFC r201292:
Document the DELETE_STALE_RC_FILES option introduced in r201291. This is
an "rc file only" option by design.

While I'm here, update the comments in the example rc file to indicate
which command line options they relate to, and correct the defaults
for a couple of options.

MFC r201293:
It's not necessary to include both Op and Fl for command line options
included in the text, so use only the latter.

Clarify that using -U doesn't make sense in combination with -a

MFC r201323:
If we are using -p it does not make any sense to even create the
MTREENEW file since it will never be used.

MFC r201765:
Update copyright date

Update delete_temproot() to include the error message if it fails,
and clean up the places where it's called.

If there are no files left in temproot when the comparison is done
delete it without prompting. This should make "automated" runs of
mergemaster without -a a little easier.

Document the new behavior in the man page.
2010-01-15 03:28:46 +00:00
John Baldwin
bd048c87c0 MFC 201202:
Use reallocf() to simplify some logic.
2010-01-12 18:47:40 +00:00
Gavin Atkinson
88af2d60d9 MFC r200819:
Grammar and minor tweaks to powerd(8) man page.

PR:		docs/133186
Approved by:	ed (mentor, implicit)
2010-01-06 20:54:04 +00:00
Qing Li
32c5340155 MFC r201282, r201543
r201282
-------
The proxy arp entries could not be added into the system over the
IFF_POINTOPOINT link types. The reason was due to the routing
entry returned from the kernel covering the remote end is of an
interface type that does not support ARP. This patch fixes this
problem by providing a hint to the kernel routing code, which
indicates the prefix route instead of the PPP host route should
be returned to the caller. Since a host route to the local end
point is also added into the routing table, and there could be
multiple such instantiations due to multiple PPP links can be
created with the same local end IP address, this patch also fixes
the loopback route installation failure problem observed prior to
this patch. The reference count of loopback route to local end would
be either incremented or decremented. The first instantiation would
create the entry and the last removal would delete the route entry.

r201543
-------
The IFA_RTSELF address flag marks a loopback route has been installed
for the interface address. This marker is necessary to properly support
PPP types of links where multiple links can have the same local end
IP address. The IFA_RTSELF flag bit maps to the RTF_HOST value, which
was combined into the route flag bits during prefix installation in
IPv6. This inclusion causing the prefix route to be unusable. This
patch fixes this bug by excluding the IFA_RTSELF flag during route
installation.

PR:		ports/141342, kern/141134
2010-01-05 22:14:55 +00:00
Alexander Motin
ea78eb4204 MFC 200968:
Make diskinfo report disk stripe size and offset. It should help users to
make file systems optimally aligned and tuned for better performance.
2010-01-05 13:56:58 +00:00
Alexander Motin
3bf7eb487a MFC r196799:
Don't bother obtaining the ident if we are not going to print it.
2010-01-05 13:55:49 +00:00
Doug Barton
ac4cfa6dbb MFC r200743:
The service command is an easy interface to the rc.d system.
Its primary purpose is to start and stop services provided by
the rc.d scripts, however it can also be used to list the scripts
using various criteria.

MFC r200809, r200980, r201035, r201069, 201070:

Updates/fixes suggested after the initial introducition
2009-12-30 19:36:40 +00:00
Edwin Groothuis
dd1c9c3da4 MFC of r200832, tzdata2009t
zic:
- Fix URL / reference to Calendrical Calculations: Third Edition

libc/stdtime:
- Fix typo in tzfile.5 (no changes in our part)
2009-12-29 10:05:20 +00:00
Jamie Gritton
af4411db7e MFC r200449:
Don't free jail parameter values after printing them - jail_param_get
  expects them to be there for the next jail in the list.

PR:		bin/141359
2009-12-20 04:45:32 +00:00
Attilio Rao
acd3c01512 MFC r199804:
Avoid sshd, crond, inetd and syslogd to be killed in an high-pressure
swapping environment.

Sponsored by:	Sandvine Incorporated
2009-12-19 19:35:53 +00:00
Shteryana Shopova
49b7e6f580 MFC r200122
Make sure enough memory is allocated for a struct pft_entry when
refreshing the list of pf tables.
2009-12-12 20:26:11 +00:00
Andrew Thompson
a785df36d1 MFC r198833
Add more verbose output when dumping the configuration descriptor.
2009-12-09 23:14:53 +00:00
Colin Percival
0cd4e30efa Disable SSL renegotiation in order to protect against a serious
protocol flaw. [09:15]

Correctly handle failures from unsetenv resulting from a corrupt
environment in rtld-elf. [09:16]

Fix permissions in freebsd-update in order to prevent leakage of
sensitive files. [09:17]

Approved by:	so (cperciva)
Security:	FreeBSD-SA-09:15.ssl
Security:	FreeBSD-SA-09:16.rtld
Security:	FreeBSD-SA-09:17.freebsd-udpate
2009-12-03 09:18:40 +00:00
Jaakko Heinonen
1a225ffb6a MFC r197833:
When run() returns an error, print the error message also in
non-interactive mode. Previously error messages were printed only in
interactive mode.

PR:		bin/124517
Approved by:	trasz (mentor)
2009-11-11 19:50:52 +00:00
Xin LI
01e195f21d MFC r198846:
Set umask to 0x077 instead of the default.  This prevents non-root user
  from reading crashinfo output, which could contain some sensitive
  information.
2009-11-10 00:41:22 +00:00
Edwin Groothuis
cbd57efc02 MFC of 198831, tzcode2009q
- Cleanup unnecessary local variables in zdump.
- Fix man-page
2009-11-09 11:32:18 +00:00
Christian Brueffer
92eb005cae MFC: r198750
Expand DESCRIPTION and add a basic EXAMPLES section.
2009-11-08 12:08:42 +00:00
John Baldwin
2d7c21427d MFC 198586: Include the output of the ddb(4) capture buffer. 2009-11-04 16:05:09 +00:00