Commit Graph

5618 Commits

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