Commit Graph

881 Commits

Author SHA1 Message Date
perry b1998ea4df fix some nits from SAITOH Masanobu, pr-3149 1997-01-27 15:01:58 +00:00
mikel 8cd71f8b62 eliminate duplicate paragraph and fix typos; PR misc/3128 1997-01-23 06:34:39 +00:00
mikel 7f50ef911a eliminate possibility that execle() will be called with one too many
arguments.
1997-01-23 05:48:06 +00:00
perry ea9e41ab25 fix .I which should be .Em, from SAITOH Masanobu in pr-3109 1997-01-17 05:04:09 +00:00
perry 7665c8ee25 close pr-2717 from Manuel Bouyer <bouyer@lix.polytechnique.fr>
Replaces reference to hand patching securelevel kernel variable
with reference to options INSECURE.
1997-01-17 02:56:27 +00:00
perry 5714664cf5 fix pr 2977 -- only try to dump ufs/ffs partitions 1997-01-16 22:00:30 +00:00
cgd 7bd18db5e6 pointer cast fixups for 64-bit cleanliness 1997-01-14 06:47:10 +00:00
lukem 6c8a1cc329 don't call el_parse() if there's no commands (el_parse() now checks this,
but more safety is good)
1997-01-11 06:50:53 +00:00
lukem 5c9d30eb5f the editline(3) man page now exists (but not as libedit(3)) 1997-01-11 05:51:40 +00:00
tls 2ab9ccf105 it's a shame, but since we have no kernel support for kerb NFS (which may or may not be worth having, in the form available to us) this is how I'm closing PR #2469. 1997-01-09 09:43:51 +00:00
veego 21361a6567 Add ipf. 1997-01-08 21:58:34 +00:00
mrg eafab1cbd3 ipl -> ipfilter 1997-01-07 11:32:24 +00:00
mrg 3460d5fc46 update this for "pseudo-device ipl" 1997-01-05 14:53:55 +00:00
mrg 4810e839ab initial import of darren reed's ip-filter, version 3.1.2. 1997-01-05 13:06:38 +00:00
mrg b904481502 xref ld.so.conf.5 1997-01-05 12:07:53 +00:00
ws fdbcbfc254 Fix handling of clusters marked bad
Noted by Rafal Boni
1997-01-03 14:32:47 +00:00
mikel dd40c6d884 eliminate valueless return from main(); PR bin/3073. 1997-01-03 07:10:52 +00:00
mikel ca9a02b5b1 oops, missed a comma. 1996-12-27 05:53:53 +00:00
mikel d894f16336 fix reboot(8) xref 1996-12-27 05:51:14 +00:00
cjs ea04966433 Fix typo: PR bin/3059 1996-12-26 17:35:35 +00:00
mikel 8a207c6ea3 eliminate obsolete reference to mkfs(8);
from Klaus Klein <kleink@layla.inka.de>.
also fixed buggy -a flag lines, reference fsck_ffs(8) instead of fsck(8).
1996-12-26 04:37:18 +00:00
mikel 875986c568 eliminate obsolete references to mkfs(8);
from Klaus Klein <kleink@layla.inka.de>
1996-12-26 04:33:34 +00:00
mikel aff1970d41 remove mkfs(8) xref; PR 3041 1996-12-24 02:32:25 +00:00
cgd d9842e70b9 declare the keywords structure 'extern' in keywords.h, to avoid a common defn. 1996-12-16 19:53:02 +00:00
thorpej 8e41017b18 After passing the terminating NULL for the argv list to execle(),
don't forget the (NULL) envp.
From Lennart Augustsson <augustss@cs.chalmers.se>, PR #2737.
1996-12-11 04:05:21 +00:00
christos fa1d4fc6d7 PR/3002: bug in my previous commit. 1996-12-07 19:09:11 +00:00
christos 468b0bc4a8 PR/2975: fsck lies to children about their program name
PR/2979: fsck is not smart enough about filesystems not in /etc/fstab
1996-12-05 18:30:23 +00:00
mycroft 728e20590f Make sure to byte-swap all of the relevant fields; especially c_flags. 1996-12-04 03:54:04 +00:00
cgd bcaa5b7b1c When initializing 'fssize,' the size of the data buffer to be used when
writing data to the file system, if the "optimal" file system I/O
operation block size is less than TP_BSIZE, leave fssize alone (i.e.
at its default setting of MAXBSIZE).  This was causing restore's
stack to be trashed, because the end-of-buffer checking/flushing code
around line 680 would never notice that the buffer was full (because
it'd be comparing a buffer segment index, which would always be >= 1, to
fssize / TP_BSIZE, which could be zero in that case), and would keep
filling and filling and filling...
1996-11-30 18:31:29 +00:00
cgd a0c5caa042 patches from Tom I Helbekkmo <tih@nhh.no> to deal with type-size issues,
so this works (better, at least) on 64-bit machines (e.g. alpha).
1996-11-30 18:01:52 +00:00
mikel 957e75132e Fix typo; PR misc/2956. Also cleaned up .Nm usage. 1996-11-26 06:44:36 +00:00
pk b82932df85 sparc uses new savecore.c 1996-11-18 11:20:16 +00:00
gwr 6b2707d575 Note that distrib/utils/x_route uses these files. 1996-11-15 19:10:38 +00:00
gwr 786940dfb1 Remove comment that was no longer applicable. 1996-11-15 18:57:21 +00:00
gwr 13410f03ee As discussed some time ago, add a "show" sub-command.
Also allow compilation with -DSMALL to ommit support for
non-essential protocols (i.e. when built into a ramdisk).
Use a less hack-ish way to generate keywords.[ch] and just
check in the result (helps ../../distrib/utils/x_route).
1996-11-15 18:45:23 +00:00
gwr a54521537f As discussed some time ago, add a "show" sub-command.
Also allow compilation with -DSMALL to ommit support for
non-essential protocols (i.e. when built into a ramdisk).
Use a less hack-ish way to generate keywords.[ch] and just
check in the result (helps ../../distrib/utils/x_route).
1996-11-15 18:01:36 +00:00
perry 6af2a74574 Fix more cosmetic problems -- changed .Nm fsck to just .Nm (thats the
whole point of the .Nm macro), replaced naked "fsck"s with .Nm's,
fixed another "the the", and .Dq'ed the "no" in the -t
description. Note that the description of -t is still ambiguous --
needs to be cleaned up by someone like Christos that actually knows it
well.
1996-11-09 18:43:22 +00:00
lukem 8c7e6f0d43 fixed typos, from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp> in [misc/2924] 1996-11-09 01:49:54 +00:00
cgd b292e6cefd make ping(8) print out statistics when given a SIGINFO. 1996-11-06 20:42:14 +00:00
thorpej 12afd4fc11 - If rcmd() fails, don't do any of the setsockopt() calls.
- Since the TCP_MAXSEG setsockopt can only descrease the MSS, and never
  increase it, do an IP_TOS:IPTOS_THROUGHPUT setsockopt instead, since
  dump is a bulk transfer.
Submitted by Bill Fenner <fenner@parc.xerox.com>.
1996-11-05 23:59:01 +00:00
christos f95a0b9a4d Fix PR/2884: Change default for nfs mounts to not do a connect on the
socket. Add option -C to force a connected mount. Now option -c is still
there, but it is the default. Maybe amd should be changed similarly.
1996-10-27 21:18:03 +00:00
lukem 9ab7d8e652 use unique temporary files for all operations except 'r' and 'R', which still
base temp files on dumpdate. explain why in the man page. fixes [bin/2870]
1996-10-24 04:01:10 +00:00
cgd c35f913835 Fix typo in last commit 1996-10-24 00:12:50 +00:00
cgd da8bebb896 document the 'nocoredump' mount option, which sets the MNT_NOCOREDUMP
mount flag, disabling core dumps on the file system.
1996-10-23 22:56:20 +00:00
cgd fa1bf894fd recognize the 'nocoredump' mount option as a standard option (supported by
all file system types).
1996-10-23 22:51:08 +00:00
cgd 26902ec586 recognize MNT_NOCOREDUMP and print the 'nocoredump' flag for file
systems which have MNT_NOCOREDUMP set.
1996-10-23 22:50:05 +00:00
cgd c1eeddcff9 this file system (according to its source) supports MNT_UPDATE. Therefore
the mount program must recognize the 'update' option.
1996-10-23 22:46:16 +00:00
christos 1b51e8821e Fix varyadic non ansi functions. 1996-10-22 16:57:51 +00:00
christos b3e604c22a - sort and remove unused options.
- If no filesystem is specified or an incorrect option, print usage information
1996-10-22 16:35:04 +00:00
christos 3cd14137ee Update this to reflect reality after the fsck/fsck_ffs split. 1996-10-22 16:32:44 +00:00
christos eb7ef0a925 - Move some pieces from the fsck_ffs manual page that are appropriate for
fsck now.
- Correct the usage.
1996-10-22 15:30:56 +00:00
thorpej cdc9144332 Add missing '}', from David Carrel <carrel@ipsec.com>, PR #2873. 1996-10-20 21:59:36 +00:00
thorpej 575dc254e0 Remove the redundant copy of this file.
Suggested by David Carrel <carrel@ipsec.com>, PR #2872.
1996-10-20 21:55:14 +00:00
perry 7bc26fc852 Remove #ifdef tahoe conditionals. We have no tahoe port. There is
still a big #if vax in this file which should be removed if possible --
#ifdef MACHINE stuff in mi code is bad.
1996-10-18 07:16:02 +00:00
thorpej 7f9ea0f2ed Use ${INSTALL}. 1996-10-18 05:45:01 +00:00
cgd 313e12dec4 clean up and add a fair bit of text. document -f (and the fact that it's
ignored).
1996-10-17 20:41:24 +00:00
cgd 139fcefc1f include -f in usage, removed 'v' from getopt string since it's not handled 1996-10-17 20:29:53 +00:00
perry c603ec4609 Remove boot_tahoe.8. We have no tahoe port. 1996-10-17 01:05:57 +00:00
perry 0517d113dd RCSid Police 1996-10-16 15:41:06 +00:00
leo d548c05876 Fix typo. 1996-10-15 09:16:20 +00:00
leo c22aea7778 Be a bit more exact about when the bootloader decides to start NetBSD. 1996-10-15 09:14:32 +00:00
thorpej 7e0782662e Add a chlen command, to change the length/size of an inode. From FreeBSD. 1996-10-11 20:22:43 +00:00
thorpej 519bef46ae Fix a couple of glitches:
- s/fsutil.o/fsutil.c/ on a SRCS line.
	- Don't need preen.c
1996-10-11 20:20:42 +00:00
thorpej 2402aaa614 Bug fix from Kirk McKusick <mckusick@McKusick.COM>:
Fix a bug in fsck_ffs where if a directory somehow develops a hole
(that is a block pointer that has a value of zero), fsck would give the
filesystem a clean bill of health, but the kernel would panic when
accessing the directory with the hole. Fsck now checks for holes
in directories.  If found in preen mode, fsck fails.  In manual
mode, it can be directed to shorten the directory to the beginning of
the hole. A  more complete solution would be to allocate a block to fill
the hole. However, this is a lot more work for a `cannot happen' error,
so the extra effort seems unwarranted.
1996-10-11 20:15:46 +00:00
cgd 5dd208e6fc u_long -> u_int32_t when dealing with address lists returned by the resolver. 1996-10-07 22:33:15 +00:00
christos c9ec66c20b Accept -f flag, but do nothing with it. 1996-10-03 20:09:44 +00:00
christos 6c3ecd5300 Document -f flag. 1996-10-03 20:08:29 +00:00
christos c623b74b84 - Null terminate the argv vector [from ws]
- Dynamically allocate the argv vector
- Add -f global flag [from ws]
1996-10-03 20:06:30 +00:00
christos a1ba72f394 PR/1551: clarify usage in manual page
PR/2452: add -t option to print label in disktab(5) format.
Misc cleanups...
1996-10-02 13:49:44 +00:00
cgd 0b10619181 make datas item copied out from kernel (panicstr) and/or used as kvm pointers
(panicloc) be 'long's, not 'int's.
1996-10-01 18:21:48 +00:00
cgd d657ae260c add alpha to the list of ports that use new savecore 1996-10-01 14:42:31 +00:00
christos 60e2d41cb1 Make this work after the fsck changes. 1996-09-28 19:30:35 +00:00
christos 195da734cb Fix typo. 1996-09-28 19:23:29 +00:00
christos ef1bd36baf Allow for an extra argument needed by quotacheck. 1996-09-28 19:21:41 +00:00
christos 4df3bfced1 Update for newer preen interface. 1996-09-28 19:20:44 +00:00
thorpej 8e6bc9ed5f Correct spelling of `successful'.
From Peter Seebach <seebs@solon.com>, PR #2783.
1996-09-28 15:30:08 +00:00
christos c1a92bcb82 This broke when preen.c moved from fsck_ffs to fsck. Update and cleanup. 1996-09-27 23:25:34 +00:00
christos a0c84e7de2 util -> fsutil 1996-09-27 23:22:50 +00:00
christos c5d8ca200f - util.h -> fsutil.h 1996-09-27 22:45:10 +00:00
christos 7dfca7604a - Rename util.c and util.h to fsutil.c and fsutil.h to avoid conflict with
<util.h>
- Change checkfstab so that the checkit function takes the name of the
  mount point too (needed by quotacheck).
- Remove globals debug, verbose and preen
1996-09-27 22:38:37 +00:00
cgd 46243af406 fix up a debugging printf (was given its args in the wrong order), and
allow "ufs" in /etc/fstab to indicate MOUNT_UFS == MOUNT_FFS (for backward
compatibility).
1996-09-27 21:51:03 +00:00
thorpej 5d6afee55f Use snprintf() rather than sprintf(). 1996-09-27 03:23:33 +00:00
thorpej 6c2fa7eac7 Back out last change (and re-open PR); the patch is incomplete, and
I realized it _just_ as CVS checked the file back in.
1996-09-27 03:15:00 +00:00
thorpej f864e10c5f Make unique temporary file names.
From Luke Mewburn <lukem@supp.cpr.itg.telecom.com.au>, PR #2544.
1996-09-27 03:07:05 +00:00
christos df34c6063d explicitly enumerate the ripv1 fields. 1996-09-24 17:00:27 +00:00
christos 4d3fba5988 - resolve conflicts
- try to follow rcsid style more closely
- fix rn_walktree callback routine signatures.
1996-09-24 16:24:12 +00:00
christos 7311bcb20e Latest version of routed(8) from Vernon Schryver <vjs@sgi.com> 1996-09-24 15:11:33 +00:00
ws 82cdedc3cd Fix delete() call in dir.c differently than Christos' way.
Require at least one filesystem as program argument.
Update man page to reflect the latter.
1996-09-24 13:17:18 +00:00
christos ab3aefa822 Put fsck back. 1996-09-23 16:31:16 +00:00
christos 442314ab53 - use error printing code from fsck(8)
- remove fstab walking code
- add missing prototypes
- add missing argument in dir.c near "Truncate", where delete() was being
  called with fewer args. I think the missing argument should be a zero,
  but Wolfgang should check...
1996-09-23 16:27:56 +00:00
christos 5528d37484 - fixed all printf formats [there were a lot of %l? <-> %? mistakes]
- added missing prototypes, and made local functions static
- removed parallel preening code; this is part of fsck(8)
- use printing utilities from fsck(8)
- Makefile does not make links to fsck and fsck.8
- removed -l maxparallel option. It has no meaning anymore.
1996-09-23 16:18:31 +00:00
christos fdf6ea6c50 - added -T fstype:fsoptions per cgd's suggestion.
- handle parallelism in preening here using the original preening code from
  fsck_ffs.
- move common code from fsck_ffs and fsck_msdos here.
1996-09-23 16:11:32 +00:00
scottr b9656d4793 Since the filesystem is mounted on the block device, we need to use
the character device instead.  Closes PRs 897, 994, 2719, and 2769, but
somewhat differently.
1996-09-21 06:08:16 +00:00
cgd cec83b8146 declare the variable "bad", used to hold errors, as a long, so it can
safely be xdr_long()ed.
1996-09-19 04:25:08 +00:00
ws 7918e50abb Fix null pointer derefernce
Fixes PR#2765. Thanks David.
1996-09-17 15:34:05 +00:00
mrg ed46fe3a8e only log the bootstr if it exists. 1996-09-16 18:09:34 +00:00
mycroft 6dbfdb34f7 Clear the sin_zero fields explicitly. 1996-09-16 17:22:04 +00:00
christos 74d9e3de3f Document -p (preen) option. If there are no filesystems specified on the
command line, get them from /etc/fstab when we are preening.
1996-09-11 20:35:14 +00:00
christos 2842b1a353 Fix gcc warnings. 1996-09-11 20:31:24 +00:00
christos 80411b3382 New version of filesystem independent fsck(8) program similar to mount(8). 1996-09-11 20:27:11 +00:00
mycroft f5b5efa5d5 Update to match kernel changes. 1996-09-08 14:37:39 +00:00
explorer 22018a843b Reference the new sl(4) page 1996-08-10 21:26:42 +00:00
explorer a26a090a50 Fix disklabel to deal with some syntax errors a little better.
Mostly, when someone specifies a partition entry like:

  c:  1295850         0
or
  g:  1295850         0    4.2BSD

disklabel would dump core.  Now it generates a warning like it should
in the first case and complains about too few fields in the second.

Perhaps I should just default to unused in the first case, but this prevents
core dumps.  (pr bin/2659)
1996-08-10 18:54:48 +00:00
explorer ddcb18b00b Don't display cylinder comments if the number of cylinders is zero. This
closes pr bin/2683.
1996-08-10 17:59:01 +00:00
mycroft 408ead452e Make sure to fill in the whole sockaddr_in when sending a discovery packet. 1996-08-10 02:37:41 +00:00
thorpej 8d1a5585e8 Add a manual page link from routed(8) to rdisc(8) as suggested by
Giles Lean <giles@nemeton.com.au> on the tech-net@NetBSD.ORG mailing
list.  The rationale for this is that folks may be used to rdisc(8)
or in.rdisc(8) on other systems, and may not realize that NetBSD
implements ICMP Router Discovery in the routed(8) program.
1996-08-10 01:48:41 +00:00
thorpej fc1a524603 - Finished up merge.
- Add some prototypes and definitions for types as necessary,
  wrapped in __NetBSD__ to maintain portability.

- Explicit size types in structures that go out the wire.

- RCS id police.
1996-08-10 01:28:58 +00:00
thorpej b1e0bd39e1 A leaner, meaner routed(8), implementing RIPv1, RIPv2, and ICMP Router
Discovery, courtesy of Vernon Schryver <vjs@sgi.com>.  Thanks!
1996-08-10 01:08:06 +00:00
mrg a9f27985cf use the SunOS derived RB_STRING. 1996-08-10 00:20:58 +00:00
mrg 74693079c6 update for new reboot(2). 1996-08-09 10:32:11 +00:00
pk 6fcba07ce4 Update. 1996-07-03 22:38:37 +00:00
thorpej 648aed921f RCS id police. 1996-07-03 03:28:09 +00:00
jtc e6f7d4e4c5 Add '-m' to usage string; Fixes PR #2580 1996-06-30 22:30:32 +00:00
pk b449415724 On the sparc on an extra DIOCWDINFO after writing to the raw device. 1996-06-29 18:44:11 +00:00
pk 458252ce61 Allow display and editing of partition size & offset fields in
<cyl/track/sector> format. This format is always excepted on input
(`-e' and `-R'); to display it use `-C'.
1996-06-29 15:50:18 +00:00
pk c047ffa9e6 Allow display and editing of partition size & offset fields in
<cyl/track/sector> format. This format is always accepted on input
(`-e' and `-R'); to display it use `-C'.
1996-06-29 15:50:16 +00:00
leo 5e49244ee9 Add the manual page. 1996-06-27 11:07:55 +00:00
thorpej 670604517a Add boot_x68k.8 to the list of man pages to install; the distrib sets
expect it.
1996-06-26 05:22:58 +00:00
leo 4982d25253 If kvm_dump_mkheader() returns 0, simply state 'no core dump' instead
of logging and error.
1996-06-23 20:30:39 +00:00
oki 22abd6252f x68k system bootstrapping procedures. 1996-06-15 18:54:22 +00:00
mycroft 96dea9e6ca Use a different tree-walking algorithm in propagate(). 1996-06-11 07:07:52 +00:00
thorpej 19ae2142e3 Discard setgid privelidges if not reading the running kernel, as suggested
in PR #2485 from Mike Grupenhoff <ashmir@umiacs.umd.edu>.
1996-06-06 23:34:39 +00:00
mrg 9be9a14c1a update to reality. from mike long (pr#2517) 1996-06-06 15:23:47 +00:00
ws 25e3d62e87 Don't allocate data structures for non-directories
Free any data structures when finishing a check (at the latest)
1996-05-28 19:51:11 +00:00
mrg 4c236e4e33 sparc uses edlabel also. 1996-05-28 01:54:32 +00:00
leo 63e835ebd6 Some additions needed for the atari. Also use the getmaxpartitions() and
getrawpartition() functions from libutil.
1996-05-27 20:44:03 +00:00
leo 83b266c3ab Atari also uses edlabel. 1996-05-27 20:38:21 +00:00
ws a89a16b50d Check return values of malloc
Generate full pathnames only on request
Minor cleanup, RCS Ids in .h files
1996-05-25 17:09:43 +00:00
mycroft 5c78d726e4 File sizes in FFS are u_int64_t. 1996-05-25 09:57:36 +00:00
fvdl ea35d11c99 Be stricter when checking NQNFS and version combinations. Incorrect combinations
of these flags were previously possible when falling back from a v3 -> v2
mount, and could confuse the system.
1996-05-23 22:52:49 +00:00
mrg 8849e59abd make some errors more verbose. inspired from pr#1509 1996-05-22 03:50:06 +00:00
mrg 4db6918d7d fdesc file system does not allow files created in it. pr#941 1996-05-22 00:55:59 +00:00
mycroft 28670f694a Oops; use %x to print out masks, not %d. 1996-05-21 17:36:21 +00:00
mycroft e14f61b1f7 Check fs_[bf]mask, fs_maxfilesize, fs_maxsymlinklen, and fs_q[bf]mask,
since incorrect values may cause the kernel to malfunction.
1996-05-21 17:25:56 +00:00
mycroft 6dc46f6326 Adjust the logic a bit so we `nif' can't overflow. 1996-05-21 16:58:12 +00:00
mycroft 92a822c250 Remove previous (incorrect) change, and tidy up a bit to make it
clearer what's going on.
1996-05-21 15:32:16 +00:00
mrg 8c4136ca25 initalise dino to zero. pr#2098 1996-05-21 12:42:38 +00:00
jonathan c2a1985a50 Support attaching a STRIP line via the "-t strip" flag.
It has been suggested that a separate "stattach" command would be better.
1996-05-19 21:57:39 +00:00
jtk 71b374789d Adjust the base for time estimates to ignore time we spent waiting
for operator input.
enhancements from PR #900
1996-05-18 16:16:17 +00:00
thorpej 37b8aea219 Use getmaxpartitions() from libutil, not a homegrown version. 1996-05-16 07:13:01 +00:00
thorpej 8a5bb3e806 Use getmaxpartitions() and getrawpartition() from libutil, not homegrown
versions.
1996-05-16 07:11:17 +00:00
jtc e54ce8e1bd Updated to use <util.h>.
From Greg Hudson <ghudson@MIT.EDU>.
1996-05-15 23:29:33 +00:00
ws 6ae4c91a82 Add fsck utility for msdosfs 1996-05-14 17:39:21 +00:00
mhitch aa441df377 Add amiga to the list of ports using the new savecore. 1996-05-12 04:36:29 +00:00
mycroft 5f98044780 Try looking up the file system name in fstab. From greywolf@starwolf.com,
slightly modified.
1996-05-11 14:27:50 +00:00
mycroft daa86d7011 Use kernel mount info rather than fstab. From greywolf@starwolf.com, slightly
modified.
1996-05-11 14:13:55 +00:00
gwr 153f55fdef Add sun3 to the list of ports using the new savecore.
Add -lkvm when linking the new savecore.
1996-05-08 17:00:10 +00:00
cgd 4d54b9c567 check returns of inet_addr() and inet_network() against INADDR_NONE,
not -1, per the manual page.  on 64-bit systems like the alpha, -1 will
never equal (unsigned long)INADDR_NONE.
1996-04-15 18:27:05 +00:00
cgd c3877d120c 'const struct' not 'struct const' 1996-04-13 05:35:39 +00:00
jtc 6397db2ddd Add const qualifier to mopts table 1996-04-13 01:30:59 +00:00