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