Commit Graph

5838 Commits

Author SHA1 Message Date
jakllsch
44a52e4ad8 change lines containing only whitespace to empty lines,
remove trailing whitespace
2011-10-24 15:56:17 +00:00
christos
2360984d25 add printflike and fix the format error. 2011-10-23 23:41:56 +00:00
agc
75a17f3ce7 Start to move the in-kernel iSCSI initiator, kindly contributed to the
NetBSD Foundation by Wasabi Systems, from

	othersrc/external/bsd/iscsi/{iscsictl,iscsid}

to

	src/sbin/{iscsictl,iscsid}
2011-10-23 21:11:23 +00:00
dyoung
91e31ba9fe Don't print the silly header, "Properties for device `xxx0':", before
the device properties if the -n option was given.
2011-10-19 22:13:46 +00:00
christos
f42bf26590 PR/45456: Tetsuya Isaki: Don't mix stdio and write. 2011-10-12 16:45:37 +00:00
christos
daed4f8c46 fix the date. 2011-10-12 16:41:47 +00:00
martin
dfa74ee736 Two small fixes from David H. Gutteridge in PR bin/45454. 2011-10-12 10:33:14 +00:00
joerg
f843de8680 Simplify. 2011-10-07 09:56:15 +00:00
dholland
adcc6f36b6 Fix thinko about halt vs. poweroff; from Moritz Wilhelmy in PR 45141. 2011-10-04 07:25:34 +00:00
pgoyette
0b5ef36c08 Fix typo 2011-10-01 02:55:00 +00:00
mrg
1ca3e5d8c0 print the serial number as an unsigned number. 2011-09-28 10:29:41 +00:00
wiz
82c488769a Minimally document gpt recover. Bump date. 2011-09-19 10:40:35 +00:00
plunky
2b8aaed8cd NULL does not need a cast, here 2011-09-16 16:13:16 +00:00
joerg
bd80b77cd9 Use __dead. Save a pointer. 2011-09-16 15:42:56 +00:00
wiz
369bd71deb Consistently spell MS-DOS with a hyphen. From Snader_LB. 2011-09-15 09:44:59 +00:00
christos
42d1e41665 print the missing flag if missing argument... 2011-09-13 19:55:28 +00:00
wiz
c94449f6a8 Fix typo. 2011-09-13 08:54:11 +00:00
christos
8b1d441333 document that dumpdir is now optional 2011-09-12 21:22:27 +00:00
christos
7249eb3f75 - always print corrupted dump messages instead of silently failing
- don't require /var/crash to be specified, default to it
- determine and print the kernel name
- print all messages to syslog
2011-09-12 21:22:07 +00:00
christos
bdfab20ffb print summary stats. 2011-09-11 17:18:52 +00:00
wiz
72a60d8cd5 Another option order fix. 2011-09-10 20:47:33 +00:00
wiz
51f435b8eb Sort options and descriptions in standard order.
Remove unecessary Bk/Ek in SYNOPSIS.
2011-09-10 20:46:43 +00:00
christos
e8ad09e0b7 PR/45257: Instead of passing a 32bit sec and 32 bit usec timestamp in little
endian format by default, pass a struct timespec in native host format. Add
-C flag to produce a compatible timestamp like before.
2011-09-10 20:04:28 +00:00
riz
b146b6f7a7 Build and install the skeleton manpage for devpubd - it's better than
nothing.
2011-09-06 21:30:12 +00:00
christos
9bf741a041 put back the byte swapping code, and remove the double byte swapping. 2011-08-31 22:27:26 +00:00
riz
e14f406cd9 Remove erroneous seq=ntohs(seq) introduced in rev. 1.74, which caused
icmp_seq numbers to increment by 256 instead of 1 on LE platforms.
2011-08-31 22:05:57 +00:00
bouyer
a47e2eb758 Add getlabelusesmbr(), as proposed in
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html
This is used by disk tools such as disklabel(8) to dynamically decide is
the undelyling platform uses a disklabel-in-mbr-partition or not
(instead of using a compile-time list of ports).
getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the
machdep #define LABELUSESMBR.
For evbmips, make LABELUSESMBR 1 if the platform uses pmon
as bootloader, and 0 (the previous value) otherwise.
2011-08-30 12:39:49 +00:00
bouyer
d8593e7a9a PR bin/45299: print FBMASK not FFMASK when lfs_fbmask is incorrect. 2011-08-29 18:43:20 +00:00
joerg
baa8e84b6f Use __dead 2011-08-29 14:34:58 +00:00
joerg
693655118a static + __dead 2011-08-29 14:29:21 +00:00
wiz
5febc69036 Add minimal devpubd man page, not hooked into the build yet.
XXX: someone should write drvctl(4)
2011-08-29 14:21:50 +00:00
jruoho
7fc7b88321 Remove a comma. From "Snader_LB" on freenode. 2011-08-29 11:47:46 +00:00
mrg
f385d8f556 add the device publish daemon, written by jmcneill@.
listens on drvctl for new devices and invokes MAKEDEV for them.

missing:
  - manual page
  - rc.d script
  - more testing

but it works well enough to make new disk nodes appear in /dev when
netbsd sees them and they're missing.  you will need to make sure
you have a new /dev/MAKEDEV for this to work properly (postinstall
should handle this normally, of course.)


thanks jared!
2011-08-29 11:38:48 +00:00
wiz
f91d202feb Move a sentence to where it makes more sense. 2011-08-28 21:25:11 +00:00
wiz
6964284f70 New sentence, new line. 2011-08-28 17:15:16 +00:00
gson
d2c5449570 fix the sparc build 2011-08-28 15:46:26 +00:00
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