christos
694c2250cf
make it compile with SMALLPROG
2011-08-28 10:13:03 +00:00
mbalmer
eba5829387
Remove duplicate static.
2011-08-28 08:43:02 +00:00
christos
4d53e32690
one static is enough, otherwise you risk zapping yourself.
2011-08-27 20:49:03 +00:00
joerg
e837071dcc
Mark yyerror as static and dead.
2011-08-27 19:01:34 +00:00
joerg
b79356001b
static + __dead
2011-08-27 18:57:50 +00:00
joerg
8d4273fcb4
__dead + kill main prototype.
2011-08-27 18:55:58 +00:00
joerg
bab034bac4
static + __dead
2011-08-27 18:55:21 +00:00
joerg
8bdebf9d52
statc + __dead
2011-08-27 18:54:39 +00:00
joerg
fdbae3b9b7
static + const + __dead
2011-08-27 18:48:59 +00:00
joerg
eccb2789c7
static + __dead
2011-08-27 18:44:44 +00:00
joerg
3fedada239
static + __dead + G/C pathmtu
2011-08-27 18:43:24 +00:00
joerg
c6d7b0bb59
static + __dead
2011-08-27 18:37:41 +00:00
joerg
c0a388c8b2
Be more static.
2011-08-27 17:45:30 +00:00
joerg
d2ac3967fe
Be more static
2011-08-27 17:43:42 +00:00
joerg
a4b65553ae
Use __dead
2011-08-27 17:38:16 +00:00
joerg
8e00898905
static + __dead
2011-08-27 17:36:05 +00:00
joerg
6923d07c1a
Use __dead and __printflike.
2011-08-27 17:34:44 +00:00
joerg
9c28fb5747
staticfy. __dead.
2011-08-27 17:16:01 +00:00
joerg
9f300e34f1
static. dead.
2011-08-27 17:07:28 +00:00
joerg
22db016bc9
Mark usage as static and dead.
2011-08-27 16:43:07 +00:00
christos
17187885c3
PR/45301: Julian Fagir: make clear that the unit is sectors and fix a typo.
...
While there, use errx, and sizeof(*var) instead of sizeof(type)
2011-08-27 16:34:57 +00:00
joerg
307d355803
staticfy. __dead.
2011-08-27 16:34:38 +00:00
joerg
fbefc91819
static. __dead.
2011-08-27 16:29:51 +00:00
joerg
1a61ef5ea6
staticfy. Use __dead.
2011-08-27 16:12:54 +00:00
joerg
1cd05199a0
staticfy. Use __nodead
2011-08-27 16:10:51 +00:00
joerg
0927b2bcb2
staticfy. Use __dead.
2011-08-27 16:05:27 +00:00
joerg
dbf6e7953c
Avoid magic manipulation of the format string.
2011-08-25 16:17:58 +00:00
joerg
cf30c8e1b5
main.c uses non-literal format strings.
2011-08-25 16:12:37 +00:00
christos
a14203e91d
Instead of using strncat and re-scanning the strings all the time, use and
...
append printf function.
2011-08-24 12:15:44 +00:00
christos
7b373c7105
handle the first loop where time == 0.
2011-08-21 06:39:09 +00:00
christos
6ffa97db52
we need difftime to return a signed result, so clamp the timeval's to
...
uint32_t but then, return a signed result of their difference.
2011-08-20 14:38:09 +00:00
christos
3ca3bc9b9b
PR/45257: Ryo Shimizu: ping(8) prints bogus round-trip times after Year 2038
...
Clamp all time computations to 32 bits; idea from dsl@
2011-08-19 08:35:40 +00:00
phx
233e75c9c0
Define USE_MBR for ofppc.
2011-08-18 08:42:07 +00:00
martin
9a8267aad8
Fix sign compare bugs
2011-08-17 12:27:50 +00:00
jakllsch
fdc9473539
Ajdust bootcode file name from mbr_gpt to gptmbr.bin.
2011-08-17 00:45:55 +00:00
jakllsch
f43df25dd7
Switch 'gpt biosboot' to support T13 EDD-4 annex A GPT hybrid MBR instead
...
of a home-grown MBR/VBR hand off protocol.
'biosboot' now will set the legacy BIOS boot flag instead of patching a
GUID into the MBR.
2011-08-17 00:04:41 +00:00
dholland
64b8763551
Fix another dodgy switch-jump.
2011-08-15 02:22:46 +00:00
dholland
7a8d9bb430
WARNS = 4
2011-08-15 02:19:50 +00:00
dholland
66ed9af4d1
Add missing __RCSID().
2011-08-15 00:30:25 +00:00
dholland
fc91a8d8ae
Whitespace.
2011-08-15 00:27:50 +00:00
dholland
2bf41d920c
Avoid switch-jumping into the middle of an if. Compiler output is unchanged.
2011-08-15 00:26:16 +00:00
dholland
46eb69af0a
Minor KNF.
2011-08-15 00:24:19 +00:00
dholland
a73186c2e6
Remove redundant WARNS=4
2011-08-15 00:16:58 +00:00
christos
8712189410
kill gcc45 warnings
2011-08-14 12:36:02 +00:00
christos
64aae439ac
WARNS=4
2011-08-14 12:32:01 +00:00
christos
cf237a73b8
remove gcc-4.5 hacks.
2011-08-14 12:30:04 +00:00
christos
f5bc231029
use memcpy to avoid strict aliasing warnings
2011-08-14 12:15:15 +00:00
christos
6e76d2b876
use a union to eliminate strict alias warnings.
2011-08-14 12:13:24 +00:00
christos
82f7376491
fix gcc warnings and eliminate duplicate code.
2011-08-14 12:09:35 +00:00
christos
7d4b82edad
document non-literal strings
2011-08-14 11:34:11 +00:00
mbalmer
c52f77ae96
Xr pwdog(4).
2011-08-11 08:00:05 +00:00
wiz
4f1a87cdfa
Sync usage with man page.
2011-08-10 12:13:20 +00:00
uch
7d18226237
newfs_v7fs(8)'s -v and -P options are obsolete. changed to newfs(8) compatible -V option.
2011-08-10 11:31:49 +00:00
joerg
90aa08ed31
Don't use array access to compute addresses that are definitely beyond
...
the static array boundaries.
2011-08-09 12:55:18 +00:00
uch
e97cfbb012
Fix warning message.
2011-08-09 11:18:28 +00:00
uch
49e9e92f1d
Check whether superblock is writable sector.
2011-08-09 09:12:07 +00:00
jmcneill
f398b121d3
add the -t option that modifies -l behaviour to recursively scan for
...
child devices and print them in tree format:
$ drvctl -lt usb0
uhub0
uhub6
uhidev0
ukbd0
wskbd1
uhidev1
ums0
wsmouse1
uhid0
ubt0
2011-08-07 13:00:35 +00:00
jmcneill
3b8212e891
add an optional argument to the -p flag that lets you extract specific
...
property values from the command-line:
$ drvctl -p wd0 disk-info/geometry/cylinders-per-unit
620181
$ drvctl -p wd0 device-driver device-unit
wd
0
$ drvctl -p wd0 nonexistent || echo "not found"
not found
2011-08-07 12:00:11 +00:00
dholland
4804dbd307
Add wrapper functions around hash algorithm operations to avoid
...
undefined behavior arising from illegal function casts. As a side
effect, no longer need -Wno-pointer-sign either.
2011-08-06 20:46:42 +00:00
dholland
51080e041d
Simplify silly code and make it closer to type-safe. This causes amd64
...
gcc to reorder two pairs of instructions for some reason but the object
files are otherwise unchanged.
2011-08-06 17:01:06 +00:00
dholland
5750ccf174
No longer any need for -Wno-pointer-sign here.
2011-08-06 16:48:57 +00:00
dholland
36f9677de9
Avoid -Wno-pointer-sign.
2011-08-06 16:42:41 +00:00
dholland
2fb6ddee8c
Add static to a private function.
2011-08-06 16:39:40 +00:00
dholland
f8a6ea099c
Use explicit cast instead of -Wno-pointer-sign. The site in question is
...
already marked XXX so there's not much point in whitewashing it.
2011-08-06 16:34:40 +00:00
wiz
661fd131c6
Quote path separator character.
2011-08-06 08:43:28 +00:00
mbalmer
d1912e7839
Do not not look for modules in the current working directory first. This is
...
to prevent from accidentally loading ./module.kmod when we actually wanted to
load module from the system module area.
To load a module from a filesystem path, the module name must contain at
least on path separator character (/), to load a module from the system
module areas, the name must not contain a path separator character:
modload ./mymod.kmod # loads mymod.kmod from the curren directory
modload mymod # loads mymod.kmod from the system module area
2011-08-06 08:11:09 +00:00
christos
94a8b1353c
no -A or -a with -q
2011-08-03 01:58:30 +00:00
christos
daf90d3763
allow -q flag to work for reads.
2011-08-03 01:47:40 +00:00
mbalmer
3bc190836a
Accept both 'modstat -n name' as well as 'modstat name' to display information
...
about a single module.
2011-08-02 16:46:45 +00:00
wiz
1bd615d150
New sentence, new line.
2011-08-02 10:28:00 +00:00
wiz
e74a53f0f9
Sort sections. Remove comma in enumeration of two items.
2011-08-02 10:21:12 +00:00
buhrow
3dd51f1b7e
Document the need for zeroing out the first 64 blocks of a replacement
...
component in a failed RAID set in order to avoid potentially configuring
RAId 1 sets with erroneous values taken from random extent data in the
replacement component partitions.
2011-07-28 18:25:22 +00:00
christos
e0f66530c3
mention that we don't handle more than 2TB disks/partitions.
2011-07-25 16:31:05 +00:00
dholland
1cb7b735a0
Improve previous; thanks to tsutsui-san for reminding me of the proper
...
reference. PR 45166
2011-07-22 15:53:21 +00:00
dholland
fb83b6fe13
Clarify UFS2 superblock format stuff. Bump date.
2011-07-22 15:47:46 +00:00
uch
5c1ba4adfa
Fixed the problem that partition size over 8GiB(v7fs filesystem limit) failed newfs.
2011-07-22 09:15:10 +00:00
tron
64edb24382
Use howmany() macro as it is used in a lot fo places in this tool anyway
...
as suggested by Tsugutomo Enami.
2011-07-19 19:57:54 +00:00
joerg
29d01baadc
Allow cross-compiling from Linux
2011-07-19 18:29:41 +00:00
tron
4cafa08a7d
Don't use roundup2(9) (which should have been howmany(9) anyway) to
...
fix builds on platforms other than NetBSD.
2011-07-18 22:50:28 +00:00
apb
f1ca1ce2bf
In sources that get compiled into the tools version of makefs, add:
...
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
This should fix cross-build problems, but I can't really test
that now, so I am not re-enabling the inclusion of v7fs support
in makefs.
2011-07-18 21:51:49 +00:00
dholland
99f3bafa7f
prune stray commas
2011-07-17 23:46:53 +00:00
uch
8ef6a31f0e
fix freeblock counting
2011-07-17 12:47:38 +00:00
dholland
9474f05d3b
Don't need to initialize (one of) the elements now in i_crap; nothing in
...
here touches that material.
2011-07-12 02:46:03 +00:00
uch
a2917fcf47
fix freeblock count bug.
2011-07-10 12:14:01 +00:00
mrg
4cd6566dd0
switch from an ugly cast and ntohl() usage to be32dec(). use sizeof.
...
idea from dh, and fixes a GCC 4.5 warning.
2011-07-06 09:02:54 +00:00
dholland
a1d28c6e00
fix typo
2011-07-03 19:05:10 +00:00
mrg
db6886e029
apply some -O0 with gcc 4.5 and vax.
2011-07-03 15:29:34 +00:00
wiz
3fa42aac82
Whitespace nit.
2011-07-03 09:15:20 +00:00
kefren
008758606b
Mention -mpls and -tag and xref mpls(4)
...
bin/45071
2011-07-03 07:20:37 +00:00
joerg
017dd250ef
Fix memset usage.
2011-07-01 02:46:24 +00:00
mrg
b7e452c793
remove HAVE_GCC == 4 conditional
2011-07-01 01:26:15 +00:00
wiz
e0f576648b
Various improvements.
2011-06-27 13:50:31 +00:00
uch
9255b46fb4
7th Edition(V7) File System support. and NetBSD symbolic-link, socket, FIFO extension. see newfs_v7fs(8).
2011-06-27 11:52:22 +00:00
mrg
d993dd3b69
when checking for SKSV data, use the same test as before. fixes an
...
always true conditional GCC 4.5 found, and is also a real bug fix.
2011-06-22 05:18:03 +00:00
kefren
2715676450
don't compile tag functions if SMALL is defined. Should fix the build
2011-06-22 04:57:28 +00:00
mrg
c111245a78
apply some -Wno-error and/or -fno-strict-aliasing.
...
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
kefren
0c463ade62
Alloc dynamically sockunions in sou.
...
Teach route(8) about multiple tags. E.G.: -tag 100,20,33
XXX: needs documentation
2011-06-21 14:33:14 +00:00
mrg
2c77b0841d
avoid code that looks like this:
...
x = x = y;
since GCC 4.5 complains about it having sequence point issues.
2011-06-21 09:36:46 +00:00
mrg
75e42fa7da
remove most of the remaining HAVE_GCC tests that are always true in
...
the modern world.
2011-06-20 07:43:56 +00:00
wiz
6da344d4e1
New sentence, new line; fix wording; bump date.
2011-06-17 18:13:14 +00:00
manu
448e1c49b2
Add mount -o extattr option to enable extended attributs (corrently only
...
for UFS1).
Remove kernel option for EA backing store autocreation and do it by
default. Add a sysctl so that autocreated attriutr size can be modified.
2011-06-17 14:23:50 +00:00
yamt
26f4e9f9b1
xref link_addr for -link.
2011-06-16 23:35:35 +00:00
christos
453164da22
fix compilation.
2011-06-09 21:23:29 +00:00
christos
23ffdf5bd3
share more code.
2011-06-09 19:57:50 +00:00
bouyer
a3a7248ce7
Fix bad cut'n'paste in copyright. Pointed out by dyoung@
2011-06-07 14:56:12 +00:00
pgoyette
5647caf8d0
Keep printf() happy - cast the max name length to type int
2011-06-03 16:35:35 +00:00
nonaka
66224643cd
fix output format for long module name.
2011-06-03 15:34:46 +00:00
jruoho
dd4ef98f2e
Clarify placement of commas. From Snader_LB on freenode/#netbsd-code.
2011-06-01 09:46:48 +00:00
riastradh
63cdfaffb6
Fix typo: `symbolically' takes three l's, not two.
2011-05-31 16:17:30 +00:00
joerg
a216da57a6
Default to -Wno-sign-compare -Wno-pointer-sign for clang.
...
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
reinoud
43e731a9af
Fix accidental use of logical && instead of binary & in rare case.
...
Bug noticed by Joerg and clang :)
2011-05-26 07:59:08 +00:00
joerg
8c28cc4858
Simplify
2011-05-25 15:34:19 +00:00
joerg
77103d874a
input is unused
2011-05-24 12:07:14 +00:00
joerg
14d428746e
input is unused.
2011-05-24 12:06:25 +00:00
joerg
39a0f733b0
Decide on printing an int as int and not as short.
2011-05-24 12:04:18 +00:00
joerg
52b2e3b827
Use bitwise operators, logical and with a constant doesn't make sense
2011-05-24 12:03:04 +00:00
joerg
b1162954df
Don't use address strings as format string.
2011-05-24 11:38:56 +00:00
riastradh
d9e31e357d
Make `mount_ptyfs -c' actually work.
...
The ALTF_* are bit masks, not indices, so use 4, not 3, for the one
after 2. Use 0x on all the values to emphasize this.
ok rmind
2011-05-21 20:05:02 +00:00
dholland
aae84c3a7c
Improve documentation of FFS formats and format levels from PR 32100.
...
Prompted also by recent discussion on tech-kern. Bump date.
2011-05-14 19:46:10 +00:00
pgoyette
821775e983
Fix parsing of -A option so that the [/ptn_0_offset] part is optional, as
...
described in the man page.
2011-05-08 14:22:16 +00:00
wiz
36fa577686
Re-add -q description that got lost when -x was added.
...
Sort descriptions.
Bump date.
2011-04-29 10:34:52 +00:00
wiz
1f03b58936
Sort options and option descriptions. Fix a typo. New sentence, new line.
2011-04-28 17:17:51 +00:00
wiz
b882daa546
New sentence, new line. Sort sections.
2011-04-28 12:16:10 +00:00
wiz
ed5cd81dad
Mark up file as argument.
2011-04-28 12:01:58 +00:00
wiz
85e4f3c354
security(7), not (8).
2011-04-28 11:23:57 +00:00
wiz
a26db019aa
Use Nx.
2011-04-25 22:23:47 +00:00
wiz
1319ff4810
Add serial comma.
2011-04-25 22:09:29 +00:00
christos
00740dd48f
PR/44864: Paul Ripke: Compile regular expressions on demand and only once.
2011-04-16 01:15:54 +00:00
joerg
f9bbef6fd3
Extend CPPFLAGS, don't replace it
2011-04-10 16:47:04 +00:00
jym
8049d1e8e5
Document biosboot. Xref boot(8) and installboot(8).
2011-03-27 01:01:07 +00:00
bouyer
875bb8e6c3
initialise memory allocated for uquot_user_hash & uquot_group_hash.
...
Pointed out by Nicolas Joly.
2011-03-20 11:41:24 +00:00
wiz
8daed3c318
Add missing comma.
2011-03-19 08:41:19 +00:00
jruoho
5c4331b81a
Xref x86/ichlpcib(4) instead of ichlpcib(4).
2011-03-18 21:22:04 +00:00
pooka
3e81f0bf9e
Make get/setuid prog ops (so that i can do rump.ping -f regardless
...
of host privs).
2011-03-11 09:59:56 +00:00
wiz
492cea3a3d
Fix punctuation markup; new sentence, new line.
2011-03-06 17:21:08 +00:00
wiz
d2eb4c303d
New sentence, new line.
2011-03-06 17:20:28 +00:00
bouyer
063f96f3c2
merge the bouyer-quota2 branch. This adds a new on-disk format
...
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.
See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
pooka
d69295fda4
Set errno to 0 before strtoll() so that it can reliably be tested
...
afterwards. Fixes newfs_msdos at least on sparc. Incidentally,
the msdosfs tests also start working on sparc, which about halves
the number of test failures on that platform.
2011-03-05 13:47:43 +00:00
hannken
05e91bfee8
fss(4): Allow FSSIOCSET to set the initial flags. Add a new flag
...
"FSS_UNLINK_ON_CREATE" to unlink the backing store before
the snapshot gets created.
With this change dump(8) no longer dumps the zero-sized, but named
snapshot it is working on. Same applies to fsck_ffs(8).
2011-02-24 09:38:57 +00:00
njoly
eeec3853c8
Small typo in macro (Ii -> It).
2011-02-21 17:05:50 +00:00
christos
6df320733c
undo part of the previous patch, which I suspect is bad.
2011-02-20 21:42:50 +00:00
enami
ec02ea412c
Define accessors for number of blocks and partition size in the
...
component label and use them where appropriate. Disscussed on tech-kern.
2011-02-19 07:11:09 +00:00
pooka
0120167d51
"when in doubt, let the kernel decide"
2011-02-17 16:57:46 +00:00
wiz
adc40ee487
Add -b and -vxz to usage.
2011-02-16 19:33:48 +00:00
wiz
2d50779420
Add -vxz to SYNOPSIS. Sort.
2011-02-16 19:33:39 +00:00
wiz
32cebeb729
Add -vxz to SYNOPSIS and usage.
2011-02-16 19:32:26 +00:00
dyoung
00ef49e965
Add flags -v, -x, and -z for verbose, debug, and silent shutdowns,
...
respectively, by passing flags AB_VERBOSE, AB_DEBUG, and/or AB_SILENT to
reboot(2).
2011-02-16 17:53:31 +00:00
dholland
df520b1013
Disable COMPAT_386BSD_MBRPART. The code is still here if anyone needs it
...
for some reason. (But I have no idea why that would be -- if you have one
of these really ancient partitions and you're about to run disklabel, you
can easily run fdisk first and change the partition type to NetBSD.)
As it stands, the code will munch FreeBSD installs under some
circumstances, which is really not acceptable behavior.
The code, along with the kernel support that's been disabled by
default for several years, and some related but less dangerous code in
sysinst, should prboably be removed entirely after -6 is branched.
Discussed on tech-kern and tech-userlevel; closes PR 44496.
This is also almost certainly the cause of PR 42521 and PR 38841.
2011-02-12 22:23:01 +00:00
pooka
a804f47907
Exterminate a bug I created in 2009.
2011-02-09 11:22:49 +00:00
schnoebe
431ec7cce7
List all the aliases supported for GPT partition types.
2011-02-09 05:11:15 +00:00
pgoyette
4f8abcabc1
Use PRIu64 to fix build on amd64 (and presumably other 64-bit ports)
2011-02-08 13:58:54 +00:00
wiz
b3b821c790
Fix typos.
2011-02-08 09:51:55 +00:00
wiz
49efa429e3
Improve a bit.
2011-02-08 09:49:07 +00:00
haad
83425a0f36
Initial import of libdm and dmctl to tree. libdm library can be used
...
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like
dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer
With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.
With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.
Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@
2011-02-08 03:20:13 +00:00
christos
b805ecec3f
PR/44529: Martin Danielsson: fsck_msdos crashes when verifying corrupt file
...
system. Avoid using the long name index when it is 0. Refactor the code to
avoid duplication.
2011-02-07 17:36:42 +00:00
pooka
b915a641c8
update macro names to match new ones
...
(i don't know why they changed, just fixing the build)
2011-02-06 21:38:09 +00:00
njoly
0913e1dac9
Do Skip device checks, which ends up parsing fstab, when working on a
...
filesystem image with -F option set.
2011-02-06 12:02:59 +00:00
martin
82fe9809af
Use RT_ROUNDUP() and friends from sys/route.h instead of homegrown
...
variants.
2011-02-04 14:31:23 +00:00
matt
4d5d6d9aa5
Add a new AF/PF_ROUTE which is 64-bit clean which makes the routing socket
...
interface (and its associated sysctls) act identically for both 32 and 64 bit
programs. The old unclean one remains for backward compatibility.
2011-02-01 01:39:19 +00:00
reinoud
f6164dfe20
When requesting to disable metadata partitions, also disable low formatting.
...
When no meta and not low formatting we can lower the required UDF version.
2011-01-21 22:32:13 +00:00
reinoud
e08c1f2c44
Fix typo in comment
2011-01-21 22:10:51 +00:00
nisimura
ba19dd6c6f
fix mislabelled S.M.A.R.T. lifetime temperature record reading.
2011-01-19 07:55:12 +00:00
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