Commit Graph

195538 Commits

Author SHA1 Message Date
riz 8966eced0b If we're operating on a plain file instead of a device, ftruncate() it
to ensure it's been properly extended.  Clears up some problems at certain
blocksizes which showed up during creation of atf tests, which is done
using file-backed file systems.
2010-12-08 00:25:54 +00:00
pgoyette 9179849b5d When removing properties (as in envstat -S), clear the flags that track
whether the properties actually exist.

When setting new limit values, don't complain/ignore about duplicate
values if the associated flag bits (indicating that the limit is valid)
are not set.

These two fixes together should fix a problem reported in private Email
by njoly@ a couple months ago.  Issue replicated and solution tested
using my recent swsensor pseudo-device running inside qemu world!
2010-12-08 00:09:14 +00:00
riz 0b1ff958b5 As currently written, writeat() expects disk blocks, not fs blocks, so
when testing that the last sector of the new size is writeable, make
sure we're ACTUALLY writing in the new space, instead of possibly
overwriting something in the existing fs.

Discovered while writing tests - tests which uncovered file corruption at
certain block sizes.

XXX should rewrite writeat() to expect fs blocks instead of disk blocks.

OK mlelstv@
2010-12-07 23:29:55 +00:00
joerg 5aa0f88941 Inline string that should have been const char [] in first place. 2010-12-07 22:50:37 +00:00
joerg 75ccf94c1f Remove useless conditional. 2010-12-07 22:08:27 +00:00
joerg bd9a53cf30 Since limit and l are both unsigned, comparing to 0 doesn't work, so compare
the values directly.
2010-12-07 22:02:52 +00:00
joerg e325eedcc1 Remove tautology. 2010-12-07 22:01:45 +00:00
joerg aaf356760f Mark function as static and give it an explicit return type. 2010-12-07 22:01:22 +00:00
pooka 0ee4a4c4ad +rumpdev_drvctl 2010-12-07 21:40:08 +00:00
pooka 8d84854f4d add drvctl component 2010-12-07 21:38:07 +00:00
pooka 9b108f4af3 Support bridging. As usual, it would be nice if this could be a
separate component, but King Ifdef doesn't let us.
2010-12-07 20:39:07 +00:00
pooka 55fde99bfe _KERNEL_TOP 2010-12-07 20:38:26 +00:00
joerg cb63bb73c3 Don't use argument as direct format string. 2010-12-07 20:10:53 +00:00
joerg c37869d883 Build assembler sources with assembler compile rules. 2010-12-07 19:51:02 +00:00
pooka f03553f56f haad removed 64bit atomic ops from dm, so put it back on the MI all list 2010-12-07 17:25:40 +00:00
pooka e7ec49d29a sockin cannot be loaded the same time as rumpnet_inet because both
provide a PF_INET domain.  Guess that real inet is more useful and
don't put sockin on the "all components" list.
2010-12-07 17:23:27 +00:00
tteras 1246e1db41 Fix spacing and improve wording in some log messages. 2010-12-07 14:28:12 +00:00
drochner ee60145ccf fix bug introduced by last security patch, from upstream CVS:
Don't assume a decode error if session tlsext_ecpointformatlist is
not NULL: it can be legitimately set elsewhere.
2010-12-07 10:03:29 +00:00
drochner ad512a613f openssl security patch of the day:
Fix a flaw in the OpenSSL SSL/TLS server code where an old bug
workaround allows malicous clients to modify the stored session cache
ciphersuite. In some cases the ciphersuite can be downgraded to a weaker one
on subsequent connections. See
http://www.openssl.org/news/secadv_20101202.txt
(CVE-2010-4180)
2010-12-07 09:10:21 +00:00
enami 84d4bc7040 Fix SYNOPSIS; pkill accepts -l options since 3 years ago. `pattern' is
mandatory for all commands and `priority' is mandatory for prenice.
2010-12-07 09:00:23 +00:00
wiz 73349a6f21 Be explicit which options are available for prenice. Bump date. 2010-12-07 08:55:52 +00:00
mrg f2e8961868 add -l support to prenice, as noted by enami. 2010-12-07 07:39:15 +00:00
kiyohara 88667f4694 The failure of rebuilding is evaded.
Vga is not used in x86 and alpha for a long time.  Also PR#41626 might
influence us.
2010-12-07 05:51:45 +00:00
kiyohara 602d621e07 The failure of rebuilding is evaded.
Vga is not used in x86 and alpha for a long time. PR#41626 might influence us.
2010-12-07 05:39:53 +00:00
joerg 994bc56774 Kill file that should be pulled in from a different directory.
Fixes regression test for i386.
2010-12-07 00:54:44 +00:00
jmcneill ed7bfdfad4 Allow for passing more than one module at a time:
$ sudo modunload auvitek xc5000 wintv_eeprom
2010-12-06 23:42:48 +00:00
pgoyette 0139c9e7c5 Make this compile when "options ENVSYS_OBJECTS_DEBUG" is defined. 2010-12-06 23:26:44 +00:00
matt 4d0f1c412f Add a private now S_IS_HIDDEN(symbol) so gas deal with hidden symbols
correctly.
2010-12-06 21:17:00 +00:00
mrg 1153d206d6 install prenice(1) and man page links. 2010-12-06 21:16:53 +00:00
phx 75fc248f8a Apple notebook keyboard support in ukbd(4). 2010-12-06 18:43:47 +00:00
skrll 76d54d05f2 Wrap a printf in #ifdef DEBUG 2010-12-06 18:42:09 +00:00
phx 9efedd612c There should be no MD keymaps in /usr/share/wscons/keymaps. So I made the
PowerBook keymap MI again, after a discussion with <mrg>.
2010-12-06 18:26:28 +00:00
jmmv 42afccf436 Pull up revision c917871de7dd67ba57c17496ad68fe4e4aa8b239:
Fix atf-check match checker to validate lines without newline

Problem found by pooka@.
2010-12-06 18:04:02 +00:00
pooka 335d54d634 Adjust PR format in xfail message so that html test results gain a
link to http://gnats.netbsd.org/44189
2010-12-06 17:30:07 +00:00
pooka 7dec306c60 In the seek test also check that files end up with expected size. 2010-12-06 16:43:26 +00:00
christos bfb58157c3 adjust errno after kernel change to be EINVAL 2010-12-06 16:37:25 +00:00
christos d200ee2cb8 change E2BIG -> EINVAL, clearly "argument list too long" is the wrong message
to print.
2010-12-06 16:22:57 +00:00
pooka 49e8823e2c test for 'dd seek=' (could be improved, but at least we have something now) 2010-12-06 15:54:00 +00:00
pooka 39a175ce63 Fix most inopportune typo. from gson & jmmv. 2010-12-06 15:23:29 +00:00
pooka 248168affc Remove PUFFS_WITH_THREADS ifdef garbage, just use libc weak symbols. 2010-12-06 14:50:34 +00:00
skrll ffb88b81fd Import the binutils-2_19-branch sources as of 2010-04-02. 2010-12-06 14:24:11 +00:00
hauke e4eca41742 Sync the device names with reality; while we are here, polish a few
sentences, and mention the spif driver works on sun4u/sparc64.
2010-12-06 11:54:04 +00:00
pooka 3ac6e9a428 +tp 2010-12-06 11:32:56 +00:00
pooka 1a21107ad9 Add an xfail test for the mbuf leak described in PR kern/44196.
This is yet another example of a simple test which would be much
trickier to execute against the host kernel.  You would either need
to put networking in a complete lockdown, or do some "statistical"
methods where you trigger the bug many many times and attempt to
ascertain a rising trend in mbuf count.  And, of course, the leaked
mbufs don't go away from the host kernel once the test ends.  In
contrast, we *know* that there is no other networking activity in
a rump kernel, so we can execute the operation exactly once, plus
the leaked mbuf "disappears" when the test is done.
2010-12-06 11:32:01 +00:00
pooka 53fd187690 Allow creation with NULL busname (to be later set with SIOCSLINKSTR). 2010-12-06 10:48:18 +00:00
skrll 0281430f86 s/cannot/can't/ for consistency. 2010-12-06 10:24:04 +00:00
uebayasi 3c4c042ea9 Correct an assertion; pointed out by mrg@ and pooka@, thanks. 2010-12-06 10:22:43 +00:00
pooka 13358eb8c2 Insert word "mbuf" to description of -m (so you can search for it).
No functional change.
2010-12-06 09:28:38 +00:00
pooka 6816648ce4 use -isystem where appropriate 2010-12-06 09:12:34 +00:00
haad 08d72eb06c I have forgot to fix dm_dev_counter here, too. 2010-12-06 09:12:23 +00:00