Commit Graph

5602 Commits

Author SHA1 Message Date
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