grant
fc6ca7735c
uppercase NFS acronym
2004-01-15 03:33:20 +00:00
dbj
6300af6ca7
change the message "COVERTING TO FFSv2 SUPERBLOCK" to
...
"CONVERT TO NEW SUPERBLOCK LAYOUT" to help avoid confusion
2004-01-12 19:40:24 +00:00
mrg
2a3954efe6
- some KNF (80 cols)
...
- fix a printf format issue
2004-01-10 14:28:37 +00:00
wiz
cf9b70c6d4
Update Dd for previous and fix a case.
2004-01-09 23:42:11 +00:00
dbj
8f3b1a3c98
use %#llx instead of %llx when printing incorrect qfmask or qbmask
2004-01-09 22:23:18 +00:00
dbj
753116e06f
do not upgrade superblock or set FS_FLAGS_UPDATED unless -c 4 option
...
is provided.
add compatibility for filesystems before FFSv2 integration
these patches are from pr port-macppc/23925 and should also
fix problems discussed in pr kern/21404 and pr kern/21283
2004-01-09 19:12:31 +00:00
atatat
bc0bdd10f7
Used to say "type=", but now says "size=" since that's what it's
...
supposed to say.
2004-01-08 03:44:48 +00:00
jmmv
0d52ea4901
Remove extra newline from usage message.
2004-01-05 23:27:16 +00:00
jmmv
b635f565e7
Homogenize usage messages: make the 'usage' word all lowercase, as this seems
...
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
wiz
71839f7f61
Standardize flags display in usage.
2004-01-04 00:13:00 +00:00
wiz
d78a474461
Bump date for new -F. Standardise flags display in SYNOPSIS.
2004-01-04 00:12:04 +00:00
lukem
cf4d2c7308
Don't build cgdconfig when MKCRYPTO==no.
...
Fixes [bin/18552].
2004-01-03 23:34:29 +00:00
dbj
efbd5db673
add -F option, similar to fsck/newfs/dumpfs
...
correctly handle negative results from fsck's setup routine
handle uid and gid in FS_42INODEFMT inodes
2004-01-03 19:57:42 +00:00
dbj
1c65fb7cac
fix logic for handling symlinks in inodes when isappleufs
2004-01-03 17:56:21 +00:00
dbj
1f5f1d50af
when doing both -c 2 and -B, swap the blocks listed in the inode
...
of symlinks, since the swapping happens before the symlinks
are moved into the inode.
2004-01-03 17:27:35 +00:00
dbj
f491995334
fix paste-o in previous commit
2004-01-03 10:25:06 +00:00
dbj
f3786e90b7
fix bugs with unsigned comparison ofs fs_maxsymlinklen
2004-01-03 10:11:41 +00:00
dbj
9aad8f72b5
increase size of buffer used for updating symlinks with -c 1
...
otherwise, the block read will blow the stack
2004-01-03 10:07:02 +00:00
itojun
85d26f975b
rtsol: factor out dump.c if -DSMALL (for boot floppy)
...
use __func__ not __FUNCTION__
use timeradd() and timersub() from sys/time.h
from kame
2004-01-03 01:40:31 +00:00
dbj
23d4eb34b2
add uuid field to apple ufs volume label
2004-01-02 05:08:57 +00:00
wiz
a96b21c57d
Simplify Oo/Oc to Op, since it has only one simple short argument.
2003-12-31 01:21:49 +00:00
thorpej
683cebe2c8
No longer need to include <dev/ic/wdcreg.h>
2003-12-30 19:30:39 +00:00
thorpej
a443960167
Don't need to include atavar.h
2003-12-30 19:12:35 +00:00
atatat
fd2ec30242
Update sysctl.8 man page to cover all the new stuff.
2003-12-30 14:17:41 +00:00
jdc
3dcb42ad4b
Add missing ' in prompt text.
...
Pointed out by Allen Briggs.
2003-12-29 21:21:25 +00:00
jdc
dbc3f17967
If a partition is adjusted so that it falls off the end of the disk, display
...
a '+' character (aka the '*').
OK'ed by Christos.
2003-12-29 19:13:19 +00:00
jdc
256b6fecd8
Add the ability to define a partition as starting after another partition.
...
If chaining is on, display all changed partitions (not just this one).
OK'ed by Christos.
2003-12-29 19:12:29 +00:00
dbj
16c34ed5bc
fix minor bug in buf cache statistic collecting
2003-12-29 11:42:09 +00:00
atatat
d7035f6c9a
Fix spelo
2003-12-29 02:11:03 +00:00
heas
43894fc5ac
Check result of malloc().
...
reviewed by Martin.
2003-12-24 01:39:27 +00:00
jmmv
8ee5d1eca6
Fix typo: numder -> number. From Christian Biere in PR bin/23838.
2003-12-22 10:33:21 +00:00
mrg
61b5ab403f
bump date for previous
2003-12-21 02:52:02 +00:00
lha
43ac17e0cf
Extend SMART status to print temperature. Add support for printing
...
selftest log (but no code it start selftest yet).
2003-12-20 20:03:20 +00:00
mrg
9bf440d20b
support "-g" and "-m" as well as "-k" and "-h". swapctl & swaplist code
...
from Martin Weber, adapted for pstat by myself.
2003-12-20 13:31:42 +00:00
mrg
5fd013c40d
add a "-h" (humanize_number(3)) option to swapctl(8) and pstat(8), from
...
Martin Weber in PR#23805.
ps: now we only need someone to do ls(1) :-)
2003-12-20 11:22:25 +00:00
yamt
3223caeba2
remove definitions for ffs, which don't belong here.
2003-12-17 05:08:43 +00:00
drochner
7dcd19bbce
If a disktype was specified, use the disktab information
...
and don't try the disklabel.
Allows to create a filesystem on a floppy again.
(It is arguably another bug that DIOCGDINFO returns nonsense
for floppies.)
2003-12-11 12:11:27 +00:00
dyoung
f28870d8ac
fix spelling, s/extented/extended/
2003-12-11 05:11:50 +00:00
matt
3c12447a00
Make building IPv6 support controllable by MKINET6
2003-12-07 21:57:22 +00:00
atatat
ea73edd395
sysctlnametomib() is a private function for the moment.
2003-12-04 20:07:59 +00:00
atatat
c915b3168c
New sysctl(8) binary. Performs auto-discovery and can add/remove
...
nodes from the tree. Never needs to be recompiled again.
2003-12-04 19:49:39 +00:00
yamt
020176e538
display more capabilities for "identify" command.
2003-11-30 14:07:49 +00:00
lukem
c93539067a
Determine the MBR partition type relevant for the resulting partition,
...
and display that.
2003-11-23 23:16:40 +00:00
lukem
2a42af8c7a
Add "DISK" to -S output.
2003-11-21 21:47:42 +00:00
bouyer
6fb817f5dd
Commit changes proposed on tech-kern Thu, 6 Nov 2003
...
- factor out disksubr.c between sun3, sparc and sparc64. Keep the sun3
groveling code to find a NetBSD disklabel in the first sector (so that it
can find a label at the old sun3 LABELOFFSET) as a fallback is not
label at LABELOFFSET, or sun label is present.
- Fix the sun3 LABELOFFSET (was 64, but the kernel wrote the NetBSD label at
128)
- Make next68k disksubr.c always write a next-compatible disklabel.
- remove #ifdef __sparc__ hack from disklabel(8), and change it to issue
a DIOCWDINFO after writing the disklabel to the raw partition in the
-r/-I case (so that the kernel can convert the label if needed).
2003-11-15 17:52:30 +00:00
enami
b3f1752123
Initialize an uninitialized variable.
2003-11-14 01:31:24 +00:00
simonb
5e217f5e82
Fix "variable shadows global declaration" warnings.
2003-11-12 06:45:14 +00:00
jonathan
88ba77e705
Make per-protocol network input queue stats visible to userland via
...
sysctl. Add a protocol-independent sysctl handler to show the per-protocol
"struct ifq' statistics. Add IP(v4) specific call to the handler.
Other protocols can show their per-protocol input statistics by
allocating a sysclt node and calling sysctl_ifq() with their own struct ifq *.
As posted to tech-kern plus improvements/cleanup suggested by Andrew Brown.
2003-11-10 20:03:29 +00:00
fvdl
fe6b4c315f
Bring back disklabel -B for now, since hp300 installboot isn't ready
...
for prime time yet.
2003-11-10 09:22:09 +00:00
wiz
ee1b406595
Spell address with two d's. Inspired by similar changes in OpenBSD,
...
originating from Jonathon Gray and forwarded by jmc@openbsd.
2003-11-10 08:51:51 +00:00
dsl
6db70be120
Rip out all the '-B bootblock' support, everything should use installboot(8).
...
(can only affect arm32, hp300 and vax ports, and doesn't affect sysinst).
2003-11-08 09:25:01 +00:00
fvdl
0be1698412
Fix byteswapping a direntry. From Wolfgang Solfrank.
2003-11-05 22:27:16 +00:00
wiz
8920f41e3e
Bump date for previous.
2003-11-02 09:01:47 +00:00
shin
2c415ee56d
playstation2 needs MBR support in disklabel(8).
2003-11-02 02:52:58 +00:00
oster
f80b4d6ea1
Add a couple little warnings about swapping to RAID 5 sets.
...
(it currently doesn't work.)
2003-11-02 02:20:26 +00:00
wiz
e0d8e46808
KNF: sort includes.
2003-11-01 18:42:00 +00:00
wiz
a2307c7caf
eg -> e.g., vinum -> Xr vinum 4.
2003-11-01 18:38:59 +00:00
dsl
4302f2798d
Use fstat(2) to get the partition size (falling back to the label on old
...
kernels) so that newfs works on vinum (and similar).
Kill the -V hack for vinum.
Don't bother faking up a label for -F and mfs, nothing is needed from it.
Ignore label if special doesn't match DISKPART(sb.st_rdev);
Simplifly logic for default block/frag sizes.
Update man page to match.
WARNS=3.
2003-11-01 17:43:03 +00:00
lukem
d20692fdf5
Under no circumstances try to zap an existing superblock at sector 0.
...
There's no reasonable situation where there will be one there, except if the
disk had data on it previously for some reason. It's significantly more
likely (read "the world until UFS2 was merged") that sector 0(..15)
contains really important stuff like boot blocks and disk labels.
Once again, I ask, why wasn't UFS2 implemented as a separate file
system a la lfs & ext2fs ?
It could have shared a chunk of the kernel code (just like those),
and had different userland tools and a different fs_type.
2003-10-29 08:14:13 +00:00
lukem
171d653219
Overhaul how `build.sh tools' are used:
...
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
mycroft
6e508d1dff
Remove alpha optimization hack.
2003-10-26 16:30:25 +00:00
lukem
f85d2d1c14
Use ${HOST_SH} instead of `sh'.
...
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
lukem
130ab7336b
Rework how MAKEVERBOSE operates:
...
* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.
* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
itojun
dda2494d07
aes-xcbc-mac is now an RFC. bump date.
2003-10-21 07:20:11 +00:00
fvdl
83c93c70ba
Don't assign NULL to a char.
2003-10-21 02:38:15 +00:00
fvdl
9c9a4505fe
Don't use NULL as a case value.
2003-10-21 02:34:45 +00:00
fvdl
954495b615
Don't initialize an int to NULL.
2003-10-21 02:33:34 +00:00
fvdl
34951ed447
The 3rd argument to swapctl() is an int, don't pass NULL in it.
2003-10-21 02:32:54 +00:00
fvdl
efbda96887
Don't compare argc to NULL.
2003-10-21 02:31:43 +00:00
fvdl
d9495c6d9a
Don't compare an integer to NULL.
2003-10-21 02:31:08 +00:00
fvdl
a8930c059a
Fix various uses of NULL that should have been 0.
2003-10-21 02:30:03 +00:00
pooka
bb95bd5936
Handle partition offset and size as unsigned entities.
2003-10-20 13:20:20 +00:00
pooka
84a1b52c43
Partition size and offset inside the disklabel are unsigned. Print
...
them as unsigned so that we don't print negative values when we're
halfway through.
2003-10-20 13:10:48 +00:00
dsl
e69ce3e4bf
Add a -q (quiet) option to print nothing for clean filesystems.
...
Support in fsck_ffs and stub in fsck_xxx.
Push a few more messages through pwarn() instead of printf() to ensure
disk name is shown.
2003-10-20 12:04:38 +00:00
lukem
ddff99b7f4
rework to use the newer _MKMSGCREATE (et al) macros
2003-10-19 04:45:01 +00:00
lukem
8564ba3934
support MAKEVERBOSE and use ${HOST_SH}
2003-10-19 01:23:27 +00:00
lukem
3f580214e5
Support CCDF_NOLABEL. Document what CCDF_UNIFORM actually does.
2003-10-17 05:23:56 +00:00
wiz
33261e069b
Slight option ordering change.
2003-10-15 19:58:24 +00:00
dsl
02b24a287f
The 'struct partition *pp' is only used to save the block and fragment
...
sizes (so they can be written back into the disklabel).
Allow pp to be NULL
2003-10-15 13:07:34 +00:00
dbj
28fc00d72a
initialize llsize and llsizemult to 0
...
fixes bug noticed by Christopher SEKIYA on tech-kern@
2003-10-15 00:25:28 +00:00
agc
b2b49933f4
Move Matt Green's code from a 4-clause to a 3-clause licence by removing
...
the advertising clause. Diffs provided in PR 22396 by Joel Baker, the changes
were confirmed to the board by Matt Green.
2003-10-13 14:22:20 +00:00
dyoung
abda32ca8b
Add 'mode' option to change PHY media for 802.11 devices. Also,
...
display PHY mode. E.g., run an 802.11a (5GHz, 54Mbps max) access
point:
> ifconfig ath0 nwid my_access_point mode 11a mediaopt hostap
> ifconfig -m ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
nwid my_access_point
powersave off
bssid 00:05:5d:84:cc:6e chan 3
address: 00:05:5d:84:cc:6e
media: IEEE802.11 autoselect mode 11a hostap
status: active
supported IEEE802.11 media:
media autoselect
media autoselect mediaopt adhoc
media autoselect mediaopt hostap
media autoselect mediaopt monitor
media autoselect mode 11a
media autoselect mode 11a mediaopt adhoc
media autoselect mode 11a mediaopt hostap
media autoselect mode 11a mediaopt monitor
*snip snip*
2003-10-13 08:27:35 +00:00
wiz
e347fde976
Bump date for previous; new sentence, new line; use more macros; fix a typo.
2003-10-12 07:21:57 +00:00
tls
e333b0fc0e
Add an explanation of the fundamental purpose of the "security level"
...
mechanism and attempt to explain how to use it effectively.
2003-10-12 04:14:56 +00:00
jdolecek
32d4fce65a
add RCS Ids
2003-10-11 09:55:58 +00:00
jdolecek
2ced7f69cb
fix DPADD
2003-10-11 09:51:49 +00:00
wiz
5ffe40db93
Sort sections; bump date to commit date; add NetBSD RCS Id; mention
...
when it appeared in NetBSD in HISTORY section; rename section
"GOTCHAS" to "CAVEATS" since that's our standard name.
2003-10-11 09:12:18 +00:00
lukem
7a699e2bed
unconditionally #define DEFAULT_BOOTDIR. should fix non-x86 builds
2003-10-11 04:50:49 +00:00
matt
4669b2abcb
Compensate for 64bit (use %p for pointers).
2003-10-10 21:59:09 +00:00
wiz
5a3b01bb60
All single letter options are usually combined; add -V to the others.
2003-10-10 09:03:23 +00:00
wiz
e5db3159a8
Sync look of -V description in usage with other option descriptions.
2003-10-10 09:00:24 +00:00
grog
5cfcdccff1
Hook Vinum into build.
2003-10-10 06:10:53 +00:00
grant
d2b25aff9c
bump date for last
2003-10-10 04:14:00 +00:00
grog
c52d09a328
Decribe the V flag.
2003-10-10 03:27:10 +00:00
grog
51b6966ad7
Add -V flag for use with Vinum to indicate that the last character of
...
the device name should not be interpreted as a partition identifier.
2003-10-10 03:23:28 +00:00
grog
d5119a1e37
Initial import of Vinum userland.
...
Ported by: Ramsubramanyam <Ramsubramanyam@infosys.com>,
Atul Kabra <Atul_Kabra@infosys.com>,
Maneesh Jhinger <maneesh_jhinger@infosys.com>
Reviewed by: lukem
2003-10-10 03:13:12 +00:00
dbj
4d76d724b9
calculate "-s size" values after sectorsize has been fully determined
...
extend "-s size" argument to allow negative sizes to represent value to
subtract from diskalbel partition size
2003-10-09 16:23:29 +00:00
yamt
d59161d069
- don't try to write alt super blocks beyond the end of the partition.
...
- flush stdout when printing each super block addresses.
2003-10-09 14:28:34 +00:00
itojun
8612aa8b30
use asprintf David Hill
2003-10-08 20:39:07 +00:00
itojun
eb48d1d3cb
plug memory leak. David Hill
2003-10-08 20:36:25 +00:00