Commit Graph

467 Commits

Author SHA1 Message Date
Joerg Wunsch
ccf9a17c14 Avoid the "calculated sectors per cylinder disagrees with disklabel"
warning for the default case where the user hasn't specified either -t
or -u on the command line.  It's been confusing our users.
1995-09-09 13:03:09 +00:00
David Greenman
76b19b6b87 Fixed error in maxcontig calculation that caused it to default to "1". 1995-09-08 13:52:55 +00:00
Joerg Wunsch
4d14a29026 Check a pointer in skipdirs() before dereferencing it. I don't fully
understand why it can become a null pointer under some circumstances,
but i've got a pile of tapes where this happens, and running it thru a
debugger proved that simply ending the loop in this case did the right
thing.

Anyway, it cannot make it worse than now, where restore kills itself
with "Memory fault".
1995-09-01 18:09:20 +00:00
Joerg Wunsch
e3038c6ef5 Update to the slices era. Make /dev/rfoo0 the defaults, not
/dev/rfoo0d.

Scan a list of devices instead of insisting on all the world
being wd0.

Allow for disk names to be specified (e.g. `sd0') instead of full
path names only.

Sync the man page with the reality.
1995-09-01 18:00:14 +00:00
Gary Palmer
38a98b2254 Correct minor nit - to filter out SYN packets, the keyword is
`syn' not `tcpsyn' (which matches `tcp' which blocks all tcp
packets)
1995-08-31 21:12:05 +00:00
Andrey A. Chernov
6932478de9 Remove -O2 from COPTS, known rogue 1995-08-29 14:04:39 +00:00
David Greenman
c4e9518794 Document the -a option, and mention ``noauto''. 1995-08-26 06:06:15 +00:00
David Greenman
89beb278f7 The changes for adding the "noauto" option were mostly wrong. MNT_NOAUTO
is a kernel flag, and the kernel definately doesn't need to know about
it.
1995-08-26 05:39:53 +00:00
Jordan K. Hubbard
5411032ad5 Sigh. This isn't my night. I forgot the manpage updates too!
Thanks, Andrey.
1995-08-23 14:14:32 +00:00
Jordan K. Hubbard
81b9534dc5 Add a "noauto" flag so that you can do things like prevent your system
from not coming up multiuser just because you have a CD mount in fstab
but no CD in the drive.
Submitted by:	"Full Name Not Supplied" <simon@masi.ibp.fr>
1995-08-23 12:59:27 +00:00
Gary Palmer
7852d4b660 Add $Id$ 1995-08-22 00:38:02 +00:00
Joerg Wunsch
1c7895ac54 Reset the umask before creating the output file; otherwise running
ldconfig as root with a restrictive umask yielded ld.so.hints
unreadable by the world (and thus useless).
1995-08-16 06:31:50 +00:00
Peter Wemm
f8e782eea4 Add (apparently) Larry McVoy's warning.... 1995-08-12 15:49:12 +00:00
Mike Pritchard
bb2e87c4a2 Fix init to correctly detect processes that are exiting multiple
times per second.
1995-08-08 06:49:59 +00:00
Andrey A. Chernov
228d7ef2cc nspace count was incremented only in child, so warning never displayed
Pointed by: Mike Pritchard <mpp@mpp.minn.net>
1995-08-08 02:29:12 +00:00
Garrett Wollman
656dcd4316 Delete bogus referneces to timezone code internal header file `tzfile.h',
which is no longer bogusly installed in /usr/include.
1995-08-07 19:17:46 +00:00
Bill Paul
1e890b056a Just when you thought it was safe...
- getnetgrent.c: address some NIS compatibility problems. We really need
to use the netgroup.byuser and netgroup.byhost maps to speed up innetgr()
when using NIS. Also, change the NIS interaction in the following way:

If /etc/netgroup does not exist or is empty (or contains only the
NIS '+' token), we now use NIS exclusively. This lets us use the
'reverse netgroup' maps and is more or less the behavior of other
platforms.

If /etc/netgroup exists and contains local netgroup data (but no '+').
we use only lthe local stuff and ignore NIS.

If /etc/netgroup exists and contains both local data and the '+',
we use the local data nd the netgroup map as a single combined
database (which, unfortunately, can be slow when the netgroup
database is large). This is what we have been doing up until now.

Head off a potential NULL pointer dereference in the old innetgr()
matching code.

Also fix the way the NIS netgroup map is incorporated into things:
adding the '+' is supposed to make it seem as though the netgroup
database is 'inserted' wherever the '+' is placed. We didn't quite
do it that way before.

(The NetBSD people apparently use a real, honest-to-gosh, netgroup.db
database that works just like the password database. This is
actually a neat idea since netgroups is the sort of thing that
can really benefit from having multi-key search capability,
particularly since reverse lookups require more than a trivial
amount of processing. Should we do something like this too?)

- netgroup.5: document all this stuff.

- rcmd.c: some sleuthing with some test programs linked with my own
version of innetgr() has revealed that SunOS always passes the NIS
domain name to innetgr() in the 'domain' argument. We might as well
do the same (if YP is defined).

- ether_addr.c: also fix the NIS interaction so that placing the
'+' token in the /etc/ethers file makes it seem like the NIS
ethers data is 'inserted' at that point. (Chances are nobody will
notice the effect of this change, which is just te way I like it. :)
1995-08-07 03:42:14 +00:00
Andrey A. Chernov
d880a8a822 Remove IMAXBEL clearing, our cfmakeraw() already fixed for it
Reviewed by:
Submitted by:
Obtained from:
1995-08-04 02:33:13 +00:00
Joerg Wunsch
5eae614b13 Remove a newline from the output of savecore(8), so the bogus number
1024 that used to remain on a line of its own after savecore completed
its job will be overwritten later in the /etc/rc process.

Reviewed by:
Submitted by:	graichen@sirius.physik.fu-berlin.de (Thomas Graichen)
Obtained from:
1995-07-30 13:10:56 +00:00
Joerg Wunsch
69c06b0c7f scsi(8) used to fall off the end of main(), returning an arbitrary
value.

Reviewed by:
Submitted by:
Obtained from:
1995-07-30 12:58:47 +00:00
Bruce Evans
9c0dc173cc Change install' to ${INSTALL}' so that default install flags can be
specified in the top level Makefiles.
1995-07-25 00:37:58 +00:00
Rodney W. Grimes
41e969f6cf Man page was incorrectly pointing to /etc/dump, it should be /sbin/dump.
Submitted by:	faried nawaz <fn@big-brother.csrv.uidaho.edu>
1995-07-15 10:44:19 +00:00
Poul-Henning Kamp
116805fd7a Fix to match new API. Fixes memory leak, faster. 1995-07-12 09:14:46 +00:00
Bruce Evans
50e2fb8055 Remove a bogus fclose. Normally the "w" stream for /var/crash/bounds was
fclosed twice and this didn't seem to cause any problems, but when
/var/crash was on an an unwritable nfs-mounted partition, fclose(NULL)
caused a core dump.
1995-07-11 17:03:44 +00:00
Peter Dufault
ca4b4242c9 The mode page editor never cleaned up the temp files. Thanks
to Joerg for noticing.  This low risk bug fix is appropriate for
2.1.
1995-07-11 09:21:33 +00:00
Doug Rabson
a62dc40654 Changes to support version 3 of the NFS protocol.
The version 2 support has been tested (client+server) against FreeBSD-2.0,
IRIX 5.3 and FreeBSD-current (using a loopback mount).  The version 2 support
is stable AFAIK.
The version 3 support has been tested with a loopback mount and minimally
against an IRIX 5.3 server.  It needs more testing and may have problems.
I have patched amd to support the new variable length filehandles although
it will still only use version 2 of the protocol.

Before booting a kernel with these changes, nfs clients will need to at least
build and install /usr/sbin/mount_nfs.  Servers will need to build and
install /usr/sbin/mountd.

NFS diskless support is untested.

Obtained from: Rick Macklem <rick@snowhite.cis.uoguelph.ca>
1995-06-27 11:07:30 +00:00
Joerg Wunsch
16a7269ee5 When tuneing filesystems with tunefs, it is not obvious what the current
parameters are.  You can use dumpfs, but that's not obvious which settings
are tuneable, and is far from clear to the non-guru (it's like using a
hexdump of a tar archive to get a table-of-contents).

There is also an undocumented option in the man page that can be dangerous.
Suppose your disk driver decides to scramble all writes while you tell
tunefs to update all backup superblocks.

This suggested change adds a '-p' (print) switch to bring it in
line with some SVR4 systems.

(Slightly changed by me, mostly for optics. - joerg)

Submitted by:	peter@haywire.dialix.com
1995-06-25 17:46:13 +00:00
Joerg Wunsch
d195e6deec When using dump/rdump on large filesytems (my case 3 GB), the lseek
claims multiple times to have failed. The problem is a off_t is
converted into a int and checked for a negative. A true lseek check
should be checking if the off_t is equal to -1 for failure.

(Suggested fix from PR #bin/461)

Submitted by:	mark tinguely <tinguely@opus.cs.ndsu.NoDak.edu>
1995-06-24 17:07:21 +00:00
Satoshi Asami
f606c848fa Add an "-m" flag to merge instead of replace the entries. We can
now safely add a line like

ldconfig -m ${PREFIX}/lib

in ports' Makefiles and packing lists without throwing away some
directories the user may have added.

Submitted by:   Mostly by Paul Kranenburg <pk@cs.few.eur.nl>
1995-06-24 10:08:44 +00:00
Dima Ruban
78f934546c `dev_bsize' must be reset to 1 before the bread() or
quotacheck -a will fail after the first partition (because
    dev_bsize is 512 and is messes up the superblock read of the second
    partition)

Submitted by:	dillon@best.com (Mattew Dillon)
1995-06-21 03:55:12 +00:00
Karl Strickland
bc2cfd7131 Added -o port option. Use specified port number for NFS requests. The default
is to query the portmapper for the NFS port.  This is useful for CFS users.
1995-06-14 17:41:04 +00:00
Garrett Wollman
f73b709a01 Use the correct file pointer when reading the group id map file. The old
code tried to read the group id map from the user id file, and thus would
never actually allow a umapfs to be mounted.  (!)
1995-06-13 17:42:07 +00:00
Rodney W. Grimes
d3628763db Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
Rodney W. Grimes
5ebc7e6281 Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
Rodney W. Grimes
709e8f9ae1 Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
David Greenman
a2d169021d Fixed bug where UDP was required to mount a TCP NFS filesystem.
Submitted by:	Ken Hornstein, Sept.'94
1995-05-24 10:10:24 +00:00
Poul-Henning Kamp
eb01b2314d The dset program didn't set the "msize" (iosiz in userconfig).
Reviewed by:	davidg
1995-05-22 01:37:24 +00:00
Poul-Henning Kamp
6444ef3b82 Add a undocumented '-d' flag to set debugging. 1995-05-21 19:31:09 +00:00
David Greenman
1469eec81e Fixed incompleteness that would allow dirty filesystems to get mounted
when the single user shell was terminated. These changes disallow mounting
or R/W upgrading filesystems that are dirty unless "-f" (force) option
is used with mount. /etc/rc has been modified to abort the startup if
one or more non-nfs partitions fail to mount.

Reviewed by:	Poul-Henning Kamp, Rod Grimes
1995-05-15 08:39:37 +00:00
Andrey A. Chernov
2ea29df013 Add dumpon 1995-05-14 18:43:25 +00:00
David Greenman
43e6fcd576 Take out special error message for EINVAL...we really do want it to be
"invalid argument".
1995-05-14 02:18:18 +00:00
David Greenman
e83d87f1fc Fix force flag: It is not a "negative" flag. Add MNT_FORCE to the acceptable
options for UFS (which fixes another bug).
1995-05-12 23:39:15 +00:00
Garrett Wollman
55678a2eb9 Learn how to print out kern.dumpdev as a name. 1995-05-12 19:10:56 +00:00
Garrett Wollman
83f9dfab4d My utility to specify where you want crash dumps to go. More user
and kernel support to follow.
1995-05-12 19:10:09 +00:00
Jordan K. Hubbard
5013b8b22c Remove all reference to sysinstall - it's going away. 1995-05-09 23:03:22 +00:00
Peter Dufault
9a8e4e5bdc Add support for editing mode pages. 1995-05-05 20:42:00 +00:00
David Greenman
c9c23c03fa Flush stdout when writing out each superblock backup. 1995-05-02 07:45:39 +00:00
Peter Dufault
2473679b38 Don't print out zero length names when verbose is set. 1995-05-01 12:54:32 +00:00
Peter Dufault
1995d212e9 Add a "-s" argument to specify the command timeout in seconds.
Now you should be able to format a disk with something like:
> scsi -f /dev/rsd?c -s 1200 -c "4 0 0 0 0 0"
assuming sd.c lets you open it.
1995-05-01 12:35:05 +00:00
Peter Dufault
0d30b20ac9 Add "-m" command to read mode pages. Also add -z for freezing,
though the kernel changes aren't committed yet.
1995-04-28 19:24:39 +00:00