Commit Graph

169967 Commits

Author SHA1 Message Date
hannken
5d2bff060a Make sure all cached buffers with valid, not yet written data have been
run through copy-on-write.  Call fscow_run() with valid data where possible.

The LP_UFSCOW hack is no longer needed to protect ffs_copyonwrite() against
endless recursion.

- Add a flag B_MODIFY to bread(), breada() and breadn().  If set the caller
  intends to modify the buffer returned.

- Always run copy-on-write on buffers returned from ffs_balloc().

- Add new function ffs_getblk() that gets a buffer, assigns a new blkno,
  may clear the buffer and runs copy-on-write.  Process possible errors
  from getblk() or fscow_run().  Part of PR kern/38664.

Welcome to 4.99.63

Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>
2008-05-16 09:21:59 +00:00
hannken
961a5d4bcb Fscow_run() may recurse into itself.
Take care by adding a per-lwp recursion counter.
2008-05-16 09:01:56 +00:00
macallan
e369394198 sprinkle static 2008-05-16 03:49:54 +00:00
macallan
0a9283467c struct device * -> device_t 2008-05-16 03:11:09 +00:00
macallan
b6c6870c6d struct device * -> device_t 2008-05-16 02:41:50 +00:00
rjs
9a9e754190 Enable console on genfb(4). 2008-05-15 23:38:49 +00:00
rjs
89df53fa8e Enable DDB and INET6, remove use of md(4). 2008-05-15 23:36:47 +00:00
chris
f703bee5ef Fix two sizeof(__arraycount()) to not use sizeof when looking up the size
of the array.

This fixes a crash when run on amd phenom under amd64.

Issue reported and inital patch by Paul Goyette.
2008-05-15 23:31:56 +00:00
dyoung
848e7ffe8c In prop_data_create_data(blob, len), if len == 0, allocate no memory
for blob, and leave pd_mutable set to NULL.  In this way, avoid
tripping over the assertion in prop_data_data_nocopy().
2008-05-15 21:23:33 +00:00
sjg
f2c43a72d5 VAR_CMD context is used by conditionals and other purposes, so
actually set VAR_FROM_CMD when appropriate and only skip setting in
VAR_GLOBAL when that flag is set.
2008-05-15 21:05:54 +00:00
macallan
f147f68f57 listen to PMF volume control events
With this volume vontrol via keyboard works on my iBook G4.
2008-05-15 20:11:00 +00:00
macallan
7d61890be8 struct device -> device_t 2008-05-15 19:47:09 +00:00
macallan
f2769c0b12 Let ADB button devices send PMF events instead of pretending to be keyboards. 2008-05-15 19:19:50 +00:00
sjg
db7f6ac403 Disable this for now, VAR_CMD is abused for other purposes... 2008-05-15 18:25:12 +00:00
reinoud
69e96f0544 Introduce new UDF debug class and split rmw strategy debugging prints. 2008-05-15 14:22:40 +00:00
reinoud
1ff90d64ad Add accidently removed lines when i pruned the code for release. Important
update.
2008-05-15 10:57:40 +00:00
jmcneill
4dc263e1b4 ACPICA version 20080514 is out. 2008-05-15 09:51:26 +00:00
reinoud
22fe291e8b Fix missing -s argument. 2008-05-15 07:03:17 +00:00
dyoung
f72063f0c8 Note NSF support. 2008-05-15 04:16:00 +00:00
dyoung
ab6934acf9 Note both my contribution and NSF funding. 2008-05-15 04:03:53 +00:00
christos
dba9c5c1c8 Do the 'bc 25,0,' -> 'bdnz+' conversion automatically 2008-05-15 02:41:26 +00:00
dyoung
2ffdc0a9b6 Cosmetic: s/0/NULL/ 2008-05-15 02:07:57 +00:00
dyoung
9e7ef562d2 Simplify RT_DPRINTF() calls. 2008-05-15 01:33:28 +00:00
dyoung
9fa4982002 Get rid of gre_sosend()'s lwp argument. 2008-05-15 01:30:48 +00:00
nisimura
a63b802fd7 - cut half main.c and have brdsetup.c for cpu/board specifics.
- introduce match() routine to stylise the way to pickup a PCI
  device driver.
- fix tlp.c error in the previous commit.
2008-05-14 23:14:11 +00:00
reinoud
5d5fb047a1 Make rump compile UDF correctly. Note that it won't work though since rump
needs to be compiled with thread support.
2008-05-14 20:13:05 +00:00
dholland
880d196c7a fix typo in error message 2008-05-14 19:32:18 +00:00
dyoung
c288de686c Match printf argument type (uintmax_t) to format string (PRIuMAX). 2008-05-14 19:24:48 +00:00
dholland
0c2366cfe9 Print kernel version string along with the size output, to avoid having
to dig it out manually if installing by version number... and also to
make it somewhat easier to notice up front if one accidentally boots
the wrong test kernel. not like I've ever done that. ;-)

PR kern/38563.
2008-05-14 18:15:41 +00:00
reinoud
4e1e69dd64 Added UDF write support. 2008-05-14 16:52:35 +00:00
reinoud
e979c658c9 Import writing part of the UDF file system making optical media like CD's
and DVD's behave like floppy discs. Writing is supported upto and including
version 2.01; version 2.50 and 2.60 will follow.

Also extending the UDF implementation to support symbolic links and
hardlinks.

Added are the mmcformat(8) tool to format rewritable CD/DVD discs and
newfs_udf(8).

Limitations:
        all operations can be performed on the file system though the
        sheduling is currently optimised for archiving workloads.

        mv(1)/rename(2) is currently only implemented for non-directories.
2008-05-14 16:49:47 +00:00
sjg
20275ee931 Do not set vars in VAR_GLOBAL context, if they have been set on the
command line.
Add a suitable unit-test.
2008-05-14 14:27:02 +00:00
tsutsui
b87210fa51 Normalize my licenses. 2008-05-14 13:29:27 +00:00
ad
bf1cf71fcd - cpu_attach: ensure that the boot processor is set up before trying to
initialize APs. We need the lapic set up and the boot processor may
  not be attached first.

- mp_cpu_start: write back and invalidate the data cache before starting the
  init IPI sequence. If a buggy BIOS has left the AP with cache disabled,
  it might not be able to participate in the cache coherency protocol.
2008-05-14 12:53:49 +00:00
jmcneill
05f909b7fa Fix memory leak on attach/resume. 2008-05-14 12:15:47 +00:00
tron
1fec9888f6 Mention "netgroup" support in getent(1). 2008-05-14 11:45:47 +00:00
tron
684e3b35bd Add support for "netgroup" database. The output format matches what
Linux produces (because Solaris doesn't support this).
2008-05-14 11:44:09 +00:00
dogcow
14c78766c5 I have no idea why the assembler doesn't like
bc	25,0,label
so replace it with
	bdnz+	label
which is the same thing.
2008-05-14 09:04:26 +00:00
he
30e1f3f935 Bump ramdisk size to compensate for recent bloat. 2008-05-14 08:08:31 +00:00
garbled
562fa2cf46 Add rs6000 to the headerlist. Pointed out by Michael Muller 2008-05-14 07:08:40 +00:00
matt
082a2ff75b Back out SD/MMC inclusion which shouldn't have been comitted. 2008-05-14 01:58:29 +00:00
ad
5d1d928fe1 Be more conservative during AP startup. Don't let the AP access the lapic
or do any setup until the boot processor has finished the init sequence,
and add a few more delays.
2008-05-13 22:39:17 +00:00
christos
5b61e403a2 don't play with timevals directly, use the macros. From OpenBSD 2008-05-13 22:16:27 +00:00
dyoung
e6c098fa6e rtinit() should pass RTM_ADD to ifa->ifa_rtrequest instead of cmd,
after all.
2008-05-13 20:49:33 +00:00
dyoung
e78c6441d1 Cosmetic; reduce excessive parenthesization. 2008-05-13 20:40:33 +00:00
mjf
cedc21b1f9 Do not dereference this->intr if it's NULL. 2008-05-13 20:21:19 +00:00
dyoung
9efe814c6c In rtinit(), when cmd == RTM_ADD, pass cmd instead of RTM_ADD to
ifa->ifa_rtrequest(), in preparation for handling rtinit(RTM_CHANGE)
in the RTM_ADD branch.
2008-05-13 20:21:09 +00:00
ad
62118300c8 intr_string: don't bother printing the legacy irq number when using the
ioapic. It's confusing.
2008-05-13 20:19:26 +00:00
dyoung
4dbd129d42 Simplify the RT_DPRINTF() calls. 2008-05-13 20:18:11 +00:00
dyoung
2d716f631f Replace a call to rtrequest() with single dst, mask, gateway
arguments, with a call to rtrequest1() with the rt_addrinfo those
single arguments come from.  No functional change intended.
2008-05-13 20:16:30 +00:00