Commit Graph

151089 Commits

Author SHA1 Message Date
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
Nathan Whitehorn
b47065d16d Regen after MFC of COMPAT_FREEBSD32. 2010-04-07 02:25:36 +00:00
Nathan Whitehorn
4ccf64eb2b MFC r205014,205015:
Provide groundwork for 32-bit binary compatibility on non-x86 platforms,
for upcoming 64-bit PowerPC and MIPS support. This renames the COMPAT_IA32
option to COMPAT_FREEBSD32, removes some IA32-specific code from MI parts
of the kernel and enhances the freebsd32 compatibility code to support
big-endian platforms.

This MFC is required for MFCs of later changes to the freebsd32
compatibility from HEAD.

Requested by:	kib
2010-04-07 02:24:41 +00:00
Andrew Thompson
6836afc4c6 MFC r203147
Add a function to check if the usb devices is still connected.

Submitted by:	Hans Petter Selasky
2010-04-07 00:34:05 +00:00
Andrew Thompson
464b64f6c8 MFC r205036
Implement USB kernel driver detach from userland.

Submitted by:	Hans Petter Selasky
2010-04-07 00:32:59 +00:00
Andrew Thompson
fb8f1e2afc MFC r205681
- add some usb devices (scanner, printer, usb storage)
 - add quirks for the usb storage
2010-04-07 00:30:25 +00:00
Andrew Thompson
3769678a82 MFC r203087
adds sysctl knobs to show rate statistics that it could be useful to
 debug slow TX speed.
2010-04-07 00:27:59 +00:00
Andrew Thompson
1e6c93d364 MFC r202609
Product ID of D-Link DWA-120 after loading the firmware is incorrect.
2010-04-07 00:26:39 +00:00
Andrew Thompson
cfc42a2785 MFC r202608
Remove a hack to attach TRENDnet TEW-504UB/EU, this has been solved.
2010-04-07 00:25:03 +00:00
Andrew Thompson
a811dd8b64 MFC r205805
Do not sync cache for the PL2506

PR:		usb/144915
Submitted by:	Monty Hall
2010-04-06 23:31:22 +00:00
Andrew Thompson
6b6aaa9fcd MFC r205804
Do not swap Apple keys when detecting Apple-FN keyboards.

Reported by:	Steven Noonan
Submitted by:	Hans Petter Selasky
2010-04-06 23:30:57 +00:00
Andrew Thompson
3224ea55bb MFC r205803
Make sure the bsd_urb_list gets initialised and that new URB's are queued at
 the end of the list.

Submitted by:	Hans Petter Selasky
2010-04-06 23:30:30 +00:00
Andrew Thompson
441f5e4c8a MFC r205802
Add PCI IDs for two more nForce controllers.

Submitted by:	Dmitry Luhtionov @ gmail.com
2010-04-06 23:30:02 +00:00