Commit Graph

151573 Commits

Author SHA1 Message Date
Konstantin Belousov
d4b0face18 MFC r207570:
Style and comment adjustements.
2010-05-06 04:57:10 +00:00
Rick Macklem
175abb7ed7 MFC: r207350
For the experimental NFS client, it should always flush dirty
buffers before closing the NFSv4 opens, as the comment states.
This patch deletes the call to nfscl_mustflush() which would
return 0 for the case where a delegation still exists, which
was incorrect and could cause crashes during recovery from
an expired lease.
2010-05-06 01:08:36 +00:00
Rick Macklem
5783c9fe30 MFC: r207349
Delete a diagnostic statement that is no longer useful from
the experimental NFS client.
2010-05-06 00:49:10 +00:00
Jilles Tjoelker
3a425b8d28 MFC r206760: getcwd(3): Clarify that EACCES may or may not be checked.
POSIX permits but does not require checking access on the current and parent
directories.

Because various programs do not like it if getcwd(3) fails, it seems best
to avoid checking access as much as possible. There are various reports in
GNATS about this (search for getcwd).

Our getcwd(3) implementation first queries the kernel for the pathname
directly, which does not check any permissions but sometimes fails, and then
falls back to reading all parent directories for the names.

PR:		standards/44425
2010-05-05 22:17:17 +00:00
Jilles Tjoelker
2239c5fda0 MFC r207190: unlinkat(2): unlinkat(AT_REMOVEDIR) fails with ENOTEMPTY
like rmdir() for non-empty directories.

POSIX permits both ENOTEMPTY and EEXIST, but we use the clearer ENOTEMPTY,
following BSD tradition.
2010-05-05 22:12:56 +00:00
Jilles Tjoelker
ad5308635f MFC r207186: sysctl(3): Update description of various kern.* variables.
Also add xrefs for confstr(3) (as sysconf(3) but for strings) and kvm(3)
(which is a more convenient way to access some of the variables).

PR:		116480
2010-05-05 22:00:57 +00:00
Ken Smith
8946c3d8ce Merge r206423:
> Shift the version of perl used by the release build process over to
> perl-5.10.  This aligns the release build process with the current
> default version of perl in the ports tree.
2010-05-05 16:58:29 +00:00
Ken Smith
7f4bf2302e Merge r206422:
> Pass the HTTP_PROXY and FTP_PROXY environment variables through in addition
> to FTP_PASSIVE_MODE so release building works for a machine that needs
> to use a proxy.

PR:		misc/137688
Submitted by:	Michael Leun
2010-05-05 16:25:57 +00:00
Gavin Atkinson
d0fc28afaa Merge r205386 from head:
Fix command example, presumed leftovers of old markup.
2010-05-05 12:39:44 +00:00
Gavin Atkinson
e85a0af436 Merge r205155 from head:
Add extra Xrefs

PR:		docs/114184
Submitted by:	Julian Stacey  <jhs berklix.org>
2010-05-05 12:38:22 +00:00
Gavin Atkinson
4810d94317 Merge r203684 from head (mainly to make future merges easier for people):
Update .Dt on these man pages: the kernel modules and corresponding
  man pages are installed on more platforms than just i386.
2010-05-05 12:37:07 +00:00
Konstantin Belousov
5e7622a371 MFC r207009:
C language does not has references, it provides pointers.
2010-05-05 09:29:34 +00:00
Alexander Motin
5d86e524cf MFC r207282:
Update device identify data and serial number when device change detected.
Reprobe immediately following this should have fresh data.
2010-05-05 05:18:08 +00:00
Alexander Motin
79206e9340 MFC r207490:
Add xpt_schedule_dev_sendq() call, lost at r203108. It is not needed in
usual operation, but required in some conditions to make queue running
after being shrinked.
2010-05-05 05:11:12 +00:00
Xin LI
9120f4c885 MFC r206973:
When CPUTYPE is defined to any value, on amd64 platform "mmx" is
available through MACHINE_CPU, indicating the CPU supports that
feature, as done by revision 138685.

This changeset adds "mmx" into the default amd64 MACHINE_CPU list
when no CPUTYPE is specified to provide consistent behavior.

PR:		amd64/145593
Submitted by:	mm
2010-05-05 00:38:20 +00:00
Andrew Thompson
ba752236ec MFC r201797
Remove unused uhci_dump_qhs().
2010-05-04 21:16:01 +00:00
Xin LI
9ea9cdd0e0 MFC r196981, r200844, r201630, r203977, r203978, r204352:
r196981 (rdivacky):

Add C/c/f/p/v switches plus a bunch of minor fixes and cleanups.

Obtained from:	NetBSD

r200844 (jh):

Don't print the archive name with -p and -q options.

PR:		bin/141280

r201630 (kientzle):

When restoring files, use the mode for the mode.

Thanks to: Jun Kuriyama for pointing this out

r203977 (gavin):

Implement the rename query, for when a file with the same name as the one
about to be extracted already exists.  The question, and interpretation
of the response is deliberately compatible with Info-Zip.

This change was originally obtained from NetBSD, but has three changes:
 - better compatibility with Info-Zip in the handling of ^D
 - Use getdelim() rather than getline()
 - bug fix: != changed to == in the "file rename" code

I suspect the latter is also a bug in NetBSD, but I can't easily confirm
this.

PR:		bin/143307
Reviewed by:	rdivacky (change to unzip.c only)
Obtained from:	NetBSD src/usr.bin/unzip/unzip.c 1.8

r203978 (gavin):

Bump .Dd for r203977

r204352 (ru):

Fixed static linkage.

==

Requested by:	Alex Kozlov <spam rm-rf kiev ua>
2010-05-04 19:18:00 +00:00
Martin Matuska
8d0dcb5513 MFC r207480:
Change description of tunable group vfs.zfs.txg to be more
understandable.

Approved by:    pjd, delphij (mentor)
2010-05-04 08:37:28 +00:00
Edwin Groothuis
35c5f1fc0b MFC of r201613, r201627
Be able to specify a certain date and/or time for which to calculate
the phase of the moon.
While not worlds best improvements, it will help calendar(1) later on.

Also closed bin/79008

PR:		bin/79008
2010-05-04 08:06:53 +00:00
Konstantin Belousov
14d447de52 MFC r206893:
Slightly modernize realpath(3).

SUSv4 requires that implementation returns EINVAL if supplied path is NULL,
and ENOENT if path is empty string [1].
Bring prototype in conformance with SUSv4, adding restrict keywords.
Allow the resolved path buffer pointer be NULL, in which case realpath(3)
allocates storage with malloc().

MFC r206898:
Free() is not allowed to modify errno, remove safety brackets around it.
Add small optimization, do not copy a string to the buffer that is
to be freed immediately after.

MFC r206997:
Move realpath(3) prototype to a POSIX section.

MFC r206998:
Add standards section, improve wording, taking into account the handling
of NULL and changed type in declaration.
2010-05-04 05:34:18 +00:00
Konstantin Belousov
22df1496d2 MFC r206894:
The cache_enter(9) function shall not be called for doomed dvp.
Assert this.

Verify that dvp is not reclaimed before calling cache_enter().
2010-05-04 05:25:48 +00:00
Konstantin Belousov
88389d6103 MFC r206264:
When OOM searches for a process to kill, ignore the processes already
killed by OOM. When killed process waits for a page allocation, try to
satisfy the request as fast as possible.
2010-05-04 05:14:43 +00:00
Warner Losh
c8ab44bfa8 MFC: r207461
sparc64, and possibly other architectures, pads the length of the
  section holding the config file to sh_addralign bytes using NULs.
  This bogusly triggers an assert.  Break out of the loop when we hit an
  NUL within that many bytes of the end.
2010-05-04 03:56:25 +00:00
Brooks Davis
ddd1f79f79 MFC r205073
Regen:
* Hart:		rev 671 of pcidevs.txt; 22-01-2008 (D-M-Y).
* Boemler:	vendors.txt (2010-03126)

PR:		kern/133733
2010-05-03 19:56:52 +00:00
Nathan Whitehorn
55a1a08945 MFC r206881:
Add gpart and glabel to the release CD mfsroot. Even if sysinstall
cannot partition disks on powerpc, this will allow the user to.

PR:		powerpc/93203
Obtained from:	ia64
2010-05-03 19:38:59 +00:00
Konstantin Belousov
74d05e56f5 MFC r203874:
Rename fields to match better the msdosfs headers.
2010-05-03 12:43:17 +00:00
Konstantin Belousov
66db13cc34 MFC r203872:
Bug fixes from NetBSD.
2010-05-03 12:41:27 +00:00
Konstantin Belousov
27408439c3 MFC r203871:
License changes from NetBSD.
Move to 2 clause license, approved by Wolfgang Solfrank.
2010-05-03 12:39:27 +00:00
Konstantin Belousov
12ec42c8c7 MFC r203869:
Rename variables to match msdosfs headers.
2010-05-03 12:37:33 +00:00
Konstantin Belousov
89b93ff188 MFC r203868:
Some cleanups from NetBSD.
2010-05-03 12:36:06 +00:00
Xin LI
bbcf576e7e MFC r206838:
Partially MFp4 #176265 by pjd@:

 - Properly initialize and destroy system_taskq.
 - Add a dummy implementation of taskq_create_proc().

Note: We do not currently use system_taskq in ZFS so this is mostly a
no-op at this time.  Proper system_taskq initialization is required
by newer ZFS code.

Ok'ed by:	pjd
2010-05-03 09:46:47 +00:00
Xin LI
30b42e7e74 MFC r207383:
Add FreeBSD 8.1 to known list as it's being referenced by a couple of
manpages already.
2010-05-03 09:35:40 +00:00
Bruce M Simpson
e58a96a73f MFC r207275:
Fix a regression where DVMRP diagnostic traffic, such as that used
  by mrinfo and mtrace, was dropped by the IGMP TTL check. IGMP control
  traffic must always have a TTL of 1.

Submitted by:	Matthew Luckie
2010-05-03 09:31:51 +00:00
Pyun YongHyeon
ed1a7d955a MFC r207251:
It seems ale(4) controllers do not like to see TCP payload in the
  first descriptor in TSO case. Otherwise controller can generate bad
  frames during TSO. To address it, make sure to pull up ethernet +
  IP + TCP header with options in first buffer. Also ensure the
  buffer length of the first descriptor for TSO covers entire ethernet
  + IP + TCP with options and setup additional Tx descriptor if the
  first buffer includes TCP payload.

  Tested by:	Amar Takhar <verm <> darkbeer dot org >
2010-05-03 01:04:44 +00:00
Marius Strobl
1f21f64ac2 MFC: r207151
Add a TestFloat based test suite for floating-point implementations
currently supporting sparc64. After a `make depend all` there are
three programs; testsoftfloat for testing against the SoftFloat in
src/lib/libc/softfloat for reference purposes, testemufloat for
testing the emulator source in src/lib/libc/sparc64/fpu and testfloat
for testing with the installed libc. Support for other architectures
can be added as needed.

PR:		144900
Submitted by:	Peter Jeremy
2010-05-02 16:55:10 +00:00
Marius Strobl
4ee4735187 MFC: r206490, r206492
While SPARC V9 allows tininess to be detected either before or after
rounding (impl. dep. #55), the SPARC JPS1 responsible for SPARC64 and
UltraSPARC processors defines that in all cases tininess is detected
before rounding therefore rounding up to the smallest normalized number
should set the underflow flag. This change is needed for using SoftFloat
on sparc64 for reference purposes.

PR:		144900
Submitted by:	Peter Jeremy
2010-05-02 16:52:23 +00:00
Marius Strobl
951139bba8 MFC: r206480
Update for UltraSPARC-IV{,+} and SPARC64 V, VI, VII and VIIIfx CPUs.
2010-05-02 16:47:50 +00:00
Marius Strobl
9582607bb5 MFC: r206450
Correct the DCR_IPE macro to refer to the right bit. Also improve the
associated comment as besides US-IV+ these bits are only available with
US-III++, i.e. the 1.2GHz version of the US-III+.
2010-05-02 16:46:20 +00:00
Marius Strobl
2cf37e65a3 MFC: r206449
Unlike the sun4v variant, the sun4u version of SUNW,set-trap-table
actually only takes one argument.
2010-05-02 16:45:08 +00:00
Marius Strobl
4d9e1e3e1f MFC: r206448
Do as the comment suggests and determine the bus space based on the last
bus we actually mapped at rather than always based on the last bus we
encountered while moving upward in the tree. Otherwise we might use the
wrong bus space in case the bridge directly underneath the nexus doesn't
require mapping, i.e. was skipped as it's the case for ssm(4) nodes.
2010-05-02 16:40:18 +00:00
Bjoern A. Zeeb
6419e07f19 MFC r207278:
MFP4: @177254

  Add missing CURVNET_RESTORE() calls for multiple code paths, to stop
  leaking the currently cached vnet into callers and to the process.

Sponsored by: The FreeBSD Foundation
Sponsored by: CK Software GmbH
2010-05-02 16:39:15 +00:00
Bjoern A. Zeeb
7f6b24dccf MFC r207277:
Enhance the historic behaviour of raw sockets and jails in a way
  that we allow all possible jail IPs as source address rather than
  forcing the "primary". While IPv6 naturally has source address
  selection, for legacy IP we do not go through the pain in case
  IP_HDRINCL was not set. People should bind(2) for that.

  This will, for example, allow ping(|6) -S to work correctly for
  non-primary addresses.

  Reported by:  (ten 211.ru)
  Tested by:    (ten 211.ru)
2010-05-02 16:36:15 +00:00
Bjoern A. Zeeb
6377d38081 MFC r207276:
Make sure IPv6 source address selection does not change interface
  addresses while walking the IPv6 address list if in the jail case
  something is connecting to ::1.

  Reported by:  Pieter de Boer (pieter thedarkside.nl)
  Tested by:    Pieter de Boer (pieter thedarkside.nl)
2010-05-02 16:32:41 +00:00
Bjoern A. Zeeb
bca61398fd MFC r207116:
Remove one zero from the double-0.
  This code doesn't have a license to kill.
2010-05-02 15:58:25 +00:00
Bjoern A. Zeeb
8b5076c9df MFC r206989:
Avoid memory access after free.  Use the (shortend) copy for the
  ipsec mtu lookup as well.

PR:		kern/145736
Submitted by:	Peter Molnar (peter molnar.cc)
2010-05-02 15:55:29 +00:00
Jilles Tjoelker
f4eb99be97 MFC r207189: symlink(7): Add lpathconf(2) and *at system calls. 2010-05-02 13:36:23 +00:00
Alexander Motin
467965c629 MFC r207222:
Move PI_TAG_ABLE check from ada driver to ATA XPT.
2010-05-02 12:50:29 +00:00
Alexander Motin
9171d4b736 MFC r206652:
Explicitly enable PCI busmastering on attach.
Now SiI3124 with siis(4) successfully works on sparc64 (SunBlade 100).
2010-05-02 12:45:22 +00:00
Alexander Motin
f40596ef9c MFC r205358:
Enable MSI by default for SiI3124.
2010-05-02 12:44:11 +00:00
Jilles Tjoelker
e96d10e414 MFC r207188: symlink(7): The ownership of symlinks is used by the system,
in at least three ways, so do not say it is ignored:
* who may delete/rename a symlink in a sticky directory
* who may do lchflags(2)/lchown(2)/lchmod(2)
* whose inode quota is charged
2010-05-02 12:43:18 +00:00