wiz
2ca1f539aa
Add backslash (minus is "\-").
2008-11-11 06:28:30 +00:00
reed
68f20c24d9
Add some details about init's role with securelevel.
...
Add references to other manual pages for more details.
2008-11-11 00:14:55 +00:00
reed
a4bfac4a14
Reference secmodel_securelevel(9) manual page.
2008-11-11 00:09:36 +00:00
joerg
3fbdfc8af9
Reduce internals of WAPBL exposed to the rest of the system.
2008-11-10 20:12:13 +00:00
apb
88ba92672f
* Instead of silently ignoring extra args, print a usage error. This
...
adddresses the silent failure reported in PR 39862 by Brian A. Seklecki
* Adjust usage message to match the synopsis in the man page.
2008-11-06 16:01:54 +00:00
apb
046bb95d46
Adjust synopsis and description to make it clear that -d devname and
...
-t devtype are mutually exclusive.
2008-11-06 15:58:16 +00:00
mrg
9b0170606d
make MKPIC=no builds work on i368, shark, vax, pmax, sgimips, sparc,
...
maybe all mips and all arm as well.
2008-10-31 20:24:51 +00:00
apb
07103d0363
Pass SED=${TOOL_SED:Q} in the environment to scripts run during the build.
2008-10-26 14:55:17 +00:00
lukem
ddd1724f86
xref rescue(8)
2008-10-21 02:32:37 +00:00
ad
dc7ae0762f
- Add code to produce a fake ELF kernel containing only symbol info. Done
...
by extracting ksyms state from the dump, so we have symbols for modules
loaded at the time of the crash. If ksyms extraction fails, this falls
back to the current behaviour of copying /netbsd.
- Leave it disabled for the moment: (1) we are about to branch (2) most
tools understand the artificial kernel but gdb has trouble with it for
some reason.
2008-10-20 10:34:54 +00:00
apb
96230fab84
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
...
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
pooka
61c5cf598d
Convert mount_nfs to the mount_foo_parseargs() format. No functional
...
change.
2008-10-16 09:12:54 +00:00
pooka
084e92b62d
Reword quite out-of-place (even historically) "nqnfs 2" error message.
2008-10-15 19:06:45 +00:00
dholland
866d811ed8
Fix reversed test in connection with combining -i and -l. If some
...
packets have already sent because of the preload count handling, we
shouldn't start off by sending another one right away. The reversed
test causes ping6 to wait one interval before sending anything at all
if you don't use -l. PR bin/39732.
2008-10-13 13:47:35 +00:00
christos
85db23df23
reallocate the correct amount. From Anon Ymous
2008-10-12 23:26:12 +00:00
wiz
af2c2b73f3
Don't use unicode in usage.
...
Noted by Anon Ymous.
2008-10-12 20:49:43 +00:00
wiz
89cc13767c
Sync usage with man page.
2008-10-09 18:38:24 +00:00
wiz
104f1a2c29
Standardize.
2008-10-09 18:32:08 +00:00
christos
59334248e2
Disable userid to username lookups by default. Add a -U flag to perform them.
...
In single user mode lookups that involve the network might not work and they
slow down fsck.
2008-10-09 16:56:23 +00:00
christos
c6070f6f5a
Avoid allocating 2 x inospace and use realloc instead. This also saves a
...
large memcpy.
2008-10-09 15:50:46 +00:00
joerg
281bbad379
Explicitly check that the dump device is not the console, a tty or pty.
...
While the list is adhoc, the problems reported are always with
/dev/console. Adresses PR 38425 and similiar issues with Xen.
2008-10-09 13:59:50 +00:00
wiz
0247fc12f6
Bump date for previous. Remove trailing whitespace.
...
New sentence, new line. Capitalize Ethernet.
2008-09-30 09:41:41 +00:00
dyoung
7abd58c82d
Do not mention the 'ns' address family any longer, since that
...
support was removed quite a while ago.
Mention the 'link' address family. Describe the 'active' keyword.
Add examples for adding and activating a link-layer address.
2008-09-29 17:28:07 +00:00
pooka
4a6dd4a9c6
Assign default value for retrycnt already in data.
...
XXX: the use of globals would benefit from a loving touch
2008-09-27 20:39:42 +00:00
christos
8c6fb6faa5
PR/39525: Joachim Schueth, Frederik Sausmikat:
...
cgd inadvertently encrypts blkno eight times to generate IV
2008-09-12 16:51:54 +00:00
dyoung
6a9236b124
Get the socket addresses for dst/gateway/netmask/interface/ifaddr
...
out of the global namespace.
2008-09-10 01:56:22 +00:00
dyoung
5e93382467
Don't cast a sockunion * to sockaddr *. Instead, reference the
...
sockaddr inside of the sockunion.
2008-09-10 01:14:59 +00:00
dyoung
0a77d3df40
Delete superfluous casts to void *.
2008-09-10 01:08:39 +00:00
dyoung
f791b67f11
Constify.
2008-09-10 01:06:58 +00:00
dyoung
cfe9ef5ba6
Constify.
2008-09-10 01:00:02 +00:00
dyoung
36aee9b2c9
Constify.
...
For clarity's sake, do not assign a new value to inet_makenetandmask()'s
argument, `inet'.
2008-09-10 00:57:57 +00:00
dyoung
f65fccd290
Extract subroutine extract_addrs() for reuse, later.
...
Replace the anonymous constant, 0, with AF_UNSPEC.
2008-09-09 19:58:46 +00:00
dyoung
081a2b518e
Constify.
2008-09-09 16:55:28 +00:00
dyoung
51731102ff
Shorten a staircase. Remove superfluous parentheses from return
...
statements. Constify.
2008-09-09 16:50:52 +00:00
dyoung
acf567a730
Use EXIT_FAILURE instead of anonymous constant '1'.
2008-09-09 16:35:15 +00:00
dyoung
c08d63b5ad
Use a union and sizeof() to avoid a cast and an anonymous constant
...
buffer length, respectively.
2008-09-09 16:23:33 +00:00
dyoung
a26d1ce8fc
Use bool.
2008-09-09 16:18:17 +00:00
pooka
e9233abdae
Convert to the new mount world order with parseargs.
2008-09-04 12:07:58 +00:00
dholland
a28347f962
Document -v. PR 39441 from Stathis Kamperis. Bump date.
2008-08-31 23:40:19 +00:00
dholland
3f944a915e
Remove trailing whitespace. Noted in PR 39440 by Stathis Kamperis.
2008-08-31 23:37:45 +00:00
dholland
947d35bd35
Don't dump core if given no arguments. Fixes PR 39440 from Stathis Kamperis
...
(but with a different patch).
2008-08-31 23:35:04 +00:00
gdt
4a8ce74d3f
Add an explanation of why one would want to use -x/-X, after
...
discussion with bouyer@.
2008-08-30 15:07:40 +00:00
dogcow
fefef6828c
Make it compile. (HI BOUYER!)
2008-08-30 14:07:32 +00:00
bouyer
a8ac39af81
Add fss(4) snapshot support to fsck_ffs(8) (via -x or -X options, like
...
dump(8)). This allows fsck_ffs -n to work on a snapshot of a R/W mounted
filesystem, and avoid errors related to filesystem activity.
2008-08-30 10:46:16 +00:00
gmcgarry
3c9a95916d
Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
2008-08-29 00:02:21 +00:00
wiz
133e2f4217
Drop trailing whitespace.
2008-08-28 21:24:30 +00:00
tsutsui
00c798e9e3
Fix some spelling.
2008-08-28 16:29:24 +00:00
oster
6fe654d47f
Bump date (before wizd).
2008-08-26 21:08:08 +00:00
oster
a252344f99
Add description of some of the things 'raidctl -u' doesn't do.
2008-08-26 21:06:55 +00:00
dholland
992b45040f
Add two missing SMART attributes; PR 37967 from Henry Bent. Also add a
...
third I found while digging around, and fix one whose name was typoed.
2008-08-25 00:45:56 +00:00
dholland
79cfdc5aec
Clarify message that says the map isn't shown when -a is given.
...
Resolves PR 32436 from Igor Sobrado based on a suggestion by
Dieter Roelants, except I expanded the message further.
2008-08-25 00:14:46 +00:00
oster
7cb3f2efd3
We have the notion of an 'absent' disk, so use that in another example.
2008-08-19 17:38:46 +00:00
martti
8f3ae7f144
s/If/It/
2008-08-13 10:00:10 +00:00
simonb
89943600ac
We don't need to dump WAPBL log files - don't dump files with SF_LOG
...
flag set, and document this.
2008-08-12 13:28:35 +00:00
christos
b6f6f7a746
teach this about wedges.
2008-08-11 10:56:54 +00:00
simonb
cb6ddf15e6
Remove adding -g to CFLAGS and LDFLAGS. Ancient debug bogon?
2008-08-10 08:06:23 +00:00
wiz
36539584db
Fix Dd argument and remove superfluous empty line.
2008-08-08 22:48:24 +00:00
reinoud
40cac362ad
Update the mount_udf(8) manpage to include the write support.
2008-08-08 18:22:01 +00:00
pooka
99fed7264c
Refactor mount utilities to provide a mount_fs_parseargs() routine.
...
Use this routine both in mount_fs and rump_fs to provide equivalent
command line parameters and therefore usage interchangeability.
While doing this, combine some common mountgoop to mountprog.h
2008-08-05 20:57:45 +00:00
wiz
b2ac773421
Add missing word and bump date for previous.
2008-08-04 07:53:07 +00:00
simonb
cf67ff2e05
Mention "-o log".
2008-08-04 07:49:57 +00:00
lukem
b4336abb57
Revert previous accidental commit of debug statements
2008-08-03 07:50:54 +00:00
lukem
f26df72744
Avoid freeing memory in do_file() since it's called recursively
2008-08-03 07:49:46 +00:00
dyoung
83dfe33e66
is@ pointed out that I set the phase and range of a sockaddr_at
...
without subsequently doing anything with it, so commit_address()
works with an address with phase == 0. phase == 0 is not allowed,
hence
random84# ifconfig nfe0 atalk 3.14
ifconfig: SIOCAIFADDR: Invalid argument
Solution: copy the new sockaddr_at to a temporary input environment,
and pass that environment to commit_address(). I may as well copy
the new sockaddr_at to the output environment, while I am at it.
2008-08-01 22:44:17 +00:00
dyoung
10b425b514
Extract common code. Create subroutine paddr_prefix_size().
2008-08-01 22:29:13 +00:00
dyoung
4668b21b50
Always initialize the union of sockaddrs. I used to initialize it
...
only in the AF_UNSPEC/AF_INET/AF_INET6 cases. Maybe this will fix
the AF_APPLETALK problem that is@ reports:
random84# ifconfig nfe0 atalk 3.14
ifconfig: SIOCAIFADDR: Invalid argument
2008-08-01 18:05:56 +00:00
simonb
8e5470fdb2
Handle 't' suffix for terabytes for number arguments.
2008-08-01 15:32:29 +00:00
simonb
fbdf47e4b0
Just use printf(...) instead of fprintf(stdout, ...).
2008-07-31 15:55:41 +00:00
simonb
8afa0436e9
Pretty-print the journal log size with humanize_number(3).
2008-07-31 15:50:29 +00:00
simonb
36d65f1138
Merge the simonb-wapbl branch. From the original branch commit:
...
Add Wasabi System's WAPBL (Write Ahead Physical Block Logging)
journaling code. Originally written by Darrin B. Jewell while
at Wasabi and updated to -current by Antti Kantee, Andy Doran,
Greg Oster and Simon Burge.
OK'd by core@, releng@.
2008-07-31 05:38:04 +00:00
pooka
8188a28971
Split option parsing into its own routine so that it can be used
...
by other consumers as well.
2008-07-29 16:05:05 +00:00
pooka
97f4be43e9
Install mount argument structure header just like every other file system.
2008-07-28 12:42:12 +00:00
joerg
d249112fae
Update build glue for dhcpcd 4.0.0rc3 and move it to
...
src/external/dhcpcd.
Make dhcpcd quiet by default when run from rc.
2008-07-27 19:31:02 +00:00
reinoud
6797eb00e2
Add UDF 2.50 metadata partition creation to newfs_udf(8). It allows a
...
percentage to the volume space to be pre-allocated for metadata on format.
Implementations that can't extent the metadata partitions can thus use the
discs too.
Note that the kernel UDF code can't write to UDF 2.50 metadata partitions
yet; this is a work-in-progress.
Also note that the default formatting version choice is still version 2.01
i.e. without the metadata partition.
2008-07-26 20:20:56 +00:00
christos
1a43d7316a
PR/39525: Joachim Schueth, Frederik Sausmikat:
...
cgd inadvertently encrypts blkno eight times to generate IV
Add "encblkno1" IV type to encrypt only once, rename old "encblkno" to
"encblkno8" for clarity, and make "encblkno" an alias for "encblkno8"
for backward compatibility.
2008-07-24 19:07:36 +00:00
matthias
f0f728186b
Do not crash when boot->FSNext contains garbage (i.e. -1).
2008-07-24 14:23:16 +00:00
dholland
25360444b2
Adjust this to not need -Wno-pointer-sign.
2008-07-24 06:13:21 +00:00
dholland
e3b90707f6
bzero the passphrase before freeing it, to discourage chill attacks.
2008-07-24 05:35:59 +00:00
dholland
2c1061aba6
Adjust this to not need -Wno-pointer-sign.
2008-07-24 05:32:45 +00:00
dholland
8bc7b72389
Fix this to not need -Wno-pointer-sign. Make it pass -Wsign-compare too,
...
while I'm at it.
2008-07-24 05:21:12 +00:00
lukem
f0bccc0f62
Remove the \n and tabs from the __COPYRIGHT() strings.
2008-07-21 13:24:38 +00:00
gmcgarry
8d54263568
Add HAVE_PCC tests for -Wno-pointer-sign.
2008-07-21 11:38:44 +00:00
lukem
6543a91fea
Remove the \n and tabs from the __COPYRIGHT() strings.
...
(Tweak some to use a consistent format.)
2008-07-20 01:20:21 +00:00
drochner
1914237fbe
include <stdlib.h> explicitely, for exit(), getprogname() etc.
...
(it happens to be pulled in by the yacc skeleton, but we shouldn't
rely on this)
2008-07-17 16:24:55 +00:00
dyoung
723da104d6
Cosmetic: s/xenv/oenv/
2008-07-15 21:27:58 +00:00
dyoung
95a02c3401
Make usage() static.
2008-07-15 21:19:24 +00:00
dyoung
3e89e7b09b
Only describe flags -L and -m in the usage if they are available.
...
That helps me get rid of some conditional compilation (INET6) in
ifconfig.
Let each protocol/feature-module print its own usage, so that the
ifconfig usage reflects the modules that are actually compiled-in.
Write usage information for carp(4) options.
2008-07-15 20:56:13 +00:00
simonb
9e826282a4
Fix funny whitespace in a variable assignment.
2008-07-08 08:14:37 +00:00
simonb
12e5d916fb
No need to print "0x0x" before a hex number, one "0x" should be enough.
2008-07-08 07:53:08 +00:00
dyoung
d75414adf5
Let us add/remove features from ifconfig, such as support for
...
various address families (inet, inet6, iso, atalk) and protocols
(802.11, 802.3ad, CARP), simply by trimming the list of sources in
the Makefile. This helps one customize ifconfig for an embedded
device or for install media, and it eliminates a lot of grotty
#ifdef'age. Now, the ifconfig syntax and semantics are finalized
at run-time using the constructor routines in each address-family/protocol
module.
(In principle, ifconfig could load virtually all of its syntax from
shared objects.)
Extract a lot of common code into subroutines, in order to shrink
the ifconfig binary a bit. Make all of the address families share
code for address addition/replacement/removal, and delete "legacy"
code for manipulating addresses. That may have broken atalk and
iso, despite my best efforts.
Extract an include file, Makefile.inc, containing the make-fu that
both ifconfig and x_ifconfig share.
Sprinkle static. Change some int's to bool's. Constify.
Add RCS Ids to carp.c and env.c. Move media code to a new file,
media.c. Delete several unneeded header files.
Set, reset, and display the IEEE 802.11 attribute, 'dot11RTSThreshold'.
Bug fix: do not require both a interface address and a destination
address for point-to-point interfaces, but accept a interface
address by itself.
2008-07-02 07:44:13 +00:00
reinoud
0cbd9f8bcc
Use the new macros defined in ecma167-udf.h and also calculate the extended
...
attribute header crc check; not just the tag sum.
2008-06-24 15:37:42 +00:00
reinoud
77c6f83b52
Rename functionname to be more in sync with the kernel function naming.
2008-06-22 18:18:02 +00:00
reinoud
165572357f
Initialise l_ea though technically not nessisary since its space is claimed
...
by a calloc() its more clear to explicitly initialise it to prevent
accidents might the routine be later changed.
2008-06-22 18:15:33 +00:00
wiz
d23e93082f
Sort options.
...
New sentence, new line.
Use more markup.
Drop trailing whitespace.
Bump date for previous.
2008-06-21 17:11:03 +00:00
reinoud
9c4be68820
DO set the birthtime please....
2008-06-21 13:12:33 +00:00
reinoud
e1f31734bf
Factor out extended attribute header creation. The VAT and extended time
...
descriptors are now added by this function.
Extended attribute for birthtime added to (non-extended) file descriptors.
2008-06-20 22:41:42 +00:00
reinoud
45881dadc7
Remove superfluous crc and checksum calculations when we are already post
...
processing it later on writeout.
2008-06-19 13:35:26 +00:00
reinoud
bdd973a499
Allow UDF versions to be both specified as a hex value and as a float
...
value. Its now possible to specify version 2.50 as "2.50" or "0x250".
2008-06-19 13:20:09 +00:00
reinoud
ea583bb523
Don't keep a running pointer but calculate directly the data offset to
...
prepare for factoring out.
2008-06-19 12:33:54 +00:00
reinoud
f0ae557b3d
Move extended attribute header creation from VAT to all (non-extended) file
...
descriptor creations.
2008-06-19 12:24:58 +00:00
reinoud
16c8051218
If the written out descriptor contains a file descriptor or an extended
...
file descriptor, update the location of the extended attribute space if
present.
2008-06-19 12:23:01 +00:00
reinoud
a0bade49b0
Clarify hack to move LVID sequence forward if there are bad blocks there
...
since the automatic bad block skipping is not yet done.
2008-06-19 10:25:51 +00:00
reinoud
fd86ec116b
Fix commentZ
2008-06-19 10:23:31 +00:00
martin
b47f782db6
Move to 2 clause license, approved by Wolfgang Solfrank.
2008-06-13 20:46:09 +00:00
dyoung
d46fe4da98
Remove one more struct afswtch.af_getprefix() remnant.
2008-06-03 21:03:27 +00:00
dyoung
31a7bcb871
Remove remnants of struct afswtch.af_getprefix().
2008-06-03 21:02:49 +00:00
dyoung
89ef65cc34
*Always* pass the prefix mask specified on the command line, even
...
on an IFF_POINTOPOINT interface. Patch tested by John Klos and
found to fix the bug he reported on tech-net@, "Subject: Can't use
gif in -current".
2008-06-03 04:59:30 +00:00
dyoung
480fc38f3c
Cosmetic: add missing /*FALLTHROUGH*/.
2008-06-02 23:19:16 +00:00
mrg
c2b95373bf
remove clause #3 from my license where there are no other
...
copyright holders involved.
2008-05-29 14:51:25 +00:00
dyoung
5035ceab3b
Fix kern/38775, "ifconfig inet delete fails".
2008-05-28 17:17:14 +00:00
joerg
d368388a03
Fix outdated CLEANFILES.
2008-05-26 20:17:00 +00:00
mhitch
17dec2055b
Add ciss(4) to drivers supporting bio(4) and bioctl(8).
2008-05-25 20:09:55 +00:00
wiz
723dae1494
New sentence, new line.
2008-05-25 20:08:56 +00:00
joerg
e4890f8abd
Hook dhcpcd into build.
2008-05-24 19:39:30 +00:00
dyoung
aa10084492
Fix two bugs:
...
1 Let us associate a keyword with either a signed or an unsigned
number. Associate the '-chan' keyword with an unsigned number.
This fixes the defect that crashed 'ifconfig wi0 -chan', reported
by Michael van Elst.
2 Do not try to interpret names as ISO addresses unless the ISO
address family was specified. iso_addr(3) does not report errors,
so it appears to interpret *everything* as an ISO address. This
is a stopgap fix for the defect in 'ifconfig lo0 inet6' on a
!INET6 kernel that deletes the first IPv4 address on lo0.
(Reported by Scott Ellis.)
2008-05-19 18:00:31 +00:00
dyoung
3ebe24aa36
Apply netmasks to !(IFF_BROADCAST|IFF_POINTOPOINT) interfaces as
...
well as to IFF_BROADCAST interfaces. Fixes the bug reported by
Markus W Kilbinger,
ifconfig stf0 inet6 2002:xxxx:76ec:0001::1 prefixlen 16 alias
results in the wrong configuration,
stf0: flags=1<UP> mtu 1280
inet6 2002:xxxx:76ec:1::1 prefixlen 64
2008-05-16 20:57:42 +00:00
dyoung
4a04a80d10
The key 'vlantag' activates the 'vlanif' keyword, not the key
...
'vlan'. Should fix this bug reported by Pierre Pronchery,
# ifconfig vlan0 vlan 1 vlanif hme0
ifconfig: SIOCAIFADDR: Address family not supported by protocol family
2008-05-16 20:53:35 +00:00
hannken
5d2bff060a
Make sure all cached buffers with valid, not yet written data have been
...
run through copy-on-write. Call fscow_run() with valid data where possible.
The LP_UFSCOW hack is no longer needed to protect ffs_copyonwrite() against
endless recursion.
- Add a flag B_MODIFY to bread(), breada() and breadn(). If set the caller
intends to modify the buffer returned.
- Always run copy-on-write on buffers returned from ffs_balloc().
- Add new function ffs_getblk() that gets a buffer, assigns a new blkno,
may clear the buffer and runs copy-on-write. Process possible errors
from getblk() or fscow_run(). Part of PR kern/38664.
Welcome to 4.99.63
Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>
2008-05-16 09:21:59 +00:00
reinoud
22fe291e8b
Fix missing -s argument.
2008-05-15 07:03:17 +00:00
reinoud
e979c658c9
Import writing part of the UDF file system making optical media like CD's
...
and DVD's behave like floppy discs. Writing is supported upto and including
version 2.01; version 2.50 and 2.60 will follow.
Also extending the UDF implementation to support symbolic links and
hardlinks.
Added are the mmcformat(8) tool to format rewritable CD/DVD discs and
newfs_udf(8).
Limitations:
all operations can be performed on the file system though the
sheduling is currently optimised for archiving workloads.
mv(1)/rename(2) is currently only implemented for non-directories.
2008-05-14 16:49:47 +00:00
tsutsui
b87210fa51
Normalize my licenses.
2008-05-14 13:29:27 +00:00
dyoung
76766729c4
Use an AF_LINK socket to add/delete/get link-layer addresses.
2008-05-13 18:10:17 +00:00
wiz
3f812bdc84
Bump date for previous.
2008-05-13 09:31:06 +00:00
dyoung
3361a66d0a
Per discussion at
...
<http://mail-index.netbsd.org/tech-net/2008/04/08/msg000371.html >,
let us add, delete, and activate link-layer addresses with ifconfig:
# ifconfig sip0 link 02:00:00:00:00:01 [add address]
# ifconfig sip0 link 02:00:00:00:00:02 [add address]
# ifconfig sip0 link 02:00:00:00:00:02 active [activate address]
# ifconfig sip0 link 02:00:00:00:00:01 delete [remove address]
2008-05-12 22:06:13 +00:00
dyoung
af8202a3c2
Apply the right copyright notice.
2008-05-12 22:01:32 +00:00
dyoung
85a29f7ecc
Fix link-layer address parsing. Add debug statements.
...
Cosmetic: fix copyright whitespace.
2008-05-12 21:54:51 +00:00
dyoung
8c56a7ef60
Cosmetic: fix copyright whitespace.
2008-05-12 21:53:32 +00:00
dyoung
cd86d94cd8
We cannot create an AF_LINK socket. If AF_LINK is requested, create
...
an AF_INET socket, instead.
2008-05-12 21:52:29 +00:00
dyoung
47bfdf8c0e
Make prototype and definition of in_alias() agree: it's static.
2008-05-12 20:59:13 +00:00
dyoung
b312223d4e
Retire in6_addreq and in6_ridreq, which we do not use in the
...
commit_address() regime.
2008-05-12 20:58:16 +00:00
dyoung
3f2ce08bf8
Initialize IPv6 addresses and ifreqs with more rigor. Fixes this
...
bug reported by Matthias Scheler,
# ifconfig sip0 inet6 fdb4:542d:dc11:ec20::1
ifconfig: SIOCAIFADDR_IN6: Invalid argument
# ifconfig sip0 inet6 fdb4:542d:dc11:ec20::1 prefixlen 64
2008-05-12 15:35:50 +00:00
dyoung
0f6386183c
setifipdst() is gone, so delete the prototype. #include nothing
...
(XXX).
2008-05-12 00:40:40 +00:00
dyoung
4279a83897
Add code for parsing link-layer addresses of the form xx:xx:...:xx.
2008-05-12 00:39:18 +00:00
dyoung
d3c42f50ae
Start to adapt the AppleTalk module to use commit_address().
2008-05-11 23:28:40 +00:00
dyoung
ed29145620
Get rid of sec2str() altogether.
2008-05-11 23:27:32 +00:00
dyoung
50a22265be
Don't export in_alias(). Pass in_alias() a more useful template.
...
Misc. cosmetic changes. Delete dead code. Treat the address
preference as int16_t, since that is its real type.
2008-05-11 23:25:46 +00:00
dyoung
42c94b7768
In in6_alias(), instead of repeating the memset()/estrlcpy()/sockaddr_in6
...
assignment-dance, copy creq to ifr6 before each ioctl().
2008-05-11 22:30:07 +00:00
dyoung
16f748ab9d
Delete unused array sin6tab[]. Delete unnecessary casts.
2008-05-11 22:18:20 +00:00
dyoung
3df1d7792b
Delete dead code in sec2str().
2008-05-11 22:16:29 +00:00
dyoung
8ae5a779c6
Retire some code that in6_commit_address() replaces.
2008-05-11 22:12:04 +00:00
dyoung
503d41a97f
Let the address family modules zero initialize their own ifreqs,
...
instead of zeroing them in commit_address().
Switch to in6_commit_address() from in6_getprefix() and in6_getaddr().
Temporarily add some debugging code to setia6eui64_impl().
2008-05-11 22:07:23 +00:00
elric
98059cd502
Add a new keygen method which will execute an external command and
...
take its output as the key. I've been meaning to do this for quite
a while...
2008-05-11 03:15:21 +00:00
elric
ba6026f365
Add -p flag to retrieve passphrases from stdin. This is mainly aimed
...
at programatic use where the caller wants to be able to use PKCS#5.
Disable looping on invalid verifications unless both a passphrase method
is in use and the -p flag is not specified.
Update man page to document -p flag.
2008-05-10 21:38:40 +00:00
dyoung
a00439c7f3
In address, integer, string parsers, gracefully handle a missing
...
token.
2008-05-09 20:48:59 +00:00
dyoung
19f3f9a2f3
Repair agr(4) syntax. Should fix PR bin/38600.
2008-05-09 20:45:09 +00:00
dyoung
de7ae11c56
Use the correct key. Spotted by NONAKA Kimihiro.
2008-05-09 04:46:50 +00:00
dyoung
44e2875450
Move IPv4/IPv6-specific code from commit_address() to in_commit_address()
...
and in6_commit_address(). Fixes the USE_INET6=no build.
2008-05-08 07:13:20 +00:00
dyoung
cbb2531719
Delete #if 0'd code.
2008-05-08 07:11:03 +00:00
dyoung
43545a233c
Don't use -pedantic, it stops af_atalk.c and af_iso.c from building
...
if INET_ONLY is #defined.
2008-05-08 07:09:18 +00:00
dyoung
8c460289fe
Factor out common code, creating direct_ioctl() and indirect_ioctl()
...
for the two most prevalent styles of ioctl(2) calls in ifconfig(8).
2008-05-07 23:55:06 +00:00
dyoung
db80154181
Remove CPPFLAGS that are redundant when WARNS=4.
2008-05-07 22:07:24 +00:00
dyoung
71b48a4b36
Move IPv6 syntax to af_inet6.c from ifconfig.c. Move IFKW() macro
...
from ifconfig.c to parse.h for reuse.
2008-05-07 21:29:27 +00:00
dyoung
8a08b505d5
Move ISO, AppleTalk, carp(4) syntax from ifconfig.c to af_iso.c,
...
af_atalk.c, carp.c, respectively.
2008-05-07 20:45:01 +00:00
dyoung
e3cf2a1157
Sprinkle 'static const' on keyword objects.
2008-05-07 20:12:31 +00:00
dyoung
48fa574a64
Move vlan(4) syntax from ifconfig.c into vlan.c.
2008-05-07 20:11:15 +00:00
dyoung
8bc06077c3
Move tunnel syntax into tunnel.c. Move net80211 'list' command
...
syntax into ieee80211.c.
2008-05-07 20:03:27 +00:00
dyoung
ad19851f11
Move net80211 and agr(4) syntax out of ifconfig.c and into ieee80211.c
...
and agr.c, respectively.
2008-05-07 19:55:24 +00:00
dyoung
e4942eb316
Interpret 'prefixlen 0' as the maximum prefix length, as ifconfig
...
has always done.
2008-05-07 18:17:42 +00:00
dyoung
ed7181ed99
Fix a bug that I introduced in rev 1.88, where the default IPv6
...
prefix length changed from 64 to 128. While I am here, allow an
address to be given with prefix length /0, but interpret it as
/128.
2008-05-07 18:08:30 +00:00
yamt
2f1a30af0d
agrsetport: fix a use of uninitialized variable.
2008-05-07 01:13:51 +00:00
dyoung
f32d909d6e
Use the right key, "ifcaps" not "ifcap", in do_setifcaps(). assert()
...
that the object associated with that key is the right size.
2008-05-06 21:58:05 +00:00
dyoung
1c6c1fd531
Extract subroutine do_setifcaps() and fix the bug that uwe@ reported
...
in capabilities-setting.
Use prop_dictionary_util(3).
Rename the parser snpaoffset to parse_snpaoffset.
2008-05-06 21:20:05 +00:00
dyoung
502f5a16a5
Use prop_dictionary_util(3).
...
Re-use set80211() some more.
2008-05-06 21:18:17 +00:00
dyoung
fac0aeb0a0
Use prop_dictionary_util(3).
2008-05-06 21:13:20 +00:00
dyoung
4e8b81ea3e
Use prop_dictionary_util(3).
2008-05-06 18:58:47 +00:00
dyoung
55927815b6
Use prop_dictionary_util(3).
2008-05-06 18:35:38 +00:00
dyoung
42acbb2b0d
Fix syntax error in last.
2008-05-06 18:16:34 +00:00
dyoung
990c1a7873
Cosmetic: use return rc ? 0 : -1;
...
Make sure to release a prop_object_t that I am no longer using.
2008-05-06 18:09:50 +00:00
dyoung
a2e4fb3562
Use prop_dictionary_util(3) some more.
...
When we read interface flags and capabilities from the kernel, take
care not to record them in our current environment (env), but record
them in the output environment (oenv), instead. This helps us get
interface capabilities and flags right.
2008-05-06 17:29:04 +00:00
xtraeme
eab7dadfb7
Xref mount_tmpfs(8).
2008-05-06 17:21:56 +00:00
dyoung
32cf2beed0
Rename in_addr_commit() to commit_address(), and refactor slightly
...
to support IPv6 as well as IPv4 (a work in progress).
Make the second argument of af_status() a bool instead of an int.
Exit early with an error if the operator specifies an unsupported
address family on the command line. The change should help rc
scripts to detect that IPv6 support is missing from the kernel,
with 'ifconfig lo0 inet6'.
Start using prop_dictionary_util(3).
2008-05-06 16:15:17 +00:00
dyoung
e51773dc79
Add a license.
2008-05-06 16:09:18 +00:00
dyoung
40b61e5050
Add WARNS=4 and a dependency on ${LIBPROP}.
2008-05-06 16:07:00 +00:00
dyoung
8db3a2f0ba
If the address family is not set, assume AF_APPLETALK. Exit
...
at_status() quietly if the address family is set, and it is not
set to AF_APPLETALK.
2008-05-06 15:02:49 +00:00
skrll
77ecd4421a
Restore RCSId lost in 1.11
2008-05-06 08:16:12 +00:00
dyoung
c62cf792b0
Take out my CFLAGS settings for debugging.
2008-05-06 04:40:45 +00:00
dyoung
7b01455a0e
Overhaul ifconfig. Use fewer global variables. Take a leap toward
...
improved modularity and extensibility.
In the new architecture, a directed graph of argument-matching
objects (match objects) expresses the set of feasible ifconfig
statements. Match objects are labelled by subroutines that provide
the statement semantics.
Many IPv4, IPv6, 802.11, tunnel, and media configurations have been
tested.
AppleTalk, ISO, carp(4), agr(4), and vlan(4) configuration need
testing.
2008-05-06 04:33:42 +00:00
tsutsui
34dd728d42
There is only one more file which requires HACKS for m68000,
...
so handle it in each Makefile rather than sys.mk.
These ICEs might be related with GCC Bugzilla Bug 32424
which is not resolved yet even in the upstream.
2008-05-04 15:37:19 +00:00
martin
cd22f25e6f
Move TNF licenses to 2 clause form
2008-05-02 18:11:04 +00:00
martin
11a6dbe728
Convert TNF licenses to new 2 clause variant
2008-04-30 13:10:46 +00:00
martin
3028e483e4
Convert to new 2 clause license
2008-04-29 06:53:00 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
tsutsui
c007028e0b
Enable gcc optimization on m68000 (sun2) again with minimum hacks.
...
gcc -O0 generates a bit fat binaries.
2008-04-27 03:06:46 +00:00
dyoung
52440afe4e
Don't cast memset(3) to void. Remove a needless cast to struct
...
in6_addr *.
2008-04-24 05:29:40 +00:00
dyoung
35eb8b696a
Copy a const string to a temporary buffer instead of using __UNCONST().
...
Cosmetic: get rid of superflous curly braces and cast to (void *).
2008-04-22 17:18:11 +00:00
dyoung
d5063688b1
Delete some gratuitous casts, s/(char *)//.
2008-04-22 00:14:20 +00:00
christos
ab3d20195f
PR/28627: Andreas Gustafsson: Try 5 times to calibrate before failing. Should
...
fix issues with CPU's that don't produce consistent timing output due to code
morphing or power-savings.
2008-04-21 15:23:35 +00:00
dyoung
197afa999c
Change int to bool in a couple of places.
2008-04-21 05:33:55 +00:00
dyoung
babbbc034d
s/(caddr_t)//
2008-04-21 02:10:45 +00:00
dyoung
246781acda
Change bzero calls to memset calls.
2008-04-21 02:08:09 +00:00
ad
76f153e120
sync() a couple of times to benefit diagnosis of sloppy kernel code that
...
crashes during boot to multiuser.
2008-04-20 23:40:31 +00:00
dyoung
f7545c1509
Straggler from last: call fewer protocol family-specific initialization
...
routines from main(), since the protocol-family modules are taking
care of it.
2008-04-15 22:26:58 +00:00
dyoung
499909306a
Use static initializers to setup ISO and IPv6 addresses, instead
...
of calling protocol family-specific routines from main().
2008-04-15 22:24:37 +00:00
dyoung
8de26a0c60
Cosmetic: write strcmp() == 0 instead of !strcmp().
2008-04-15 22:14:07 +00:00
dyoung
adc446d581
Cosmetic: delete dead code.
2008-04-14 15:57:15 +00:00
dyoung
18685458ac
Cosmetic: use NULL instead of 0 for pointers. Shorten staircase.
2008-04-11 01:14:28 +00:00
dyoung
457345432a
Cosmetic: compare socket address family with AF_UNSPEC instead of
...
0.
2008-04-11 00:56:11 +00:00
dyoung
aeb69f8d9e
Cosmeticc: there's no use casting a uint16_t to a u_short, so don't
...
do that. Change indentation for readability.
2008-04-11 00:55:41 +00:00
christos
fb30984e82
un-bitrot #if 0 testing code.
2008-03-18 15:38:57 +00:00
lukem
54d1cc9562
Remove unused file.
2008-03-16 23:41:25 +00:00
lukem
481ad7b03a
errexit() now provides the trailing \n (since fsck_ffs assumed that
...
from a conversion from err(3)), so "make it so".
2008-03-16 23:17:55 +00:00
lukem
84f13c769e
sync from fsck_ffs/dir.c 1.21:
...
lost+found directories are mode -1700
2008-03-16 22:32:14 +00:00
wiz
1d5c92c6f8
Various improvements (mdoc, wording, punctuation).
2008-03-16 11:07:23 +00:00
xtraeme
c3a503482a
Xref cac(4).
2008-03-16 10:01:32 +00:00
aymeric
fc91709981
The hpcsh kernel does for sure USE_MBR. Make disklabel use it too on hpcsh.
...
With this, it is possible to bootstrap a MBR partitioned CF card without
partitioning and disklabelling it first on another platform.
2008-03-11 08:18:22 +00:00
tnn
bc465dcf63
mbr_dsn is unsigned, print it as such.
2008-03-09 14:57:10 +00:00
reinoud
cff0e3f587
Fix small documentation bug as reported in PR#38192 :
...
FFS -> FFSv1
UFS2 -> FFSv2
2008-03-08 19:26:46 +00:00
christos
cc8760f4cb
fix example (from anon ymous)
2008-03-03 19:11:45 +00:00
xtraeme
133f451fc4
Typo in previous.
2008-03-03 16:13:34 +00:00
xtraeme
89550ec143
Improve usage() and manpage commands/args.
2008-03-03 16:10:48 +00:00
xtraeme
e54494308e
- Fix total user specified and free disk size based on the RAID level.
...
- Adapt for BIOC_SVOL_RAID01 and BIOC_SVOL_RAID10 levels.
2008-03-03 14:55:39 +00:00
jmmv
9e8fd365e9
Add the ability to specify load-time properties for modules. This adds
...
three new flags to the new modload utility: -b, -i and -s, which are used
to pass boolean, integer and string parameters respectively.
2008-03-02 11:20:59 +00:00
xtraeme
fd6e8571e1
On RAID 1 volumes and when bv_stripe_size is 0 make it print 'N/A', like:
...
$ sudo bioctl arcmsr0 show volumes
Volume Status Size Device/Label Level Stripe
=============================================================
0 Building 234G sd0 ARC-1210-VOL#00 RAID 1 N/A 97.40% done
1 Offline 234G sd1 ARC-1210-VOL#01 RAID 1 N/A
$
Make it prettier the output of "bioctl foo0 show [volumes]" too.
2008-03-01 16:08:41 +00:00
xtraeme
2e0c631507
bio_setstate_consistency: zero out the struct before anything else,
...
and fix argv argument for strtoul().
2008-02-29 14:33:02 +00:00
christos
dd771215eb
PR/38094: Robert Millan: support "BIOS Boot" partition type in gpt(8)
2008-02-24 18:38:10 +00:00
christos
358764c860
Catch signals and exit with the proper error code like all the other fsck
...
programs.
2008-02-24 00:59:03 +00:00
reed
baa9962260
Fix typo.
2008-02-24 00:34:51 +00:00
christos
742b48d55e
Make sure that the exit values are always sane, and use symbolic instead
...
of magic constants. Reviewed by go@
2008-02-23 21:41:47 +00:00
christos
1fe4bceb66
Say what our exit values mean (this is not correct right now, because not
...
all fsck programs have been fixed but it will be soon).
2008-02-23 20:38:53 +00:00
elad
52cf460a76
Following input from Matthew Mondor, some Veriexec documentation changes:
...
- Document the signatures file format in a veriexec(5) man-page,
- Document the strict levels and a general Veriexec intro in veriexec(8)
instead of security(8).
Okay blymn@.
2008-02-18 10:37:19 +00:00
matt
aacb8057fd
lfs_sb_cksum returns a uint32_t, not a u_long
2008-02-16 17:58:43 +00:00
matt
6a2c9c06cc
Fix some inconsisent/conflicting definitions and missing parameters
2008-02-16 17:58:01 +00:00
matt
f664ab11b6
Change incorrect usage of CFLAGS to CPPFLAGS
2008-02-16 17:56:36 +00:00
matt
04686d0e18
yyerror returns void, not int
2008-02-16 17:56:11 +00:00
dyoung
c4923ea4ad
Document -l, -Q, -R, and -S.
2008-02-16 02:00:37 +00:00
elad
d6faea9863
Allow no signatures file to be specified for the "load" command, and use
...
the default one in such cases.
Update command usage and documentation to reflect the above.
2008-02-15 15:33:56 +00:00
rillig
ee53edd89b
Print the second parameter in the error messages, since the first is
...
ignored anyway.
ok'ed by jmmv@.
NB: I didn't add a regression test for this because of lack of knowledge,
as the existing tests don't seem to follow the regress/README file.
2008-02-13 14:24:12 +00:00
rillig
a4cbf0b5a3
The first non-optional parameter is ignored by this program.
...
ok'ed by jmmv@.
2008-02-13 14:21:57 +00:00
dyoung
a34525837f
Do not #include <sys/device.h> from userland.
2008-02-11 20:29:15 +00:00
elad
8f8e9e057c
Xref security(8) from veriexec(4), veriexec(9), veriexecctl(8), and
...
veriexecgen(8).
Suggested by Matthew Mondor.
2008-02-10 19:32:23 +00:00
jmmv
be1e5d770b
Always test MKMODULAR with != "no". Requested by mrg@.
2008-02-10 08:21:25 +00:00
jmmv
97f434a8b4
Reverse MKMODULAR checks.
2008-02-09 22:32:38 +00:00
jmmv
8983cf2933
Recognize MKMODULAR and build the appropriate tool.
2008-02-09 19:33:00 +00:00
jmmv
c2ae0da603
Descend into modstat if MKMODULAR is set.
2008-02-09 19:32:28 +00:00
dholland
2069154485
Mention utmpx/wtmpx as well as utmp/wtmp. Suggested by the patches in
...
PR bin/36551 by Greg A. Woods. Also, while I'm here, fix a miscapitalized
word.
2008-02-09 04:50:57 +00:00
dholland
322ddd589b
Set off symbolic signal names (SIG...) with .Dv, and crossreference init(8).
...
From PR bin/36551 by Greg A. Woods. And while I'm here, fix a grammar nit.
2008-02-09 04:31:43 +00:00
dholland
317c569692
Add warn() in a couple places where it was missing, and clarify one of
...
the existing warnings slightly. Suggested by PR bin/36551 by Greg A. Woods.
2008-02-09 04:27:06 +00:00
dholland
311ef454d2
Improvements and clarifications to log messages and also to the man page.
...
Partially cherry-picked from or inspired by PR bin/36551 by Greg A. Woods,
plus some additional grammar/usage/clarity adjustments while I was passing
through. Any mistakes are mine.
2008-02-09 04:09:22 +00:00
mrg
ecc90aa046
make all sun2 use -O0 and move most of the hacks out into just 3 files.
2008-02-09 02:37:21 +00:00
ad
e142a6464b
Kill -r. Union makes for a poor nullfs.
2008-02-05 16:54:07 +00:00
christos
18d6bea575
PR/37932: Yakovetsky Vladimir: build distribution with USE_FORT fails
...
fix buffer overflow
2008-02-02 17:07:04 +00:00
xtraeme
3d60ce5de6
Add two examples to create and remove a RAID volume in a supported
...
controller... such as arcmsr(4) for now.
2008-02-02 03:21:47 +00:00
dyoung
ae1c071d6f
Patch /dev/drvctl and drvctl(8) to let us suspend/resume device
...
sub-trees, and to let us list the children of a device.
While I am here, add -p to the drvctl(8) usage message.
2008-01-27 01:38:33 +00:00
dsl
7ddd81a137
Add support for mbr code with ascii keycodes
2008-01-25 23:19:10 +00:00
dsl
683572a3a3
Note the existance of mbr_com0 and mbr_com0_9600.
2008-01-20 15:04:09 +00:00
tsutsui
aa7cb7b8f0
- add a sanity check to avoid possible division by zero
...
- adjust sector numbers _after_ "Sanity check the data against all zeroes"
Should close PR bin/37656.
2008-01-20 06:39:31 +00:00
ad
40e9e0d144
Fix a dumb bug.
2008-01-19 01:18:47 +00:00
ad
bbc79e58a6
Pull in my modules code for review/test/hacking.
2008-01-16 12:34:50 +00:00
ad
73e694f404
Don't use the block device to read crashdumps, if possible.
2008-01-15 14:26:41 +00:00
xtraeme
aff55dbf6c
New bioctl(8) first appeared on 5.0 not 4.1.
2008-01-11 17:11:42 +00:00
xtraeme
e0fef4a42b
Xref gcscpcib(4).
2008-01-09 14:35:54 +00:00
simonb
d8de5b102b
Remove support for NetBSD/pc532.
2008-01-09 11:25:58 +00:00
seanb
fb884caea6
Shutdown sloop socket for read as it's never read on to
...
prevent mbufs from queueing in its recv buf.
PR:21459
2008-01-08 20:03:09 +00:00
xtraeme
481db08b0a
Rewrite bioctl(8) and add support for the following features:
...
- Ability to add/remove hot-spare disks (previously only 'add' was accepted).
- Ability to add/remove pass-through disks.
- Ability to create/remove RAID volumes with optional size, stripe, level,
member disks and others.
- Ability to start/stop consistency checks in a RAID volume.
- Ability to show only information about physical disks, volumes or both.
Rather than using multiple flags, the utility has been modified to use
the same mode than dkctl(8) (and maybe others), i.e:
$ ./bioctl
usage: bioctl device command [arg [...]]
Available commands:
show [disks] | [volumes]
alarm [enable] | [disable] | [silence] | [test]
blink start | stop [channel:target[.lun]]
hotspare add | remove channel:target.lun
passthru add DISKID | remove channel:target.lun
check start | stop VOLID
create volume VOLID DISKIDs [SIZE] STRIPE RAID_LEVEL channel:target.lun
remove volume VOLID channel:target.lun
$
I'll add support for other features soon.
2008-01-02 23:45:06 +00:00
xtraeme
a5381ad0a5
Xref itesio(4).
2007-12-29 06:10:29 +00:00
ad
2b5d04688e
Make it build with src/sys from the vmlocking2 branch.
2007-12-28 21:44:32 +00:00
riz
42a4e6ef13
As discussed on tech-userlevel, add NetBSD GPT partition types for
...
swap, ffs, lfs, raidframe, ccd and cgd. gpt(8) now defaults to
NetBSD ffs if no type is given, but previous FreeBSD types are
still recognized in the DKWEDGE_AUTODISCOVER code.
2007-12-28 19:53:09 +00:00
apb
bb3a1dfc42
Remove note about the first track being reserved for the BIOS (it's
...
not), and replace it with a note about the first partition traditionally
beginning in the second track of the first cylinder.
2007-12-23 10:47:42 +00:00
apb
ca6bb6217d
Track zero is not strictly reserved for the BIOS, that's just a
...
convention, so don't make it an error in check_overlap(). Sector 0 is
reserved for the MBR, so make that an error in check_overlap().
2007-12-23 10:43:57 +00:00
apb
49b1fa58d7
Report the first active partition.
2007-12-23 08:58:34 +00:00
apb
29a92a49d4
If the partition is unused, then attempting to decode the PBR would
...
actually decode the MBR from sector 0 of the disk. Don't do it if
v_flag < 3.
2007-12-23 08:14:28 +00:00
tsutsui
68fb2791e1
Use h2fs32() rather than fs2h32() on host to disk conversion.
2007-12-22 01:19:52 +00:00
tsutsui
37d769ed47
- use MINFREE defiend in <ufs/ext2fs/ext2fs.h>
...
- remove unnecessary casts
- unsigned -> unsigned int
- misc KNF
2007-12-22 01:15:49 +00:00
tsutsui
7bc26029c9
Remove unused macro.
2007-12-22 00:28:21 +00:00
dogcow
3a04c46a48
Your friendly neighborhood 64-bit architecture here to remind you that
...
strlen returns size_t, and printf's precision specifier uses int.
2007-12-19 05:48:33 +00:00
riz
0fac2edb7f
Fix the usage strings for each command, and print them all for the
...
"global" usage. It's still a little ugly, but hopefully not as
fantastically confusing as before...
2007-12-18 21:46:45 +00:00
degroote
9fe6472fc5
Add support for the command list scan in ifconfig (this command permits to scan
...
access point in the neighbourhood).
Complete list of channel attributes and list of management information element
payload.
While here, use estrlcpy instead of strncpy.
From FreeBSD ifconfig and net80211
2007-12-16 13:49:21 +00:00
snj
5a1d0f0133
Sort xrefs.
2007-12-15 21:44:15 +00:00
apb
824c1f08d4
Update for the fact that MAKEDEV uses either tmpfs or mfs.
2007-12-15 21:33:49 +00:00
perry
441197bc3b
de-__P, ansify prototypes
2007-12-15 20:36:11 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
perry
36c7456d7c
include sys/cdefs.h so that __attribute__ can be fixed later
2007-12-15 16:32:05 +00:00
perry
4d096031f0
replace instances of __attribute__((__packed__)) with __packed
2007-12-15 16:03:29 +00:00
christos
9e925a6665
- Use fattr.c functions instead of home brewed ones.
...
- Use new dehumanize number.
2007-12-14 17:37:22 +00:00
tsutsui
ea9dd22af6
Don't allow blocksize larger than 4096 bytes as our kernel, fsck_ext2fs(8),
...
and Linux e2fsprogs.
2007-12-14 13:19:35 +00:00
explorer
62c5ab302e
Fix a minor typo: wd0h was repeated, change second instance to wd1h as is likely intended.
2007-12-14 07:24:01 +00:00
wiz
3a8a3f8310
Whitespace and HTML output fixes.
2007-12-13 22:06:45 +00:00
tsutsui
f4f8fe5f57
Add Xref newfs_ext2fs(8).
2007-12-10 12:34:49 +00:00
tsutsui
3c4a86f736
Fix typo.
2007-12-09 17:39:51 +00:00
apb
d9024ddf4b
* init calls "MAKEDEV -MM init", not "MAKEDEV -M init"
...
* s/filesystem/file system/
* one typo and one markup fix
* bump date
2007-12-09 09:24:55 +00:00
apb
edf9f9968b
No need to pass "-ppax" to MAKEDEV now that MAKEDEV internally defaults
...
to using pax.
2007-12-09 09:16:28 +00:00
jnemeth
1d506ab633
PR/37155 - Marcelo Schmidt -- specifying too large of a size causes segvs
2007-12-08 21:40:23 +00:00
jnemeth
415d88d5b8
PR/37503 - De Zeurkous -- inaccurate description of -s option
2007-12-08 20:52:19 +00:00
xtraeme
10f7c0a4da
Add BIOC_SVMIGRATING to bio(4) and bioctl(8) to report if a volume
...
is migrating currently showing the percentage.
Update arcmsr(4) to report this, like:
$ sudo ./bioctl -h arcmsr0
Volume Status Size Device
arcmsr0 0 Migrating 698G ARC-1210-VOL#00 RAID 5 7% done
0 Online 234G 0:0.0 noencl <WDC WD2500YS-01SHB1 20.06C06>
1 Online 234G 0:1.0 noencl <WDC WD2500YS-01SHB1 20.06C06>
2 Online 234G 0:2.0 noencl <WDC WD2500YS-01SHB1 20.06C06>
3 Online 234G 0:3.0 noencl <WDC WD2500YS-01SHB1 20.06C06>
$
2007-12-07 11:51:21 +00:00
xtraeme
a0c2cca741
There's no need to waste 14 spaces in the third element when the
...
the human output is requested, align it at most 4 spaces.
I'd also make the human output the default but not sure everybody will
agree...
2007-12-05 16:29:48 +00:00
xtraeme
507f8b0669
- Remove -D flag... it's useless (it was removed in OpenBSD as well).
...
- Use errx(3) in the appropiate function rather than warn(4) and
returning EXIT_SUCCESS all the time.
- Remove another case where it checks the device passed string will be
the same than in bv_dev.
2007-12-05 14:28:13 +00:00
xtraeme
1de866da81
Do not enforce that passed device string will be the same than the
...
one in bv_dev, which in some drivers like arcmsr(4) it contains the
volume name.
While I'm here, fix the formatting output so that it fits with arcmsr(4),
like:
$ sudo bioctl -h arcmsr0
Volume Status Size Device
arcmsr0 0 Building 698G ARC-1210-VOL#00 RAID5 96% done
0 Online 234G 0:0.0 noencl <WDC WD2500YS-01SHB1 20.06C06>
1 Online 234G 0:1.0 noencl <WDC WD2500YS-01SHB1 20.06C06>
2 Online 234G 0:2.0 noencl <WDC WD2500YS-01SHB1 20.06C06>
3 Online 234G 0:3.0 noencl <WDC WD2500YS-01SHB1 20.06C06>
$
2007-12-05 13:26:04 +00:00
xtraeme
415141bdf8
Mention arcmsr(4) in SEE ALSO.
2007-12-05 12:29:55 +00:00
yamt
ca117550c0
remove an unused variable, nfsproto.
2007-11-30 16:13:15 +00:00
dsl
fe8a8005c1
Make this compile without -Wno-pointer-sign
...
(Needs updated bootblock.h)
2007-11-29 23:19:25 +00:00
dsl
0d1f6529aa
Change -F to not use opendisk().
...
Don't change default to the boot volume until after we've found we aren't
doing -F.
For tool-fdisk enforce -F and use #defines to make code that can no
longer possibly execute compile.
2007-11-29 23:02:00 +00:00
tsutsui
726acbb131
Use powerof2() macro in <sys/param.h> rather than a homegrown version.
2007-11-27 13:31:10 +00:00
xtraeme
90a0b7ad49
Mention evbarm/iopwdog(4) and swwdog(4).
2007-11-23 13:32:46 +00:00
xtraeme
9537f21760
Mention some watchdog drivers in SEE ALSO and don't mention envsys(4)
...
or envstat(8), they don't have nothing in common with watchdogs.
<wizd> Bump date.
2007-11-23 11:34:50 +00:00
tsutsui
58babb9c75
Roundup e2fs_ipg to make it use whole inode table blocks since
...
it's still reasonable and some kernel code seems to assume it
(otherwise some inode numbers of directories could be corrupted).
XXX: not sure if odd e2fs_ipg is valid or not in ext2fs spec.
2007-11-21 13:14:06 +00:00
tsutsui
ddd9ad0a5e
Fix e2fs_itpg calculation.
2007-11-20 16:34:37 +00:00
tsutsui
e2cf99a49a
- fix a possible integer overflow
...
- initialize inode generation numbers with random numbers for NFS
like newfs(8) as man page said
XXX: sys/ufs/ext2fs/ext2fs_alloc.c:ext2fs_valloc() seems to override
these generated numbers.
2007-11-19 15:11:50 +00:00
apb
02c42d6bae
Remove unwanted ">" from a printed message.
2007-11-18 19:19:00 +00:00
christos
eb90df6853
From Marco Trillo (marcotrillo at gmail dot com):
...
Add Advanced power management in atactl(8)
2007-11-18 17:48:21 +00:00
tsutsui
67c9d310f8
Several minor fixes:
...
- replace a magic number with a macro
- fix several printf format
- fix possble block sizes for zap_old_sblock()
- use err(3) rather than errx(3) + strerror(errno)
- fix a typo
- misc cosmetics
2007-11-18 07:11:39 +00:00