Commit Graph

5490 Commits

Author SHA1 Message Date
jmcneill 21b4f7d5bd Xr acpiwdrt(4) 2011-01-17 16:09:48 +00:00
nisimura 819cda4abe fix a mysterious indent lossage roaming around for last couple of years. 2011-01-14 06:02:57 +00:00
haad a3f1560397 Use SYMLINKS, I'm not sure why I ahve commited old version of my patch, but
it should be ok now. Thanks to tron@ for pointing at this issue.
2011-01-13 23:44:11 +00:00
haad 6f5bb5ac37 Move chown from usr.sbin to sbin and chgrp from usr.bin to bin directories.
This was discussed and oked on tech-userlevel I have run full build release,
test anita cycle with this patch.
2011-01-13 22:28:35 +00:00
pooka 2fff573bcd In case we are union-mounting /, don't force MNT_UPDATE. This makes
the following work:

	mount -t tmpfs -o union tmpfs /

(some caveats are implied, such as if you "mkdir /usr" you're
screwed, but then again you'll get there with "rm -rf /usr" even
without union -- we supply rope)

per discussion with zafer, use case for jibbed
2011-01-13 11:57:02 +00:00
apb 63df928b37 Change printf formats to match the data type of the values being
printed.  There's now a lot of PRIu16 and PRIu32, some PRIu8, some
SCNu32, and a few cases where %u and %d were reversed.  Multiplication
of 32-bit and 8-bit values is cast to uint64_t and printed with PRIu64.

Inspired by a report from Patrick Welche on current-users.
2011-01-06 21:39:01 +00:00
christos 621e83eac4 match printf formats and types from Patrick Welche 2011-01-06 19:34:28 +00:00
riz e048211e44 Clarify the 'dkctl addwedge' usage message after creating a GPT
partition.
2011-01-06 17:51:28 +00:00
jakllsch 1f8f195455 Use less bogus CHS addresses in PMBR.
With the ending head set at 0xff one machine I have will never leave
the initial startup screen if such a disk is present.  Additionally,
Wikipedia suggests without citiation that 254 is the maximium allowable
value for the head, and this seems to be the case.
2011-01-06 17:42:10 +00:00
jakllsch 5da707b805 UFS is called FFS in the NetBSD case. Display as such and accept as input. 2011-01-06 16:30:40 +00:00
jakllsch a5fb435357 Support booting from GPT-partioned disks on PC-BIOS-compatible systems.
Much of the work in this commit was done by Mike Volokhov during GSoC 2009.
2011-01-06 01:08:48 +00:00
riz d765f2d25b Add support for byteswapped file systems (big-endian on little-endian
host, and vice versa), to fix PR#44203.

Add support for growing (but not yet shrinking) UFS2 file systems.  Partially
addresses PR#44205.

While I'm here, reformat the code for closer adherence to KNF.

Fairly extensive testing was performed, using the shortly-to-be-committed
updated ATF tests.  Patch posted to tech-userlevel on 21 December 2010,
no comments.
2011-01-05 02:18:15 +00:00
wiz a88611257c Fix fd leaks. Found by cppcheck. 2011-01-04 23:48:44 +00:00
wiz 80172dbf65 Fix fd leak. Found by cppcheck. 2011-01-04 23:46:34 +00:00
wiz 96a10eac53 Fix memory leaks. Found by cppcheck. 2011-01-04 23:42:48 +00:00
wiz c3ffe691ad Use pclose for popened handles. Found by cppcheck. 2011-01-04 23:36:23 +00:00
wiz 23f77c56dc Fix file descriptor leak. Found by cppcheck. 2011-01-04 23:31:29 +00:00
wiz a5d0318667 Use Nm. Bump date for previous. 2011-01-04 23:29:51 +00:00
spz 570cdc45bf add notes what 'device' is and also rub in that addwedge doesn't
create stuff on disk a bit more.
2011-01-04 21:42:10 +00:00
hauke 34b397c5e6 First release that shipped wdogctl(8) was 1.6, not 1.5.1. 2010-12-23 14:29:52 +00:00
riz 98ddf5ec73 Revert previous - inadvertant commit to wrong repository. 2010-12-20 00:49:23 +00:00
riz 3123e6a7e0 Pull in change from njoly@ in -current 2010-12-20 00:44:53 +00:00
njoly e7c4f98be6 Add missing .Os macro. 2010-12-19 23:22:46 +00:00
pooka db818c53ab Use RUMPPRG.
ok Greg Oster
2010-12-15 18:37:55 +00:00
wiz c93380eba7 filesystem -> file system. 2010-12-14 21:49:21 +00:00
riz a3a3268f75 Be explicit about byteswapped and ffsv2 file systems being currently
unsupported, while catching up to some changes in my local tree which
will hopefully support them at some time in the future.

Also, change "device" variable to "special", to reflect the fact
that resize_ffs will work on a plain file.
2010-12-14 20:45:22 +00:00
pooka 5f732a29cb Convert from the oldstyle cgd_kops.op_open to the newstyle prog_open
and define RUMPPRG.  Get rid of the Makefile.inc stuff, since it was
useful only for the oldstyle regime.
2010-12-14 17:46:21 +00:00
jruoho 91e230c6b8 Fix xref; module(4) -> module(7). 2010-12-14 16:23:59 +00:00
pooka 72e657672d A few weeks ago when i added "linkstr" support I didn't know that
the string parser gives a proplib object which isn't a terminated
string.  Fix that mistake now.
2010-12-14 10:51:51 +00:00
riz 16963047ea Don't special-case v1 superblocks - especially with an incorrect
calculation.
2010-12-14 04:04:20 +00:00
pooka 67a4f392d8 use crunchops for crunchables 2010-12-13 21:48:01 +00:00
pooka e73ffdda13 Add rump client support for module utilities. It should be noted
that while modstat and modunload and builtin modules work exactly
the same as in the host case, modload loads file system kernel
modules from the rump kernel namespace.  By default, archs which
have rump support for the kernel kernel ABI have the host module
directory mapped into the rump kernel namespace at the same location
(/stand/...).  Therefore, if the *host* module directory is populated,
"rump.modload foo" will work as expected.  Otherwise, RUMP_MODULEBASE
can be used to point to the module directory.
2010-12-13 20:48:44 +00:00
pooka e8de1d91d0 be a happy crunch build 2010-12-13 19:19:10 +00:00
njoly 6c19f9ea7b op_read return value is a ssize_t, not an int. 2010-12-13 19:17:20 +00:00
pooka f9740ada7f RUMP_ACTION -> RUMPPRG 2010-12-13 17:42:17 +00:00
pooka e3d9b779d8 Convert from RUMP_ACTION to RUMPPRG. 2010-12-13 17:39:47 +00:00
pooka a415ef09e9 Convert from the .ifdef RUMP_ACTION stuff to RUMPPRG. 2010-12-13 17:35:08 +00:00
jruoho 05a9f55544 Xref module(4). 2010-12-13 10:07:46 +00:00
riz d365bee0c8 Remove bogus check which is not actually testing anything useful,
and depending on file system data, can actually be a false error.

Fixes what I was actually testing for in bin/44209, though the
actual problem was not what I originally described.
2010-12-12 22:48:59 +00:00
mhitch a7e78491e5 Add support for old ffsv1 superblocks. After reading an old superblock,
copy appropriate data to where they are expected in the updated superblock.
When writing the updated superblock, move the updated values back to the
old ffsv1 superblock locations.  Also check for old superblock format when
updating the last cylinder group and adjust cg_old_ncyl appropriately.
Derived from how mksf sets them.  Should address PR bin/44209.
2010-12-12 19:53:23 +00:00
pooka a97eadf766 multicore update 2010-12-12 11:38:42 +00:00
riz 6a4bbd2cea Remove accidentally-resurrected TODO item. 2010-12-08 15:23:53 +00:00
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
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
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
pooka 39f08af21d mirror change of -lrumpcrypto ==> -lrumpkern_crypto 2010-12-05 20:13:26 +00:00
riz 3485b1dad5 Turns out, plain-file usage is already supported. *blush* 2010-12-03 05:23:34 +00:00
riz 4c7e04789a Knock one off the list. 2010-12-02 22:04:01 +00:00
riz 9f2c8ccc2b Use howmany() instead of "/" to calculate the number of cylinders for
the changed file system, so as to not drop a partial cylinder at the
end.  Fixes PR bin/44177.
2010-12-02 22:00:27 +00:00
elric 297cd81a0d Remove a line that was intended only for my personal testing and that
breaks things.
2010-12-02 18:02:58 +00:00