Commit Graph

75201 Commits

Author SHA1 Message Date
Rick Macklem
4e76f29635 MFC: r206063
For the experimental NFS server, add a call to free the lookup
path buffer for one case where it was missing when doing mkdir.
This could have conceivably resulted in a leak of a buffer, but
a leak was never observed during testing, so I suspect it would
have occurred rarely, if ever, in practice.
2010-04-16 02:16:58 +00:00
Kevin Lo
e83c1c9d1e MFC r206595
Eliminate duplicate comment
2010-04-16 01:54:47 +00:00
Kevin Lo
499a07ef68 MFC r206544
The Quanta Q101 modem has a different type of cdrom driver disk,
add the product id and use a standard scsi eject.

Reviewed by:	thompsa
2010-04-16 01:53:19 +00:00
Rick Macklem
2d2fef10c5 MFC: r206061
Add SAVENAME to the cn_flags for all cases in the experimental
NFS server for the CREATE cn_nameiop where SAVESTART isn't set.
I was not aware that this needed to be done by the caller until
recently.
2010-04-16 01:39:30 +00:00
Pyun YongHyeon
fa7ad760a6 MFC r206268
- Fixed 5708S 2.5G support broken in last commit.
  - Added some new debug helper routines to systcl.
  - Fixed many of the style(9) violations that have crept into the code
    due to my use of a "smart" editor.
2010-04-15 19:29:56 +00:00
Pyun YongHyeon
9c89e97770 MFC r205300:
- Added support for 5709S/5716S PHYs.
  - Update copyright to 2010.
  - Add new debug code for RV2P block.
  - Improve output formatting for various debug functions.

  PR:	kern/134658, kern/136417, kern/139761, kern/140970
2010-04-15 19:26:28 +00:00
Pyun YongHyeon
679953c6bd MFC r205299:
- Added support for 5709S/5716S PHYs.

  Submitted by: pyunyh
  PR:	kern/134658, kern/136417, kern/139761, kern/140970
2010-04-15 19:19:59 +00:00
Alexander Motin
d9b0781af8 MFC r206021, r206032, r206049, r206050:
Remove some more alignment constraints.
2010-04-15 12:46:16 +00:00
Alexander Motin
a35d181273 MFC r206017:
Make ng_ksocket fulfill lower protocol stack layers alignment requirements
on platforms with strict alignment constraints.
This fixes kernel panics on arm and probably other architectures.

PR:             sparc64/80410, sparc/118932, sparc/113556
2010-04-15 12:41:36 +00:00
Alexander Motin
b7261229f9 MFC r206015:
Make ng_l2tp irrelevant to data alignment.
2010-04-15 12:40:02 +00:00
Alexander Motin
f1725d1c1c NFC r206000:
Make ng_ppp fulfill upper protocol stack layers alignment requirements
on platforms with strict alignment constraints.
This fixes kernel panics on arm and probably other architectures.

PR:             sparc64/80410, sparc/118932, sparc/113556
2010-04-15 12:38:55 +00:00
Alexander Motin
48e700702f MFC r206053, r206054:
Fill extended ATA command registers in cPRD to support 48bit commands.
2010-04-15 12:30:46 +00:00
Alexander Motin
fec9df653c MFC r205967:
Include opt_ata.h, as some structures here depending on ATA_CAM option.
This fixes ATA_CAM with atamvsata and probably some other drivers.
2010-04-15 12:26:24 +00:00
Alexander Motin
b1a034ef8e MFC r205680:
Use last 16 bytes of serial number in metadata instead of first ones,
same as Intel MatrixRAID does.

PR:             kern/124064
2010-04-15 12:20:13 +00:00
Konstantin Belousov
b754ab83bc MFC r206395:
Do not leak master pty or ptmx vnode.
2010-04-15 08:17:28 +00:00
Justin T. Gibbs
060c98cc06 MFC 204214:
Enforce stronger bus-dma alignment semantics so bus-dma operates correctly
with Xen's blkfront driver.
2010-04-14 17:01:29 +00:00
Justin T. Gibbs
88b4fd072e MFC revision 205781:
Use standard types in preference to BSD types so that these header files
can be used in applications compiled with only POSIX types visible.
2010-04-14 16:37:34 +00:00
Alan Cox
311d363969 MFC r206409
Introduce the function kmem_alloc_attr(), which allocates kernel virtual
  memory with the specified physical attributes.

  Correct an error in the prototype for kmem_malloc().
2010-04-14 16:31:59 +00:00
John Baldwin
805de54cfc MFC 205886:
Defer freeing a kevent list until after dropping kqueue locks.
2010-04-14 15:33:15 +00:00
John Baldwin
f70ad5484f MFC 205536:
Reject attempts to create a MAP_ANON mapping with a non-zero offset.
2010-04-14 15:22:58 +00:00
John Baldwin
5f99d9e2ba MFC 205851:
Add a handler for the local APIC error interrupt.  For now it just prints
out the current value of the local APIC error register when the interrupt
fires.
2010-04-14 15:00:46 +00:00
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
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
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
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
8d5ce86fd6 MFC r206098: mountmsdosfs: reject too high value of bytes per cluster 2010-04-12 20:53:17 +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
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
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
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