151101 Commits

Author SHA1 Message Date
Rick Macklem
066adacfb1 MFC: r205941
This patch should fix handling of byte range locks locally
on the server for the experimental nfs server. When enabled
by setting vfs.newnfs.locallocks_enable to non-zero, the
experimental nfs server will now acquire byte range locks
on the file on behalf of NFSv4 clients, such that lock
conflicts between the NFSv4 clients and processes running
locally on the server, will be recognized and handled correctly.
2010-04-14 03:13:02 +00:00
Pyun YongHyeon
f49339f5cd MFC r206436:
Consistently use capital letters.
2010-04-14 01:22:33 +00:00
Pyun YongHyeon
8451de87b9 MFC r206433:
Add preliminary support for 8168E/8111E PCIe controller.
  While I'm here simplify device description string.

  Tested by:	Michael Beckmann < michael <> apfel dot de >
2010-04-14 01:12:24 +00:00
Pyun YongHyeon
b9b10dc47b MFC r206364:
Partial revert r204545.
  Just relying on status LE ownership of status block seems to cause
  poor performance. Always read current status index register first
  and then check status ownership as we had before. Accessing status
  index register seems to trigger immediate status update if
  controller have pending status updates.

  Reported by:	Andre Albsmeier <Andre.Albsmeier <> siemens dot com>
  Tested by:	Andre Albsmeier <Andre.Albsmeier <> siemens dot com>
2010-04-14 00:50:18 +00:00
Doug Barton
459706bd14 MFC r205995:
Massive cleanup and synchronization with other *BSDs
2010-04-13 20:44:16 +00:00
Doug Barton
6cb7b50152 MFC r206248:
Change where we nap so that if pwait(1) returns but kill -0 still sees
a zombie we don't print an endless string of the same pid number until
the zombie exits.

While I'm here, local'ize the variables that this function uses.
2010-04-13 20:36:54 +00:00
Ed Maste
e7edb3e309 MFC r205880 by ru:
- Handle calloc() allocation failures.
  - Fixed a comment.
  - 2 -> EXIT_FAILURE in some places.
  - errx() -> err() where appropriate.

PR:		144644
Submitted by:	Garrett Cooper

Also fix endinclude() prototype to avoid compiler warning.
2010-04-13 18:46:18 +00:00
Konstantin Belousov
a0e70f3995 MFC r206459:
Handle a case when non-canonical address is loaded into the fsbase or
gsbase MSR.
2010-04-13 10:23:03 +00:00
Edward Tomasz Napierala
1d7437b3db MFC r205853:
Add myself.
2010-04-13 06:05:15 +00:00
Edward Tomasz Napierala
5b796d064a MFC r205796:
Make acl_to_text_np(3) not crash on long group or user names in NFSv4 ACLs.

PR:		amd64/145091
2010-04-13 06:01:24 +00:00
Warner Losh
3a1e7f892f MFC: 205994
Two fixes:

  (1) We don't need a custom install_kernel.  We can install without
  symbols by adding INSTALL_NODEBUG (which likely should be
  WITHOUT_KERNEL_SYMBOLS_FILE, or something shorter) to CONF_INSTALL
  (2) for make buildenv stage, use NANO_MAKE_CONF_BUILD rather than the
  non-existant NANO_MAKE_CONF.

  MFC after:	7 days
2010-04-13 01:04:11 +00:00
Warner Losh
92f7bd5aec MFC: 205992
Make -r mean exactly the same thing as -E for increased compatibility
  with GNU sed.

  MFC after:	7 days
2010-04-13 01:02:20 +00:00
Warner Losh
4e6eaf365b MFC 205980:
Stop hard coding i386 as the arch for the build.  Instead, default to the
  processor we're running on.  Also, supply amd64 version of create_diskimage
  that's the same as i386's.

  # didn't fix the confusion between using the processor for this and using
  # the machine (which would be more appropriate).  NANO_ARCH smashes the two
  # together right now.

  MFC after:	7 days
2010-04-13 00:57:54 +00:00
Warner Losh
4bbe66c93f MFC 205838:
Mark the vtoc.h structure as packed so that it is the right size and
  layout on arm.

  MFC after:	7 days
2010-04-13 00:55:11 +00:00
Warner Losh
3d1783b6c8 MFC r203710:
When you have multiple addresses on the same network on different
  interfaces (such as when you are part of a carp pool), and you run
  rpcbind -h to restrict which interfaces have rpc services, rpcbind can
  none-the-less return addresses that aren't in the -h list.  This patch
  enforces the rule that when you specify -h on the command line, then
  services returned from rpcbind must be to one of the addresses listed
  in -h, or be a loopback address (since localhost is implicit when
  running -h).

  The root cause of this is the assumption in addrmerge that there can
  be only one interface that matches a given network IP address.  This
  turns out not to be the case.  To retain historical behavior, I didn't
  try to fix the routine to prefer the address that the request came
  into, since I didn't know the side effects that might cause in the
  normal case.  My quick analysis suggests that it wouldn't be a
  problem, but since this code is tricky I opted for the more
  conservative patch of only restricting the reply when -h is in effect.

  Hence, this change will have no effect when you are running rpcbind
  without -h.

  Reviewed by:	alfred@
  Sponsored by:	iX Systems
  MFC after:	2 weeks
2010-04-13 00:48:54 +00:00
Fabien Thomas
18f2288474 MFC r206090:
Improve "top" header by:
- Display sample received per PMCs (or merged PMCs).
- Display percentage vs all samples
2010-04-12 21:37:28 +00:00
Andriy Gapon
31810d290b MFC r206102,206103,206175,206176: add example indent.pro file 2010-04-12 21:18:58 +00:00
Andriy Gapon
d1bec90bbe MFC r206178: ibc/db/hash: cap auto-tuned block size 2010-04-12 21:12:03 +00:00
Andriy Gapon
8eb59aff80 MFC r206128: ffs_mount: remove redundant assignment of to devvp.v_bufobj 2010-04-12 21:07:58 +00:00
Andriy Gapon
ce749f106e MFC r205989: indent(1): new option, -ta, to treat all *_t identifiers as types 2010-04-12 21:04:35 +00:00
Andriy Gapon
8d5ce86fd6 MFC r206098: mountmsdosfs: reject too high value of bytes per cluster 2010-04-12 20:53:17 +00:00
Hajimu UMEMOTO
e42bcb8719 MFC r206266: Set net.inet6.ip6.fw.enable as well. 2010-04-11 15:17:52 +00:00
Jaakko Heinonen
e3359a8c1a MFC r205385:
Escape characters unsafe for XML output in GEOM class, instance and
provider names.

- Characters in range 0x01-0x1f except '\t', '\n', and '\r' are replaced
  with '?'. Those characters are disallowed in XML.
- '&', '<', '>', '\'', '"' and characters in range 0x7f-0xff are
  replaced with XML numeric character reference.

If the kern.geom.confxml sysctl provides invalid XML, libgeom
geom_xml2tree() fails and utilities using it do not work. Unsafe
characters are common in msdosfs and cd9660 labels.

PR:		kern/104389
2010-04-10 14:28:58 +00:00
Ed Maste
f246dcccca MFC r206383:
Remove extraneous '>'.
2010-04-09 22:50:36 +00:00
Konstantin Belousov
f2c7b98632 MFC r206094:
Supply default implementation of VOP_RENAME() that does neccessary
unlocks and unreferences for argument vnodes, as expected by
kern_renameat(9), and returns EOPNOTSUPP. This fixes locks and
reference leaks when rename is attempted on fs that does not
implement rename.
2010-04-09 08:45:30 +00:00
Konstantin Belousov
bb9a8424a3 MFC r206093:
Add function vop_rename_fail(9) that performs needed cleanup for locks
and references of the VOP_RENAME(9) arguments. Use vop_rename_fail()
in deadfs_rename().
2010-04-09 08:39:28 +00:00
Alan Cox
55146b83de MFC r206174
vm_reserv_alloc_page() should never be called on an OBJT_SG object, just
  as it is never called on an OBJT_DEVICE object.  (This change should have
  been included in r195840.)
2010-04-09 06:40:30 +00:00
Rick Macklem
5b41805237 MFC: r205663
Patch the experimental NFS server in a manner analagous to r205661
for the regular NFS server, to ensure that ESTALE is
returned to the client for all errors returned by VFS_FHTOVP().
2010-04-09 01:33:12 +00:00
Rick Macklem
ae4539db79 MFC: r205661
Patch the regular NFS server so that it returns ESTALE to the client
for all errors returned by VFS_FHTOVP(). This is required to ensure
that EIO doesn't get returned to the client when ZFS is used as the
server file system.
2010-04-09 01:14:39 +00:00
Matt Jacob
f264739949 This is an MFC of 206029
Add a couple missing basic mode page codes.
2010-04-08 18:33:35 +00:00
Andriy Gapon
a1a102fb15 MFC r206177: hash.3: fix a factual mistake in the man page 2010-04-08 07:43:15 +00:00
Xin LI
e546195f07 MFC r204901
Remove the check for IFF_DRV_OACTIVE right before adding a port into lagg
interface.  The check itself seems to be coming from OpenBSD but does not
seem to be useful for our code.

Discussed with:	thomasa
2010-04-08 00:52:28 +00:00
Andriy Gapon
354b61f607 MFC r205988: indent(1): correctly handle case/label at the very start of a function 2010-04-07 22:19:46 +00:00
Hajimu UMEMOTO
362fb32a52 MFC r200028, r201193, r201752, r201930, r202460, r200672, r206375:
Unify rc.firewall and rc.firewall6, and obsolete rc.firewall6 and
rc.d/ip6fw.
2010-04-07 19:04:36 +00:00
Matt Jacob
81b67791ee This is an MFC of 205993
For unhandled actions in xpt_action_default, remember to call
xpt_done for queued requests. This solves the problem of
indefinite hangs for unspecified transports when XPT_SCAN_BUS
is called.

A few minor cosmetics elsewhere.
2010-04-07 17:58:29 +00:00
Rick Macklem
0bbe1d9baa MFC: r205572
Fix the experimental NFS subsystem so that it uses the correct
preprocessor macro name for not requiring strict data alignment.
2010-04-07 15:19:52 +00:00
Rui Paulo
0a62815524 MFC r205986:
Constify vap argument of ieee80211_{note,discard}* functions.
2010-04-07 14:59:07 +00:00
Konstantin Belousov
548ce22832 Regen. 2010-04-07 14:53:49 +00:00
Konstantin Belousov
7f67bb1b41 MFC r205327:
Remove empty line.
2010-04-07 14:52:42 +00:00
Konstantin Belousov
36131b48ed MFC r205326:
Convert aio syscall registration to SYSCALL_INIT_HELPER.
2010-04-07 14:50:58 +00:00
Konstantin Belousov
048575ee75 MFC r205325:
Implement compat32 shims for mqueuefs.
2010-04-07 14:49:35 +00:00
Konstantin Belousov
0aab10e1a8 MFC r205324:
Implement compat32 shims for ksem syscalls.
2010-04-07 14:47:55 +00:00
Konstantin Belousov
db5805dded MFC r205323:
Move SysV IPC freebsd32 compat shims from freebsd32_misc.c to corresponding
sysv_{msg,sem,shm}.c files.

Mark SysV IPC freebsd32 syscalls as NOSTD and add required
SYSCALL_INIT_HELPER/SYSCALL32_INIT_HELPERs to provide auto
register/unregister on module load.

This makes COMPAT_FREEBSD32 functional with SysV IPC compiled and loaded
as modules.
2010-04-07 14:46:28 +00:00
Konstantin Belousov
4ad2ce357a MFC r205322:
Move SysV IPC freebsd32 compat shims helpers from freebsd32_misc.c to
sysv_ipc.c.
2010-04-07 14:35:09 +00:00
Konstantin Belousov
0272ddd8bb MFC r205321:
Introduce SYSCALL_INIT_HELPER and SYSCALL32_INIT_HELPER macros and
neccessary support functions to allow registering dynamically loaded
syscalls from the MOD_LOAD handlers. Helpers handle registration
failures semi-automatically.
2010-04-07 14:28:47 +00:00
Konstantin Belousov
ba4a8a92d1 MFC r205320:
For SYSCALL_MODULE_HELPER, use "sys/<syscallname>" module name.
For SYSCALL32_MODULE_HELPER, use "sys32/<syscallname>" module name.
This avoids modules name conflict when compat32 syscall does not
need shims.
2010-04-07 14:22:38 +00:00
Konstantin Belousov
9fb7bf5584 MFC r205318:
Properly handle compat32 calls to sctp generic sendmsd/recvmsg functions that
take iov.
2010-04-07 14:16:14 +00:00
Konstantin Belousov
6283dea5ca MFC r205319:
Make freebsd32_copyiniov() available outside of freebsd32_misc.
2010-04-07 14:09:29 +00:00
Luigi Rizzo
54d63d7b13 add priority scheduler. 2010-04-07 13:18:58 +00:00
Luigi Rizzo
7b3c0af43e fix breakage in ipfw removal. 2010-04-07 12:42:49 +00:00