Commit Graph

2666 Commits

Author SHA1 Message Date
martin 3fd75e2cd7 Adapt to new if_sppp.h ioctls.
Add -d option to dump PPPoE session state. XXX need to document this.
2002-01-04 12:23:00 +00:00
lukem 574fa8fb21 remove duplicate MAN= entry 2002-01-04 11:30:33 +00:00
lukem 04e7d8d5fb move mount_mfs(8) into separate man page 2002-01-04 10:47:47 +00:00
lukem 2b8424b54a oops; another minor fix from rev 1.34 noticed by Simon Gerraty 2002-01-04 06:48:49 +00:00
jdolecek b3adaffa36 make sure string_table is initialized to NULL in read_shstring_table(),
so that NULL is returned if .strtab is not found
2002-01-03 21:45:58 +00:00
lukem 4c7a4f8eda don't bother printing a warning about the cylinder group size being
restricted if -c isn't given; it just confuses a user of newfs (and
the cpg info is printed as part of the display anyway), and prints an
unnecessary warning for mount_mfs.
2001-12-31 07:07:58 +00:00
lukem 14fb096dce document that default block-size, frag-size, and bytes-per-inode are
now dependent upon file system size
2001-12-31 02:27:14 +00:00
augustss c6d7884ffd Change how default block size is picked. The default block size is used
if there is no command line option and the disklabel gives 0 as the size.
The default used to be 8k, not the default is picked depending on the
file system size.  FS < 20M gets 4k, <1G get 8k, and >1G get 16k.
The 16k default was suggested by lukem which FreeBSD is using.
2001-12-30 18:49:28 +00:00
mrg c43c746480 fix a typo 2001-12-30 17:42:18 +00:00
lukem 059cb50f9d Revert rev 1.37 (use disklabel value for cpg if -c isn't given), because
we would rather let the "optimal cpg" calculation kick in at this point.
2001-12-30 16:53:00 +00:00
lukem 86c0243f4f Fixes from and/or inspired by FreeBSD:
- Change the default cpg from 16 to 65536, which effectively means
  that the largest allowable value for cpg will be computed if it's
  not specified with -c or in the disklabel for that partition.
  This is much more convenient for users.
- Improve the description of the defaults for various options
2001-12-30 16:47:55 +00:00
lukem 9dcaec9cca Add -a to "auto-size" the tape, rather than relying upon other options
to define the tape size.  Requires the tape driver to either return ENOSPC
at end of media, or 0 when a write is attempted (such as the "early warning"
support in st(4) enabled with "mt eew 1").   From FreeBSD.
2001-12-30 04:03:16 +00:00
lukem efcc9a4c9d * Add user-controlled mk.conf variables
- SHLIBDIR	Location to install shared libraries if ${USE_SHLIBDIR}
			is "yes".  Defaults to "/usr/lib".

	- USE_SHLIBDIR	If "yes", install shared libraries in ${SHLIBDIR}
			instead of ${LIBDIR}.  Defaults to "no".
			Sets ${_LIBSODIR} to the appropriate value.
			This may be set by individual Makefiles as well.

	- SHLINKDIR	Location of shared linker.  Defaults to "/usr/libexec".
			If != "/usr/libexec", change the dynamic-linker
			encoded in shared programs

* Set USE_SHLIBDIR for libraries used by /bin and /sbin:
	libc libcrypt libcrypto libedit libipsec libkvm libm libmi387
	libtermcap libutil libz

* If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so*
  to ${_LIBSODIR}/${LIB}.so* for compatibility.

* Always install /sbin/init statically (for now)


The net effect of these changes depends on how the variables are set:

  1.)	If nothing is set or changed, there is no change from the
	current behaviour:
		- Static /bin, /sbin, and bits of /usr/*
		- Dynamic rest
		- Shared linker is /usr/libexec/ld*so

  2.)	If the following make variables are set:
		LDSTATIC=
		SHLINKDIR=/lib
		SHLIBDIR=/lib
	Then the behaviour becomes:
		- Dynamic tools
		- .so libraries used by /bin and /sbin are installed to /lib,
		  with symlinks from /usr/lib/lib*so to -> /lib/lib*so
		  where appropriate
		- Shared linker is /lib/ld*so

  3.)	As per 2.), but add the following variable:
		USE_SHLIBDIR=yes
	This forces all .so's to be instaleld in /lib (with compat
	symlinks), not just those tagged by their Makefiles to be.
	Again, compat symlinks are installed
2001-12-28 01:32:37 +00:00
lukem 8975510a51 Fixes from FreeBSD:
- Fix error if first tape was write protected.  Fix NetBSD PRs 4754 and 6098.
- Make dump exit codes confirm to manual page.
- Use \a instead of \7 to make noise.
- Fix estimated number of tapes for huge dumps to cartridges.
- Use <sys/queue.h> SLIST_* instead of home-rolled lists.
- Do not exit if unable to read or create /etc/dumpdates.
- Support output (tape) device returning ENOSPC for end-of-media on a write.

Fixes by me:
- Remove unused ddates_in.
- Don't dump core if SIGINFO is received before 1 second has elapsed.
- Only process SIGINFO in current "active" child.
- Don't dump core in -w if dumpdates wasn't readable and ddatev == NULL
- Minor KNF; wrap some lines
2001-12-25 12:06:26 +00:00
lukem 1f19340e88 document more of the debug options 2001-12-25 11:56:14 +00:00
lukem 1c9f606d2a For dump_lfs(8), in getfstab(), only "lfs" (instead of "ufs" or "ffs").
Fix from Minoura Makoto in [bin/10525].
2001-12-24 03:02:34 +00:00
lukem 6de0e99d81 change a lot of the "error" messages to display to stdout instead of
stderr, so that "sysctl -A" output is actually usable.  requested by perry
2001-12-24 01:30:38 +00:00
chs 2981550892 update for changed vm knobs. 2001-12-24 00:49:36 +00:00
lukem b73cca7b92 clean up from time_t -> int32_t change in dumprestore.h 2001-12-23 14:42:22 +00:00
lukem f3017fa83a fix compile issues now that on-tape times are int32_t instead of time_t 2001-12-23 14:40:42 +00:00
lukem 1ab8ecafe7 unifdef sunos 2001-12-23 12:54:53 +00:00
lukem b734f790f5 nuke trailing whitespace 2001-12-23 12:29:55 +00:00
augustss da3c0f78d9 Allow check to proceed with bad backup boot block if we're doing a readonly
check.
2001-12-22 17:25:20 +00:00
lukem e9164a9509 When using the read cache in bread(), ensure that the current (sub)block
isn't past the end of the file system.

Should fix the "spins forever but doing nothing" bug that dump
would occasionally have.
2001-12-22 08:45:36 +00:00
lukem 4720d32cfe - use correct type for minTime in findlru() (size_t instead of int)
- clean up whitespace
2001-12-22 08:05:24 +00:00
lukem 750a014c75 In rawread(), add back a check to ensure that dump doesn't try to read
past EOM and fail with "short read error". This check was part of
traverse.c::bread(), and was removed when that function was migrated
to rcache.c::rawread() as part of the "read cache" functionality.

This should fix the problem with dump barfing on "short read" when "-r 0",
but I'm still debugging the problem where dump gets to a point and
"does nothing" when the read cache is being used.
2001-12-22 07:45:38 +00:00
wiz 02b65f0c5c Sync options with usage. 2001-12-20 20:23:09 +00:00
soren 11c2f93975 Another little mistake, spotted by wiz. 2001-12-20 20:20:38 +00:00
soren dc53bf3cba Sync getopt() / man page with actual getopt options. 2001-12-20 20:10:33 +00:00
fvdl b2e85b4526 Don't use the pendinginodes and pendingblocks fields in alternate
superblock comparison.
2001-12-19 10:05:20 +00:00
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