Commit Graph

146204 Commits

Author SHA1 Message Date
hannken
f4729837b8 Emit "a snapshot of" message for snap_internal case too. 2006-04-19 15:42:12 +00:00
christos
74e3aa75eb Perry reports that buf can be NULL, so deal with it. 2006-04-19 15:13:34 +00:00
he
14efda3f28 Be sure to prefix explicitly mentioned source files with ${.CURDIR}/,
so that this can build with objects placed elsewhere.
2006-04-19 15:10:40 +00:00
jmcneill
f77081f364 Don't use simple_locks; we can't hold them while calling malloc and
friends.
2006-04-19 14:10:58 +00:00
tron
1b9393837d Add missing entries for ndiscvt(8) and its manual pages. 2006-04-19 10:58:17 +00:00
drochner
1168954c68 adjust comments for the new location of wskbdmap_mfii.c,
addresses PR kern/33290 by henry nelson
2006-04-19 10:31:44 +00:00
lukem
2eb5047221 Order & uniq DEPS, a la <bsd.dep.mk>. 2006-04-19 07:08:17 +00:00
lukem
7caf2ff17d Sort SYSTEM_OBJ before adding to SYSTEM_DEP.
Kernel builds are now more consistent with userland
(and IMHO building in order is more asthetically pleasing.)
2006-04-19 07:06:22 +00:00
he
c0f90d3a98 Follow up i/o statistics collection conversion, patterned after the sparc fd.c. 2006-04-19 06:16:00 +00:00
perseant
5f627fe958 Avoid a possible sign overflow condition in lfs_truncate, which would result
in a buffer overflow (underflow).  Coverity CID 1521.
2006-04-19 00:22:15 +00:00
perseant
80a505b9f7 Don't roll forward if we aren't given a process context. Coverity CID 1076. 2006-04-18 23:40:47 +00:00
perseant
e52cd940c0 Get rid of the LFS_FORCE_WRITE case. We never really used it, and it could
panic the kernel if cleaner daemon passed the right combination of arguments.
Coverity CID 2741.
2006-04-18 22:42:33 +00:00
perseant
f58c67b02f Yet another MP locking issue. 2006-04-18 21:41:20 +00:00
christos
53ae068fc6 Coverity CID 746: Remove dead code. lbn >= NDADDR is mutually exclusive to
snapshot_locked == 0.
2006-04-18 21:39:03 +00:00
jld
88064d75f5 Raise time limit on sanity-check warning printf to 10s (from 10 ticks),
to avoid false postives on Xen 3, which doesn't update the shared time
info as often.
2006-04-18 21:19:01 +00:00
hubertf
0161f34fc6 Bump for today's timeout change in ftpio.c 2006-04-18 20:40:48 +00:00
rjs
7f1dae0a6f Add PCKBCNOTEST option. 2006-04-18 20:06:38 +00:00
rpaulo
994567415c Fix another typo... I must be on drugs... 2006-04-18 19:30:49 +00:00
jmcneill
a46cb959f0 Protect audio_write's filter graph from being modified in the middle of a
write. Fixes the 'audioctl of death' problem (PR#32563).
2006-04-18 19:15:27 +00:00
peter
d0cb07c7ca Back out my rev 1.14, the printf is actually quite useful and
all other arm code show this information too.
And while here, prettify the output a bit.
2006-04-18 17:50:25 +00:00
xtraeme
b663f8d6ee options<space><tab>FOO 2006-04-18 17:03:18 +00:00
rittera
be97fc5a95 A number of minor changes for NDIS. (OK'd by phil)
1. Removed the makeoptions line from arch/i386/conf/GENERIC.  Now
ndis_driver_data.h is simply copied into the kernel build directory instead
of editing the config file to specify its location.

2. Uncommented lines in files.i386 and files.pci related to NDIS.  NDIS will
not be compiled into the kernel unless the two lines are uncommented from
GENERIC (I checked using nm), so there is no reason for this to be commented
out.

3. Added ndiscvt to usr.sbin/Makefile.
2006-04-18 16:49:19 +00:00
christos
1736325575 PR/33828: Pawel Chwalowski: Add support for Broadcom BCM5789 chip 2006-04-18 14:53:43 +00:00
christos
da09d1a838 PR/33281: Martin J. Laubach: Prevent core-dump on "echo abc | { }". bash
prints and error and ksh prints nothing. We go the ksh way.
2006-04-18 14:44:05 +00:00
hubertf
19ef9ca981 unpackURL():
Make timeout mechanism's granularity always per-file (inside package)
instead of per-package (if not -v) or per-file (inside package, if -v).
2006-04-18 13:11:05 +00:00
pavel
dc9694f7fa VLAN tags were sent byte-swapped by the gsip driver, because the driver
forgets to convert them from the host to the network byte order. Use
bswap16 to convert them. (Not htons, because on a big-endian machine, they
are in the correct byte order initially, but then, they are byte-swapped
by a htole32 call when written to the transmit descriptor. So
byte-swapping is needed in this case too, to compensate for this htole32
call.)

For a similar reason, tags were seen byte-swapped when received on a
big-endian machine. Replace ntohs by bswap16 in the input path too.
(Again, it is needed to compensate for a le32toh call when the receive
descriptor is read.)

Fixes PR 32644.

Tested on 3.0/i386, 3.0/sgimips and current/alpha.

OK by martin@.
2006-04-18 13:07:03 +00:00
rpaulo
2f81fede5b Use strlcpy instead of strncpy and sizeof. Requested by Luke. 2006-04-18 12:49:02 +00:00
darrenr
0df9b5fe68 ipf -Z returns junk and/or can cause a panic (seen on solaris.) 2006-04-18 12:40:49 +00:00
tsutsui
e2f83bd318 Check more invalid devices in pci_conf_hook(9). 2006-04-18 12:26:45 +00:00
simonb
1525687690 Copy sysconf(_SC_SEMAPHORES) test from regress/lib/librt/sem/sem.c
so we abort a bit more gracefully if semaphores aren't configured
in the kernel.
2006-04-18 12:21:05 +00:00
salo
ce4da208d9 Note init(8) multi-user chroot() support. 2006-04-18 11:45:42 +00:00
salo
b0b7590bc7 Add support for running multi-user in a chroot() environment.
How it works:

- after successful execution of /etc/rc, check the value of "init.root"
  sysctl node, if it's different than "/", chroot() into its value and run
  /etc/rc inside the chroot(),

- in single-user, return back to the original / file system.

Allows running with / file system on e.g., cgd(4), vnd(4) or ccd(4) volumes.

Idea first discussed with Matt Thomas, implemented by Jachym Holecek <freza
(at) liberouter.org> with some nitpicks by me.  Successfully used by me for
almost a year with / on a cgd(4) volume (for more information about the setup
check ftp://ftp.NetBSD.org/pub/NetBSD/misc/salo/init-chroot/ ).
2006-04-18 11:40:26 +00:00
yamt
c8d2679980 from Christian Ehrhardt:
* uvm_loanzero may call uvm_analloc which will return with anon->an_lock
  locked. This lock is never dropped by uvm_loanzero and AFAICS the caller
  doesn't drop it either.
2006-04-18 09:56:16 +00:00
yamt
51ab7131e8 from Christian Ehrhardt:
* physio: The first call to ltsleep should apparently use o &obp->b_interlock
  instead of bp->b_interlock (bp is probably NULL here).
2006-04-18 09:54:32 +00:00
salo
11124f2a30 Add setttyentpath() information to RETURN VALUES and HISTORY, too. 2006-04-18 09:38:12 +00:00
simonb
247e7a1d03 Don't install an empty <machine/mtpr.h> that seems to be an artifact of
when this port was created and has long since been removed from the i386
port.
2006-04-18 06:59:39 +00:00
agc
339a11eb23 Bump version to 20060417 for the Mac OS X build fixes (thanks, Jason) 2006-04-18 06:52:59 +00:00
martin
5e7dd1ed9a Invert carrier detect sense, from Jonathan A. Kollasch 2006-04-18 00:09:37 +00:00
salo
b0536303e9 Add setttyentpath() manual page and bump libc minor. 2006-04-17 23:31:24 +00:00
salo
2118fde310 Add setttyentpath(), functionally equivalent to setttyent() but takes an
additional argument to read the ttys information from an alternate path
istead of _PATH_TTYS.

Required for upcoming init(8) changes.

Mostly from <apb>.

Bump libc minor.
2006-04-17 23:29:21 +00:00
christos
bc05fcd7ed Cleanup qmqgr remnants (Hisashi T Fujinaka) 2006-04-17 22:09:39 +00:00
christos
45af66f763 Make sure we clear cpi_name; reported by Aymeric Vincent. 2006-04-17 22:05:23 +00:00
macallan
eabac42c58 add some missing files 2006-04-17 21:07:38 +00:00
rpaulo
6f2308417e Remove SIOCKILLFW. 2006-04-17 20:57:24 +00:00
rpaulo
43c3d200d1 Remove -k. Should no longer be needed. 2006-04-17 20:55:28 +00:00
pooka
37c14369ab Define the dcache size so that we can run our own homegrown cache
flush routine during startup.  XXX: I have absolutely no idea where
this managed to pick up DCACHE_SIZE from before.

closes port-evbarm/33276 by Peter Postma
2006-04-17 20:44:30 +00:00
perseant
0268059112 Introduce two fcntl calls that freeze the filesystem right at the point
where segment 0 is being considered for writing.  This allows for automated
checkpoint vailidity scanning, and could be used (in conjunction with the
existing LFCNREWIND) for e.g. snapshot dumps as well.

Include a regression test that does such scanning.

When writing the Ifile, loop through the dirty block list three times to
make sure that the checkpoint is always consistent (the first and second
times the Ifile blocks can cross a segment boundary; not so the third time
unless the segments are very small).  Discovered by using the aforementioned
regression test.
2006-04-17 20:02:34 +00:00
christos
2aa11212e6 Remove qmqpd again. perry will fix postfix set-permissions 2006-04-17 19:18:59 +00:00
christos
22b7f8f567 Perry says we don't want qmqpd and that he'll be responsible for fixing
postfix set-permissions.
2006-04-17 19:07:45 +00:00
rpaulo
3f57889bb2 Oops, 16 is not enough to store the firmware filenames, use 24. 2006-04-17 19:06:51 +00:00