Commit Graph

2686 Commits

Author SHA1 Message Date
fredette
46d320c7db The sun2 also requires partitions in integer cylinders. 2001-12-14 23:36:25 +00:00
bouyer
740dbf0d62 Add a -l (autoload) flag. For multivolume dumps, this makes dump eject the
tape when a volume is full, and try to reopen the tape drive for 2 mn.
To be used with tape changers which load the next tape when the current one is
ejected.
While I'm there fix eject handling for remote tape.
2001-12-14 14:43:33 +00:00
reinoud
994f1fb3f6 Remove `const' attribute from writelabel prototype and function to make it
compile again on Alpha.
2001-12-13 13:52:13 +00:00
lukem
c00b68cf31 clamp bsize to MAXBSIZE 2001-12-13 06:31:31 +00:00
lukem
b38676bc97 constrain bsize and fsize to MAXBSIZE 2001-12-13 06:29:15 +00:00
tv
8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
bgrayson
60174aaabf Fixed minor typo in example for cksum /tmp/rc 2001-12-11 15:46:26 +00:00
bgrayson
5a5f9c9c20 Removed 'chmod +x cvs.sh' from instructions -- the script is now installed executable by the Makefile 2001-12-11 15:44:11 +00:00
bgrayson
e87372ade5 Changed Makefile to install scripts as executable (SCRIPTS, not as FILES), and
also did name change on them to preserve .sh suffix
2001-12-11 15:39:10 +00:00
bgrayson
3952d2905e Renamed so that .sh suffix is not stripped on install 2001-12-11 15:35:53 +00:00
wiz
552c88dee6 Lots of grammar fixes and other slight improvements. 2001-12-10 23:57:48 +00:00
martin
b7af7aeccd Move /usr/sbin/pppoectl to /sbin/pppoectl, so we can call it from
ifconfig.pppoe* files.

Rename the source directory and files to match the primary purpose
of this utility - probably noone is using this for ISDN now anymore,
as isdnd has simpler ways to acomplish the same.
2001-12-10 17:22:09 +00:00
scw
61551fba00 Fix a `parameter shadows global variable' warning spotted by new-toolchain. 2001-12-07 23:12:33 +00:00
wiz
ed5ba510c2 One '\' too many. 2001-12-07 19:50:20 +00:00
wiz
d318231f3d Sort options. Improve english in DIAGNOSTICS.
[Pointed at this file by augustss.]
2001-12-05 15:03:27 +00:00
lukem
d121c52699 enable WARNS?=2 2001-12-05 05:50:22 +00:00
ad
3c1dbe4aee Fix typo; pointed out by Gregory McGarry. :-) 2001-12-04 09:56:31 +00:00
gmcgarry
d4ff414a7d Update for new HP devices. Add some others while here.
Pointed out by Andrew Doran.
2001-12-04 04:31:56 +00:00
bjh21
822cc4efe2 Rather than making FileCore boot block support conditional on __arm32__, make
it conditional on USE_ACORN, and define that if MACHINE is arm26 or acorn32.
This is less than optimal, and maybe we should define it for all ARM systems,
but then disklabel handling across architectures is generally a mess at the
moment.
2001-11-29 23:08:53 +00:00
pooka
633273af12 Add word "WARNING" when complaining about swap being world-read/writeable
to clarify that this was not an error condition and that swap was indeed
added despite the problem.
2001-11-26 15:23:38 +00:00
perry
96aece1560 Note in far more places that -B is only supported on some platforms. 2001-11-24 18:30:59 +00:00
simonb
bd2791dcde Wrap a long line, some other minor KNF. 2001-11-22 23:24:44 +00:00
wiz
1fd7eeefcd "than" instead of "then". 2001-11-21 19:14:19 +00:00
lukem
6a8524d62e - For mount_mfs, always ignore the `special' field and just fake up
the label instead. The previous change to use opendisk() prevented
  this from working with special fields such as `/dev/wd0b', and this
  new method is arguably cleaner anyway. Fixes [misc/14654]
- Don't bother supporting -T for mount_mfs anymore, since it's
  superfluous. The option still works (for compatibility reasons), but
  it's just ignored and not documented anymore.
- Use an RPM of 10000 instead of 3600 for the fake label (why not :-)
2001-11-21 15:23:40 +00:00
minoura
d7835b08b0 Preserve the boot area on x68k. 2001-11-19 13:55:06 +00:00
wiz
940b1a65e3 Improve grammar. Noted by Stoned Elipot. 2001-11-18 23:21:02 +00:00
hubertf
e7d1bd3418 Fix typo (etc/config -> etc.config)
Pointed out by Robby Griffin <sysadmin@terc.edu> in  PR 14603.
2001-11-18 03:50:53 +00:00
lukem
4ad1f9f2ae this doesn't need <ufs/ufs/inode.h> 2001-11-16 14:33:37 +00:00
wiz
83634e4e14 Slightly improve markup in two places, sort sections. 2001-11-16 12:10:06 +00:00
wiz
49e6214ed8 Punctuation fix, sort sections, lose a .Pp. 2001-11-16 12:09:19 +00:00
wiz
7dd6e69db4 Punctuation fix, sort sections, sort SEE ALSO. 2001-11-16 12:08:49 +00:00
wiz
e8e51dce31 Sort sections, use standard headers, sort SEE ALSO. 2001-11-16 12:08:19 +00:00
wiz
d80de2cabd Sort sections, use .Ic for a non-NetBSD program instead of .Xr. 2001-11-16 12:07:43 +00:00
wiz
13dc9abfef Sort SEE ALSO, use .Pp for paragraphs. 2001-11-16 12:06:32 +00:00
wiz
6e5e605c25 Add space before ..., lose a .Pp. 2001-11-16 12:06:01 +00:00
wiz
f8379a3c43 Simplify markup, use .Nx, sort sections. 2001-11-16 12:05:38 +00:00
wiz
39304f2bbb Punctuation fixes, sort SEE ALSO, use an mdoc macros instead of two man macros. 2001-11-16 12:05:00 +00:00
wiz
bc9fb62163 Remove unnecessary .Pps, use .Nx for NetBSD, sort sections. 2001-11-16 12:03:54 +00:00
wiz
bfda038ed2 Sort SEE ALSO, sort sections. 2001-11-16 12:03:20 +00:00
wiz
2e3c8045a5 Punctuation fixes, sort SEE ALSO, sort sections, use standard headers. 2001-11-16 12:01:57 +00:00
wiz
8d4a9e3b24 Use .Pp for paragraphs, sort sections, use standard headers, and a markup fix. 2001-11-16 12:01:22 +00:00
wiz
59b19c2885 Lose unnecessary .Nm argument. 2001-11-16 12:00:10 +00:00
wiz
7c14ef34a9 Punctuation nits, drop a .Pp, use .Nx, use standard headers. 2001-11-16 11:59:47 +00:00
wiz
d7130393cf Punctuation nit, and drop two .Pps. 2001-11-16 11:58:59 +00:00
wiz
66eabe4561 Punctuation nit. 2001-11-16 11:58:28 +00:00
wiz
0d862d5885 Drop empty lines and an unnecessary .Pp, sort sections. 2001-11-16 11:57:51 +00:00
wiz
ca7b306a86 Improve author markup, use standard header. 2001-11-16 11:57:16 +00:00
wiz
957c91939f Drop unnecessary .Pp. 2001-11-16 11:38:35 +00:00
wiz
5cbb6a51be Drop unnecessary .Pp and empty lines. Drop unneeded .Nm argument. 2001-11-16 11:38:15 +00:00
wiz
0c8436d425 Sort sections, use standard headers, slight markup improvement. 2001-11-16 11:37:40 +00:00
wiz
011b3214d5 Sort sections and SEE ALSO. 2001-11-16 11:37:04 +00:00
wiz
8d4080ddcb Drop an unnecessary .Pp. 2001-11-16 11:36:33 +00:00
wiz
217af7b8a1 Use .Nx for NetBSD, drop some unnecessary empty lines, use standard headers. 2001-11-16 11:36:09 +00:00
wiz
bb03964e95 Sort SEE ALSO. 2001-11-16 11:31:30 +00:00
wiz
9608821813 Simplify markup in one place, and sort sections and SEE ALSO. 2001-11-16 11:30:09 +00:00
wiz
5ee6bd0ade Use .Pp for new paragraphs. 2001-11-16 11:29:09 +00:00
wiz
4136eb5c86 Use standard section headers. 2001-11-16 11:27:09 +00:00
wiz
875bfce8db Sort sections, use standard section headers. 2001-11-16 11:26:53 +00:00
wiz
80d1ff493a Sort sections. 2001-11-16 11:21:37 +00:00
wiz
dbb255dc26 Don't abuse -unfilled for -literal; sort sections, sort SEE ALSO, drop
lots of unnecessary .Pps.
2001-11-16 11:06:46 +00:00
wiz
4ce43ae0cd Whitespace nits 2001-11-16 10:25:42 +00:00
wiz
c8fa8a4d7a Sort SEE ALSO, whitespace nits. 2001-11-16 10:11:41 +00:00
lukem
d1931f4f62 - Without -F, use opendisk(3) to find the raw device
- With -F, relax the restriction that the filesystem must be a regular file
2001-11-16 09:58:16 +00:00
lukem
0c249d8f04 - changes to -F semantics:
- remove the restriction that filesystem must be a regular file
	- don't try and read a disklabel
- use `p' (instead of `h') as the index of the last partition
2001-11-16 05:35:40 +00:00
lukem
29d31edd5f relax the restriction on -F that the file system image argument must be a
regular file
2001-11-16 04:41:23 +00:00
lukem
2fa188aaec change -F semantics to treat the argument as a file system image; open it
`as-is' without attempting to determine the device name with opendisk(3),
and don't attempt to read a disklabel.
2001-11-16 04:25:42 +00:00
christos
4c4a8c2fb6 Make route exit with a non-zero error code when operations to the routing
socket fails. eg, running route add 1.2.3.4 5.6.7.8 as non root.
2001-11-15 21:25:08 +00:00
lukem
fbab1e72fb move guts of non-F special parsing into separate openpartition() func 2001-11-09 11:48:39 +00:00
lukem
e48d7547e2 Change -F from "special must be a regular file" to "special can be any type,
and don't attempt to do any file name translation (e.g, search in fstab)".

In the non -F case, search for special in fstab. If found, convert fs_spec
to a raw device name. In any case, use opendisk(3) to open the device.
2001-11-09 09:05:51 +00:00
lukem
3c367dcbb0 use MAXPATHLEN instead of 32 as the size of the rawbuf 2001-11-09 07:50:19 +00:00
christos
522d8e170c PR/14498: Wesley Chen: Support symbol loading on elf lkms. 2001-11-08 15:33:15 +00:00
lukem
c3e4fa53d9 if sysctl kern.root_device is availalbe, use that the default device
(rather than /dev/rwd0d).  display the disk device used when printing
the partition table.
2001-11-07 14:50:32 +00:00
lukem
9bf29de9d5 fix many -Wshadow warnings 2001-11-02 05:57:38 +00:00
lukem
6c07f34b54 fix -Wshadow warnings 2001-11-02 05:44:46 +00:00
lukem
04d5555436 fix -Wshadow warning 2001-11-02 05:33:21 +00:00
lukem
cbbd79f700 fix -Wshadow warnings 2001-11-02 05:30:56 +00:00
lukem
895db4cb83 fix -Wshadow warnings 2001-11-02 03:57:25 +00:00
lukem
fd87fe6aaa fix -Wshadow warnings 2001-11-02 03:51:48 +00:00
lukem
5b5d0d23b8 oops, remove temporary comment 2001-11-01 08:21:57 +00:00
lukem
7f675a25b7 fix -Wshadow warnings 2001-11-01 08:21:07 +00:00
lukem
3a17632dfb remove arg name in prototype decl 2001-11-01 08:18:01 +00:00
lukem
7623928b3a fix a couple of -Wshadow warnings 2001-11-01 08:06:57 +00:00
lukem
4c4307e3ce fix -Wshadow warnings 2001-11-01 08:03:03 +00:00
lukem
fa02ec4ccb fix a -Wshadow warning 2001-11-01 07:48:08 +00:00
lukem
3d6fc56715 fix -Wshadow warning by moving "int version" from global to main() scope 2001-11-01 07:44:05 +00:00
lukem
d3656d428d fix a couple of -Wshadow warnings 2001-11-01 07:39:38 +00:00
lukem
4475e1747e fix a couple of -Wshadow warnings 2001-11-01 07:31:22 +00:00
lukem
058fbb840d opendisk(3) checks the device type for us 2001-11-01 07:04:18 +00:00
jdolecek
d66dfc84d0 Xref disklabel and mention that mbrlabel can help setup the disk label
Note that NTFS partition is no longer accessible in NetBSD once
it's marked 'dynamic' in MS Windows XP.

Pointed out by Christos.
2001-10-31 21:04:45 +00:00
jdolecek
1295376b01 Couple changes, mainly to address stuff raised recently on port-i386
('Does i386 support NTFS5 now?'):

add a note both NTFS4 and NTFS5 are supported
reformat the Limitations a bit
assert the write support is not really useful, and should not be used
add a BUGS section, note missing stuff for the write support to be useful,
and the disk label thing spotted by Christos Zoulas
2001-10-31 19:16:36 +00:00
wiz
f1dd0210ab Sort sections, whitespace nits. 2001-10-30 07:28:22 +00:00
kml
1d2a82ea66 Added descriptions of the new sysctls for controlling the disposition
of IPv4 routes added via redirects, rediraccept and redirtimeout.
2001-10-30 06:43:21 +00:00
lukem
99147a7648 remove #include <ufs/ufs/quota.h> where it was just to appease
<ufs/ufs/inode.h>, since the latter now includes the former.  leave the former
in source that obviously uses specific bits of it (for completeness.)
2001-10-26 05:56:06 +00:00
lukem
ca2a1a8c3b in msg(), don't call va_list using functions twice in a row without calling
va_start() in between; reorder code so that we call vsnprintf and then
just fputs that buffer. crank the size of lastmsg whilst we're here
problem noted by Hideo Saito in [bin/14348].
2001-10-25 08:04:27 +00:00
atatat
70478477a0 Clean up the code a bit so that the ioctl() return value is always
compared to -1 (instead of <0 or !=0) and always to call err() with
EXIT_FAILURE instead of sometimes using 1.
2001-10-24 22:10:15 +00:00
atatat
cdc6282274 Provide a short output format for the get command that only prints the
address corresponding to RTA_GATEWAY, or nothing if it doesn't exist.
Modify the exit value of route depending on this, so that one can do
stuff like:

#!/bin/sh
gw=`route -sn get default 2>/dev/null`
if [ -z "$gw" ]; then
	echo no default route
	exit 1
fi
ping -w1 -c1 $gw >/dev/null 2>&1
if ! route -sn get $gw >/dev/null; then
	echo default gateway not responding
	exit 1
fi
echo default gateway is at $gw
2001-10-24 18:40:16 +00:00
atatat
2e4d1a174e Print a R on reject routes to indicate that they're not normal routes,
and check netmask (or prefix) length as well as the destination
address when determining if a route is a "default" or not.  This means
that the output from 'route show' will no longer say:

	Internet6:
	Destination       Gateway            Flags
	default           localhost          UG
	default           localhost          UG

but instead

	Internet6:
	Destination       Gateway            Flags
	::/104            localhost          UGR
	::/96             localhost          UGR

which makes much more sense.
2001-10-24 16:05:06 +00:00
lukem
8064490359 minor WARNS=2 stuff 2001-10-19 01:16:37 +00:00
christos
b77fb2a456 PR/14286: reed@reedmedia.net: Explain default. 2001-10-18 13:42:32 +00:00
atatat
39c4f538a3 Use the new sh script instead of the (now defunct) pl one 2001-10-15 17:34:50 +00:00
uch
0cbd019fc3 playstation2 support 2001-10-15 16:22:50 +00:00
wiz
699d58b177 Whitespace fixes, sort SEE ALSO, sort sections. 2001-10-15 13:43:06 +00:00
blymn
a152a6a92a Add the capability for dump to print timestamps on all informational
messages.
2001-10-15 13:25:33 +00:00
lukem
9f95bf0782 fix error reporting in rdfs() and wtfs() 2001-10-14 01:38:53 +00:00
atatat
04fb6977ef Install the shell script instead of the perl script 2001-10-12 16:19:30 +00:00
atatat
c9281cb7dd Bye bye, perl script. 2001-10-12 16:19:05 +00:00
atatat
149865a4d7 Remove the perl script from the mount_portal example for cvs and
replace it with a regular sh script.
2001-10-12 16:15:26 +00:00
atatat
9305145646 Add another example that shows how to map a cvs server into your local
file system so that you can pull random files out of it easily.
2001-10-11 18:41:11 +00:00
yamt
01f308933f - use IP_MAXPACKET instead of 65535.
- change max packet size from 65468 to 65467(= IP_MAXPACKET-60-8).
2001-10-10 15:58:04 +00:00
yamt
d549add37f - fix overrun bug.
- bump bufsize to fix "packet loss" with large packet.
2001-10-09 19:17:02 +00:00
lukem
7ca2a2b569 cleanups suggested by simonb:
- rename "format.c" -> "pack_dev.c", "mknod.h" -> "pack_dev.h"
- make the private stuff in pack_dev.c static
2001-10-08 04:45:29 +00:00
lukem
da188f40f2 improve arg clamping 2001-10-08 04:25:00 +00:00
lukem
a1dcc3ea23 - move parsing of format type and format handlers into format.c, for easier
use in other programs
- do a bit of KNF whilst here
- enable WARNS=2
2001-10-08 04:20:43 +00:00
mycroft
7e21660e42 Fix a formatting error. 2001-10-08 01:40:43 +00:00
bjh21
6ef5a92fbb When dumping the routing table, use getnameinfo() to print link-layer
addresses rather than doing it ourselves and falling back to link_ntoa().
2001-10-06 18:32:45 +00:00
bjh21
3821a9917d Use getnameinfo() to format AF_LINK addresses again. 2001-10-06 17:05:29 +00:00
bjh21
daa1982d02 Revert last change. getnameinfo() AF_LINK support is going away until I can
make it lint-clean.
2001-10-05 20:50:19 +00:00
bjh21
10237f4efc Use getnameinfo() to format AF_LINK addresses rather than doing it ourselves. 2001-10-04 23:12:22 +00:00
oster
6c2d6f6c4f Remove cruft. We no longer need to look into sys/dev/raidframe to
find the needed include files.
2001-10-04 16:03:05 +00:00
oster
541d521a40 rf_configure.c
- remove dependence on stuff in sys/dev/raidframe
 - now rely on <dev/raidframe/*>
 - bring in some needed prototypes for local functions
 - nuke RF_ASSERT's.
 - drag in some needed RF_ERRORMSG's

raidctl.c
 - rely on <dev/raidframe/*>
 - welcome to the New Way of doing RAIDframe #includes.

(No functional changes.)
2001-10-04 16:02:08 +00:00
oster
75d30c8978 Add a pruned-down version of rf_configure.h. First step at disentangling
raidctl files from the hairy .h file mess.
2001-10-04 16:00:37 +00:00
wiz
6494394420 Remove swapoff mention, per misc/14120.
Some whitespace, section name, section order fixes while I'm here.
2001-10-01 23:15:59 +00:00
kleink
d8ad923577 "kernel switch ipforwarding" -> "sysctl net.inet.ip.forwarding". 2001-10-01 10:31:45 +00:00
jdolecek
de45f5a902 couple cosmetic stylistic changes 2001-09-29 21:15:11 +00:00
itojun
04e80984bf remove duplicated line in cmds[]. 2001-09-26 07:20:16 +00:00
oster
91ffb9ffd3 Since this is the only place it's used, nuke RF_DEV2RAIDID and
replace it with DISKUNIT.
2001-09-26 02:59:40 +00:00
wiz
c2370c3f0a Add some \n to error messages. 2001-09-25 00:03:25 +00:00
wiz
ae34c20bb1 Fix a typo and two white space nits. 2001-09-25 00:03:03 +00:00
wiz
4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
lukem
058b690102 the change of calculation of inodes per group in rev 1.52 was far too
aggressive; rework to be a bit less susceptable to round-off error.
now it's likely that the density might not be obtained with a small
filesystem with a large number of inodes (e.g -s 4M -i 1k), but that's
an extremely unlikely corner case that can easily be rectified with
command-line arguments.
fixed provided in private email by Takao Shinohara <shin@sm.sony.co.jp>
should resolve PRs [bin/14049] and [bin/14046]
2001-09-24 08:21:44 +00:00
tv
d63e12815a objcopy -> ${OBJCOPY} 2001-09-22 02:01:13 +00:00
toshii
0ea3ab3e14 Fix a typo which prevented manual keying from working. 2001-09-20 00:01:10 +00:00
ad
9824683b54 - Sync device lists with wsconsio.h.
- Get/set keyclick on keyboards that support it.
2001-09-19 12:45:24 +00:00
lukem
22966108bb add comments to make it clearer what cmpsblks() is doing 2001-09-18 08:38:28 +00:00
thorpej
f7a04ba84f Add tcp4csum-rx and udp4csum-rx commands for interfaces that only
support TCP/UDP checksums on the in-bound direction.
2001-09-17 17:36:06 +00:00
toshii
04f91a6594 Uncomment-out part of FreeBSD code so that we can calculate partition
index from a filename.
2001-09-17 16:26:56 +00:00
assar
1a56bc85de (usage): add -s and -S 2001-09-17 01:40:08 +00:00
wiz
456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
gmcgarry
684c2af799 Prominently provide explanation of who is allowed to mount file
systems.
2001-09-12 21:48:08 +00:00
lukem
fa5157d9fb explicitly set the default compression level to 1 (from the implicit 6),
because it's significantly faster and doesn't use that much more disk space.
2001-09-12 03:14:08 +00:00
lukem
fd08f59ac0 Add "-Z level" to control the compression level that -z uses (which
defaults to -Z 6).  Depending on the relative speed of the CPU
versus disk, "-zZ1" might be faster than no compression at all.
2001-09-12 02:58:29 +00:00
enami
36c88aab99 - Recognize new type `rng'.
- Use getprogname().
2001-09-11 05:52:37 +00:00
pooka
db8658a3b8 * expand device name to raw device, not block device (eg. wd0a -> /dev/rwd0a)
* #ifdef non-relevant FreeBSD slice consistency check
2001-09-10 19:25:35 +00:00
christos
de3ce7e7b1 - Remove old files.
- Port to NetBSD
XXX: *untested*
2001-09-10 18:27:41 +00:00
enami
db33b671a9 Don't punt on really unknown type of device when fetching name of it.
Instead, warn and just print it as ???.
2001-09-08 23:29:05 +00:00
enami
d5b9e6ab8a Cosmetic changes. 2001-09-08 23:20:37 +00:00
mason
44c196b374 The default version created by newfs_lfs without arguments is, in fact, 2. 2001-09-08 03:49:44 +00:00
simonb
3d18c18669 Use the command set/feature *enabled* words when displaying what
command sets and features are enabled.
2001-09-07 16:33:50 +00:00
itojun
3fdd7a9bab upgrade to the latest KAME setkey(8). allows FQDN hostname in commands.
"add localhost localhost esp 9999 -E des-cbc hogehoge" adds two keys,
for 127.0.0.1 and ::1
2001-09-07 04:12:10 +00:00
simonb
cdcbbc115b ANSIfy. 2001-09-07 02:17:30 +00:00