Commit Graph

213970 Commits

Author SHA1 Message Date
apb
8d127e2f7d Add distrib/common/Makefile.minirootkmod. Apart from comments and the
conversion of some constants to variables, this is identical to the code
that was previously present in both distrib/amd64/kmod/Makefile and
distrib/i386/kmod/Makefile.

Change distrib/amd64/kmod/Makefile and distrib/i386/kmod/Makefile to just
set some variables and .include "../../common/Makefile.minirootkmod".
2012-10-16 08:19:36 +00:00
msaitoh
6e01075aae Fix a bug that armeb machine misunderstand MBR partition's offset
and size. Fixes PR#47081
2012-10-16 00:25:09 +00:00
riastradh
8e972045d7 Restore _PC_NO_TRUNC in zfs_netbsd_pathconf.
Accidentally clobbered it in a previous commit while moving patches
around between source trees -- oops.
2012-10-16 00:04:15 +00:00
riastradh
6d6cb07bff Fail lookup of .. in a deleted directory with ENOENT.
Don't try to zget the parent, whose znode id may have been recycled
by now.

It's not clear to me how Solaris avoids this, but maybe I'm just
missing something obvious.
2012-10-15 23:51:11 +00:00
riastradh
1baf22d09c Fix various issues in zfs life cycle, locking, and vop protocol.
- Restore some zfs locking and unlocking that got lost randomly.

- Enable use of the BSD vnode lock.  Lock order: all BSD vnode locks
are taken before all zfs internal locks.  There remains an issue with
O_EXCL, to be solved later (famous last words).  KASSERT the locking
scheme up the wazoo.

- Take our cruft out of zfs_lookup and move it to zfs_netbsd_lookup.
Restore much of the way zfs_lookup looked to make merging future
versions easier.  Disable use of the namecache for now because its
locking dance is too scary to contemplate.

- Implement BSD semantics for rename, to appease our tests.  This is
a provisional kludge; eventually we need VOP_RENAME to take a flag
specifying whether to use BSD semantics or POSIX semantics.

- Simplify zfs_netbsd_reclaim and make it work.  Now that getnewvnode
never tries to vclean anything itself, we need not worry about
recursion of ZFS_OBJ_MUTEX locks.

- Clarify and fix genfs node initialization and destruction.

zfs passes most of our atf vfs tests now, including the rename races.

Still to do:

- fix the impedance mismatch between our permissions model and zfs's;
- fix O_EXCL (nontrivial);
- throw dirconc at it and see how badly it explodes;
- find why zpool sometimes wedges itself during mkfs; and
- find why pool caches sometimes seem to get corrupted.
2012-10-15 23:08:19 +00:00
riastradh
1b44cf7c91 secpolicy_vnode_access must be called with the vnode lock held.
Don't unlock the vnode and then tell the caller about what the world
was like while the vnode was locked.  The world changes fast.
2012-10-15 22:50:25 +00:00
riastradh
2ea30100de Simplify zfs dirlock reference counting.
No need to pass dzp around; dl has a pointer to it.
2012-10-15 22:43:50 +00:00
msaitoh
2d0deef114 -Wstrict-overflow 2012-10-15 22:22:01 +00:00
palle
353a2445b0 Added palle@ to list of NetBSD developers 2012-10-15 18:15:28 +00:00
njoly
60dc3e4d2e Add a small testcase for PR/47068. 2012-10-15 17:49:58 +00:00
jakllsch
daedb20696 Add ural; still needs a man page. 2012-10-15 17:08:33 +00:00
riastradh
b2ba8fafaa Do reference counting for zfs range lock waiters.
Avoid cv_broadcast(&cv); cv_destroy(&cv); which works in Solaris only
by abuse of the condvar abstraction.

There are parts of this code that should be factored into smaller
subroutines, mainly range lock allocation and initialization, but
that would make it harder to merge newer versions of zfs, so for now
I've just expanded those parts further in-line.
2012-10-15 14:15:59 +00:00
riastradh
f1e3330bc7 Do reference counting for zfs dirlock waiters.
Solaris relies on cv_broadcast(&cv); cv_destroy(&cv) working, but
that hoses our cv_wait, which needs to continue using cv after it is
woken.  Solaris's idiom is an abuse of the condvar abstraction, but
we can get the same effect with reference counting.
2012-10-15 14:03:06 +00:00
jakllsch
c2c9883c0b Make whitespace following preprocessor keywords consistent
with the predominating form in this file (that is, a space).
2012-10-15 13:38:52 +00:00
skrll
27760181fb More VERBOSE_INIT_ARM output tweaks. 2012-10-15 12:26:06 +00:00
skrll
4f3dabd013 Typo in comment. 2012-10-15 11:24:15 +00:00
skrll
ec958642ae Print the system vectors in order so I don't get confused. 2012-10-15 10:19:52 +00:00
wiz
e69208883b tmux-1.7 is out. 2012-10-15 08:08:01 +00:00
dholland
6c1de0eff5 Add an XXX comment about a broken error case in ufs_dirremove.
(this was in one of my old rename patches)
2012-10-14 23:57:32 +00:00
christos
eac5a1b990 remove KERN_USRSTACK 2012-10-14 20:56:55 +00:00
phx
c8ba8ca4a7 CV3DONZORRO2 option is no longer needed.
grf_cv3d.c was successfully tested running in a Zorro2 slot.
2012-10-14 20:33:17 +00:00
msaitoh
3f974a9659 Add Interrupt Coalescing setting by Robert Swindells. 2012-10-14 19:17:08 +00:00
msaitoh
0e1b36df07 struct device * -> device_t change. 2012-10-14 19:10:41 +00:00
tsutsui
17a9010449 KNF and space nits 2012-10-14 19:06:25 +00:00
tsutsui
0fc41fa7ec Note x68k formatting floppy support. 2012-10-14 18:42:22 +00:00
tsutsui
88ab3aa82d Add floppy format support. Mostly taken from sys/dev/isa/fd.c.
Tested both fdNa (1232KB, 1024bytes/sector, 8sectors/track) and
fdNc (1200KB, 512bytes/sector, 15sectors/track) format on X68030
using fdformat(1).

Finally we can prepare NetBSD/x68k install floppies without Human68k
(except actual initial bootstrap).
2012-10-14 18:38:32 +00:00
msaitoh
cdc497cb0f struct device * -> device_t change.
Not tested though.
2012-10-14 18:37:55 +00:00
wiz
91e17787cb Fix path to firmware. From ISIHARA Takanori in PR 47076. 2012-10-14 17:52:55 +00:00
tsutsui
f5ea236221 Terminate DMAC and call bus_dmamap_unload(9) properly in all FDC xfer
error paths, as sys/dev/isa/fd.c does.  Fixes unexpected DMAC errors
(and possible VM panic due to un-unloaded dmamap) on the first floppy
access after read/write errors.
2012-10-14 17:25:59 +00:00
tsutsui
75c98cb8e5 Before probing floppy drives, call NE7CMD_SENSEI and fdcresult()
to drain possible pending FDC interrupts.  Taken from sys/dev/isa/fd.c.
Hopefully might fix occasional fd drive probe failure (but not confirmed).
2012-10-14 17:20:18 +00:00
tsutsui
e7496b5fd1 To abort DMA in dmac_abort_xfer(), set DMAC_CCR_SAB (software abort)
rather than DMAC_CCR_HLT (halt operation).

DMAC_CCR_HLT doesn't abort DMA xfers but only suspends DMA ops
(i.e. clearing HLT bit will resume DMA xfers), so previously
DMAC error always occurs on the next DMA xfer ops after
dmac_abort_xfer() is called.

Also suppress DMAC error messages in dmac_error() if it's caused
by software abort command because it can happen during normal
audio play/record DMA ops in vs(4) driver.
2012-10-14 16:36:31 +00:00
tsutsui
eaa9cbdf28 Check lp->d_npartitions before calling dkcksum()
(which is in src/sbin/disklabel/dkcksum.c) because
it doesn't check range and could cause coredump during
installboot against floppy that includes garbage in LABELSECTOR.
2012-10-14 16:20:04 +00:00
skrll
697a2ce91b Add the Raspberry PI firmware VC mailbox channel numbers.
Add some VC property tag definitions and use them to get ARM/VC memory
split.

Grab a few others things in the process, but don't do anything other than
display them when VERBOSE_INIT_ARM is defined.
2012-10-14 16:16:52 +00:00
msaitoh
a2b8c7fb07 struct device * -> device_t for IXP4xx (and nslu2).
Tested with my NSLU2.
2012-10-14 14:20:57 +00:00
msaitoh
ff5995751c Add PTYFS 2012-10-14 13:54:39 +00:00
phx
56704dbbf0 ed_ring structure is no longer needed for compatibility, as the last
device driver using it (amiga/ed(4)) has been converted now.
2012-10-14 13:38:13 +00:00
phx
4468ae6d60 New ed(4) device driver for Hydra and ASDG Zorro2 bus network cards.
This driver is based on the MI dp8390 backend.
2012-10-14 13:36:07 +00:00
msaitoh
255c8c559e Add some files to complete "make release" for big endian. 2012-10-14 12:36:57 +00:00
njoly
4718852312 Add a width argument to tag list, otherwise mandoc output is just
unreadable.
2012-10-14 10:05:55 +00:00
njoly
c4ffda7b9e Quote .Cd argument. 2012-10-14 10:03:47 +00:00
dholland
8b39f69929 typo 2012-10-14 08:49:28 +00:00
plunky
048d95d5ff no trailing comma on enum 2012-10-14 08:35:45 +00:00
plunky
c61317e3bf add code to ensure that SO_SNDBUF is large enough on client connections,
as was previously done for server mode
2012-10-14 08:31:35 +00:00
jmmv
aec6efdd3a Add missing ./usr/X11R7/lib/modules/libexa_g.a to fix MKDEBUGLIB=yes build. 2012-10-13 21:21:52 +00:00
dholland
9d2c006837 Improve the diagnostic messages for invalid/non-ELF files. Proposed a
while back; I forget the context. Has been sitting in one of my trees
awaiting a test run since, apparently, August 2011.
2012-10-13 21:13:07 +00:00
dholland
a59cfd489a Pass -Wstrict-overflow 2012-10-13 21:03:09 +00:00
dholland
bf33b97c19 Pass -Wstrict-overflow; while here, use curses TRUE and FALSE only with
curses.
2012-10-13 21:01:13 +00:00
dholland
0d0b06a380 Pass -Wstrict-overflow... mostly. 2012-10-13 20:57:35 +00:00
dholland
211b175c28 Pass -Wstrict-overflow. 2012-10-13 20:42:56 +00:00
dholland
0f960348b2 Pass -Wstrict-overflow, and while here, don't read from index -1 of
an array.
2012-10-13 20:36:06 +00:00