Commit Graph

1529 Commits

Author SHA1 Message Date
des
d5017f342c Bitch if both an id and a name are specified. Make the man page and usage
message reflect this. As a bonus, make the -n optional so that 'kldunload
name' works as one would expect.
1998-11-07 00:42:52 +00:00
des
539046af9f Cosmetic fix (make header align with data) 1998-11-07 00:29:09 +00:00
alex
fe3661b3bc Add an entry for the new NetBSD partition id. 1998-11-06 03:43:21 +00:00
jkoshy
f3b4d13e58 Add an entry for BSD/OS [23].x partition types.
I don't have access to a BSD/OS machine to check the veracity of the
magic number.  However, no harm will be done by the commit and since
someone was motivated enough to file a PR, I'm committing the change.

PR:		7629
Submitted by:	Jos Backus <jbackus@plex.nl>
1998-11-06 03:25:56 +00:00
mjacob
33cd29fe0d For large filesystems you can run past default resource limits causing
fsck to exit unhappily. Fix this by doing a getrlimit/setrlimit for
RLIMIT_DATA. I made the same fix in NetBSD.

Reviewed by:	dg@root.com
1998-11-05 03:26:36 +00:00
grog
817fa589a9 Correct u_int_64 casting to remove warnings in printf() 1998-11-03 06:39:39 +00:00
grog
0dbd09dcde Show revive pointer in percentage complete as well as absolute value. 1998-11-02 04:12:51 +00:00
grog
3d94966976 Remove kludge to set subdisk states when bringing up a plex 1998-11-02 04:12:28 +00:00
dg
49185b19a8 Rename a function name so that it doesn't conflict with a future system call. 1998-10-30 16:17:50 +00:00
dima
832b98b6ff 64bit fixes.
(Note: ``dump'' doesn't work on alpha yet. Apparently there's a problem
somewhere is the physio() area)

Submitted by:	myself && Matt Dillon.
1998-10-27 04:01:19 +00:00
bde
5525376a91 Oops, don't quite use RAW_PART instead of RAWPARTITION. Use 'a' + RAW_PART
in both places.
1998-10-23 18:57:39 +00:00
grog
4cc78e2c04 list.c:
Add dump of last requests with 'info -V'.  This requires the requests
  to be enabled with 'debug 8'.
1998-10-21 08:39:57 +00:00
bde
d0ec9c47b0 Honour the default CFLAGS. This fixes a spew of warnings for compiling
unused static inlines in headers without -O.

Fixed missing libraries in DPADD.

Use .PATH instead of a symlink farm.

Removed bogus dependency of util.c on statetext.h (only util.o depends
on it).  Removed rule for building statetext.h.  The dependency was used
to get statetext.h built, but statetext.h is a non-generated source file
so it doesn't need building.  This fixes an annoying message for the null
build and use of `make' instead of ${MAKE} to do the null build.

Fixed some style bugs.
1998-10-17 13:48:37 +00:00
bde
a3b0bb68a6 Don't assume that time_t is long. 1998-10-17 13:02:46 +00:00
bde
8b98004d10 Don't assume that time_t is long. 1998-10-17 12:44:55 +00:00
bde
77c4345dcb Updated the error message for EXDEV to match recent kernel fixes.
Fixed nearby indentation.

Use RAW_PART instead of RAWPARTITION.
1998-10-17 09:56:32 +00:00
bde
1849cbd4d1 Backed out previous commit. It broke fsck again. See rev.1.22 and the
references there, and rev.1.38 of sys/ufs/ufs/ufs_disksubr.c.
1998-10-17 08:03:52 +00:00
jkh
a2bcaf5139 Don't rewrite the disk label. The type field is already set correctly
and we don't use the frags info, so why bother?  More to the point, it
seems to result in an EXDEV error when the label is written out and we
lose because of it (don't know why though).  This is a work-around and
is marked as such.
1998-10-17 04:19:29 +00:00
des
9db67e79b6 Warn about "mount -u" bug. 1998-10-16 00:06:56 +00:00
mckay
080437aa74 Spelling. 1998-10-15 13:37:35 +00:00
ken
c81149bfaf When we send a stop unit command to a device, send it as an ordered tag so
that any transactions in front of the stop command get flushed to disk
first.  This will have no effect on devices that have tagged queueing
turned off, or don't support tagged queueing.

Reviewed by:	gibbs
1998-10-13 22:02:38 +00:00
ken
f0d7c5e4dc Fix a bug in camcontrol that caused 'camcontrol start' to not work.
Noticed by:	Philippe Regnauld <regnauld@deepo.prosa.dk>
1998-10-13 16:23:26 +00:00
rnordier
ef6950e1d8 Kill an extraneous dot.
PR:		8103
Submitted by:	Kazuo Horikawa <horikawa@jp.freebsd.org>
1998-10-10 15:47:16 +00:00
msmith
0a090f7bb9 Teach dset about isa_devtab_cam 1998-10-06 07:32:45 +00:00
ken
a90d05e930 Add a missing word. 1998-10-06 00:32:58 +00:00
ken
89a9a866fe Add the -c flag in to the usage summaries in the man page and the usage()
function in camcontrol.

Also, fix the modepage example in the examples section of the man page.  It
didn't quite come out right with the '.Dl' macro.
1998-10-03 19:15:53 +00:00
ken
1ad6536975 Add a new CAM debugging mode, CAM_DEBUG_CDB. This causes the kernel to
print out a one line description/dump of every SCSI CDB sent to a
particular debugging target or targets.

This is a good bit more useful than the other debugging modes, I think.

Change some things in LINT to note the availability of this new option.

Fix an erroneous argument to scsi_cdb_string() in scsi_all.c

Reviewed by:	gibbs
1998-10-02 21:00:58 +00:00
grog
3397bfaffe Correct source file corruption in last checkin
Observed by:  jkh
1998-09-30 07:53:52 +00:00
grog
8fcb760f37 Don't require an argument for -v flag
Correct checks for null special file names
Add Usage entry for -v flag
Get terminology straight in man page
Reviewed by:	bde
1998-09-29 23:20:04 +00:00
obrien
5736742320 Add history. 1998-09-29 17:34:25 +00:00
grog
c461716e6a Bring man page up to date 1998-09-29 10:26:02 +00:00
jkoshy
4f1d2ca2b5 `kern.maxproc' is not changeable using sysctl(1). Change examples
that show `kern.maxproc' being written.

PR:		docs/7978
Submitted by:	jlemon@americantv.com
1998-09-29 02:01:06 +00:00
alex
b7f776d8de The flags type was recently changed from u_short to u_int, breaking
icmptypes.

PR:		8067
Submitted by:	Jonathan Hanna <jh@cr1003333-a.crdva1.bc.wave.home.com>

While I'm here, staticize functions.
1998-09-28 22:56:37 +00:00
grog
90ae3eab9d Include vinum in SUBDIR 1998-09-28 05:38:52 +00:00
yokota
f3c3b3910b Remove the reference to the -b option; it's gone. 1998-09-23 06:54:14 +00:00
nate
c241d61f20 - Back out softupdate change that already existed in FreeBSD from V1.6,
which caused the reference count of a directory to get doubly
  decremented.

PR:		bin/8030
Reviewed by:	nate
Submitted by:	Don Lewis <Don.Lewis@tsc.tdk.com>
1998-09-23 05:37:35 +00:00
roberto
019b2d8ebe Change rst0 into rsa0. 1998-09-22 10:05:27 +00:00
ken
8ab0f364d8 Fix a grammar problem.
PR:		docs/7975
1998-09-21 20:44:39 +00:00
obrien
18dba2fe21 Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:06 +00:00
imp
2405040f08 Prevent buffer overflow with extra long arguments. 1998-09-17 20:18:11 +00:00
ken
23704f1928 Page control field values go from 0-3, not 1-4.
Reported by: Tony Maher <tonym@angis.usyd.edu.au> on -current
1998-09-17 16:12:30 +00:00
phk
231bd37d3c Two patches from the HARP people:
Various Makefile related fixes.

-Wformat fixes.

Submitted by:	Mike Spengler <mks@networkcs.com>
1998-09-17 09:35:02 +00:00
ken
76b1945eae Fix a typo. "Primay" -> "Primary" 1998-09-17 05:10:23 +00:00
gibbs
81c6c44768 Obsoleted by CAM. 1998-09-17 03:54:31 +00:00
andreas
26cb0fc413 checked, that new sa CAM driver takes care of using buffer sizes
<= 64 KB. Was able to dump/restore with block sizes of 96, 128 and
200. using systat -vmstat I noticed transfer blocksizes <= 64KB,
so physio's limits aren't touched.
Since this check was originally from me, I feels safe now to back it
out.
1998-09-16 20:52:12 +00:00
obrien
339a231363 Linux swap and Solaris x86 use the same BIOS partition id. 1998-09-16 19:25:47 +00:00
grog
a22382d2d9 This commit was generated by cvs2svn to compensate for changes in r39332,
which included commits to RCS files with non-trunk default branches.
1998-09-16 05:57:36 +00:00
grog
22d3d93a1e Import base vinum userland sources 1998-09-16 05:57:36 +00:00
phk
40cd9ddb5a Remove blank after -I 1998-09-15 19:16:33 +00:00
phk
cfbddb7f46 (this is an extract from src/share/examples/atm/README)
===================================
                HARP  |  Host ATM Research Platform
                ===================================

                              HARP 3

What is this stuff?
-------------------
The Advanced Networking Group (ANG) at the Minnesota Supercomputer Center,
Inc. (MSCI), as part of its work on the MAGIC Gigabit Testbed, developed
the Host ATM Research Platform (HARP) software, which allows IP hosts to
communicate over ATM networks using standard protocols.  It is intended to
be a high-quality platform for IP/ATM research.

HARP provides a way for IP hosts to connect to ATM networks.  It supports
standard methods of communication using IP over ATM.  A host's standard IP
software sends and receives datagrams via a HARP ATM interface.  HARP provides
functionality similar to (and typically replaces) vendor-provided ATM device
driver software.

HARP includes full source code, making it possible for researchers to
experiment with different approaches to running IP over ATM.  HARP is
self-contained; it requires no other licenses or commercial software packages.

HARP implements support for the IETF Classical IP model for using IP over ATM
networks, including:

   o IETF ATMARP address resolution client
   o IETF ATMARP address resolution server
   o IETF SCSP/ATMARP server
   o UNI 3.1 and 3.0 signalling protocols
   o Fore Systems's SPANS signalling protocol

What's supported
----------------
The following are supported by HARP 3:

   o ATM Host Interfaces
        - FORE Systems, Inc. SBA-200 and SBA-200E ATM SBus Adapters
        - FORE Systems, Inc. PCA-200E ATM PCI Adapters
        - Efficient Networks, Inc. ENI-155p ATM PCI Adapters

   o ATM Signalling Protocols
        - The ATM Forum UNI 3.1 signalling protocol
        - The ATM Forum UNI 3.0 signalling protocol
        - The ATM Forum ILMI address registration
        - FORE Systems's proprietary SPANS signalling protocol
        - Permanent Virtual Channels (PVCs)

   o IETF "Classical IP and ARP over ATM" model
        - RFC 1483, "Multiprotocol Encapsulation over ATM Adaptation Layer 5"
        - RFC 1577, "Classical IP and ARP over ATM"
        - RFC 1626, "Default IP MTU for use over ATM AAL5"
        - RFC 1755, "ATM Signaling Support for IP over ATM"
        - RFC 2225, "Classical IP and ARP over ATM"
        - RFC 2334, "Server Cache Synchronization Protocol (SCSP)"
        - Internet Draft draft-ietf-ion-scsp-atmarp-00.txt,
                "A Distributed ATMARP Service Using SCSP"

   o ATM Sockets interface
        - The file atm-sockets.txt contains further information

What's not supported
--------------------
The following major features of the above list are not currently supported:

        o UNI point-to-multipoint support
        o Driver support for Traffic Control/Quality of Service
        o SPANS multicast and MPP support
        o SPANS signalling using Efficient adapters

This software was developed under the sponsorship of the Defense Advanced
Research Projects Agency (DARPA).

Reviewed (lightly) by:	phk
Submitted by:	Network Computing Services, Inc.
1998-09-15 11:44:44 +00:00
gibbs
3576feaf0b Add support for dealing with ENOSPC as the error code returned by a tape
device hitting EOM on a write.
1998-09-15 10:25:50 +00:00
gibbs
439c46a17f Add camcontrol. Remove scsiformat. 1998-09-15 10:25:04 +00:00
phk
c3dd1fa899 Add new files for HARP3
Host ATM Research Platform (HARP), Network Computing Services, Inc.
This software was developed with the support of the Defense Advanced
Research Projects Agency (DARPA).
1998-09-15 08:23:17 +00:00
gibbs
1bb65e0d8a Update system to new device statistics code.
Submitted by:	"Kenneth D. Merry" <ken@plutotech.com>
		mike@smith.net.au (Mike Smith)
1998-09-15 08:15:30 +00:00
gibbs
eb4ff87544 Camcontrol - A utility for configuring/manipulating the CAM subsystem
Submitted by:	"Kenneth D. Merry" <ken@plutotech.com>
1998-09-15 06:43:02 +00:00
grog
806b06993b Reviewed by: bde (again)
Correct terminology (partitions are in slices, not the other way around)
1998-09-11 07:08:49 +00:00
grog
5397190b7e Reviewed by: bde,jkh
Add -v flag to newfs:

     -v      Specify that the partition does not contain any slices, and that
             newfs should treat the whole partition as the file system.  This
             option is useful for synthetic disks such as ccd and vinum.
1998-09-11 06:26:08 +00:00
bde
b5a6b5d023 Don't refuse to pass the force and sync options to the kernel. The
kernel supports them, and the force option will be more important
when mounting of unclean ext2fs file systems is not permitted unless
it is forced.
1998-09-09 16:26:51 +00:00
jdp
7aadfa5c68 Add a new library function getobjformat(). It checks all the
standard places ("/etc/objformat", ${OBJFORMAT}, argv) for an
indication of the user's preferred object file format.  This
consolidates some code that was starting to be duplicated in more
and more places.

Use the new function in ldconfig.

Note: I don't think that gcc should use getobjformat(), even though
it could.  The compiler should limit itself to functions that are
widespread, to ease porting and cross-compilation.
1998-09-09 01:21:25 +00:00
jdp
705eaef8b8 Fix calls to mmap. It returns void *, and on failure it returns
MAP_FAILED.

Don't try to extend the mapping in place if it is too short.
There's no guarantee it will be possible.  Remap the file instead.

Put in a few style fixes.

Submitted by:	Bruce Evans <bde>
1998-09-06 20:43:25 +00:00
jdp
a1a2d181d2 For a.out mode, ignore shared libraries that don't have at least 2
version numbers.
1998-09-05 16:20:15 +00:00
dfr
35e5c0c5bc Disable gcc's builtin memcpy for alpha since it doesn't cope with unaligned
regions properly and this triggers an unaligned access trap.
1998-09-05 15:11:47 +00:00
jb
343f602fe0 Change MACHINE to MACHINE_ARCH to support MACHINE=pc98. 1998-09-05 08:29:05 +00:00
jb
a0a35093a3 Now that ldconfig does elf work too, build it on alpha as well. 1998-09-05 07:35:19 +00:00
jdp
6c76bd6d54 Implement ldconfig functionality for ELF. The hints are stored in
a different file than the a.out hints, namely, "/var/run/ld-elf.so.hints".
These hints consist only of the directory search path.  There is
no hash table as in the a.out hints, because ELF doesn't have to
search for the file with the highest minor version number.  (It
doesn't have minor version numbers at all.)

A single run of ldconfig updates either the a.out hints or the ELF
hints, but not both.  The set of hints to process is selected in
the usual way, via /etc/objformat, or ${OBJFORMAT}, or the "-aout"
or "-elf" command line option.  The rationale is that you probably
want to search different directories for ELF than for a.out.

"ldconfig -r" is faked up to produce output like we are used to,
except that for ELF there are no minor version numbers.  This should
enable "ldconfig -r" to be used for checking LIB_DEPENDS in ports
even for ELF.

I implemented the ELF functionality in a new source file, with an
eye toward eliminating the a.out code entirely at some point in
the future.
1998-09-05 03:31:00 +00:00
wosch
68cda92e4a Sort cross references. 1998-08-31 16:41:09 +00:00
gpalmer
1f2b7138e5 Split lines into one subdir per line. 1998-08-30 20:28:50 +00:00
jkoshy
6df2d2c053 Install ipmon.8 in man8/ not man1/.
PR: 7778
Submitted by: horikawa@jp.freebsd.org
1998-08-30 04:48:00 +00:00
dillon
8aae36c31a Updated manual page. Removed description of (now defunct) -c restrictions. 1998-08-27 16:34:38 +00:00
dfr
23665f6a3a Use explicitly sized types when formatting cylinder groups. 1998-08-27 07:38:33 +00:00
des
2ee4e1fc77 Remove -c restrictions from previous commit. 1998-08-26 18:51:37 +00:00
dillon
0dd585520f (well tested at BEST): -i option can now take FP values (e.g. -i 0.1),
extremely useful for networking testing.  Other options secured from
    user-level D.O.S. attacks.  -f, -s now root-only.  -i wait times < 1.0
    root-only.  -c count limited to 100 and defaults to 16 when ping run
    by non-root user.
1998-08-26 01:58:39 +00:00
dfr
f7a70d8e02 Change length arguments to sysctl to size_t. 1998-08-25 07:38:19 +00:00
bde
7a7aef0b85 Attempt to fix my breakage of the alpha makebootarea() in rev.1.19.
The previous attempt just converted compile time breakage to runtime
breakage.
1998-08-23 07:32:37 +00:00
gpalmer
83d0a1cbad Try to make this compile on both alpha and i386 1998-08-21 23:44:16 +00:00
jb
d724e3649c Fix the machine dependent SUBDIR I removed by mistake in the last commit. 1998-08-20 20:47:49 +00:00
bde
744645c034 Fixed style bugs in previous commit.
Added some comments on #endifs.
1998-08-17 21:13:57 +00:00
dfr
72c760c68b Teach disklabel how to install a bootstrap on an alpha with SRM console. 1998-08-17 07:43:54 +00:00
jb
bfd3d9d6f1 All but two if these build on alpha now, but most are untested.
ldconfig isn't required.
1998-08-15 13:21:41 +00:00
dfr
2abe006488 Use explicitly sized types when laying out the cylinder groups. This
bug was the cause of the 'freeing free frag' panics that people have been
seeing with FreeBSD/alpha. I have a similar patch to newfs but I've not
finished testing it.
1998-08-15 10:07:33 +00:00
charnier
235b27cb8f Forgot to remove a ';' in my previous commit. 1998-08-12 06:07:43 +00:00
jdp
5996cf05e6 Add "-aout" option when calling the linker, so that this will work
in an ELF world.  This will have to be revisited when the kernel
moves to ELF.
1998-08-12 02:39:23 +00:00
phk
71eadd074a unifdef -UISO
Inspired by bdes comment to PR: 7419
1998-08-07 06:36:53 +00:00
markm
ec4dc9550e Fix LIBDIR (for aout/ELF). 1998-08-06 21:41:13 +00:00
thepish
73c173acec PR: 7475
Added support for -q (suppress output) when firewall rules are taken from a
file. Solves PR 7475
1998-08-04 14:41:37 +00:00
phk
cec4f27a0f There seem to be two messages that were added with soft-updates
support, which need a final "\n". I only observed one line of
mangled output, but I think there is another one which suffers
from the same problem, and thus I provide a patch that covers
both.

PR:		7483
Reviewed by:	phk
Submitted by:	Stefan Esser <se@FreeBSD.org>
1998-08-04 09:19:03 +00:00
charnier
4d4ca48c85 Use errx() instead of err() for malloc failures. -Wall. Do not dot
terminate errx() string. Remove unused #includes. Use .Tn for NFS.
1998-08-03 06:44:46 +00:00
charnier
0fc51bafab Document -n (soft-update) flag.
Add rcsid, remove unused #includes. Sync usage() and SYNOPSIS.
1998-08-03 06:41:20 +00:00
charnier
3c48dac533 .Nm swapon -> .Nm.
Sort #includes. Add rcsid.
1998-08-03 06:35:01 +00:00
charnier
25f789f509 Correct use of .Nm and .Ev.
Add rcsid, rmove unused #include. Spelling.
1998-08-03 06:32:57 +00:00
charnier
36b4b3712e Typo: i. e. -> i.e.
Remove unused #include.
1998-08-03 06:24:59 +00:00
charnier
0432758e6b Correct use of .Nm. Add rcsid. Do not dot terminate err(3) strings. Spelling. 1998-08-03 06:22:43 +00:00
charnier
0d7f7325ec Correct use of .Nm, add .An. 1998-08-03 06:19:47 +00:00
bde
b7b0859c3f Fixed printf format errors. 1998-08-02 16:06:35 +00:00
dfr
09c162db9e Avoid trying to malloc > (1<<32) bytes of memory due to an arithmetic
underflow on the alpha.
1998-08-01 18:03:28 +00:00
joerg
4a3c46b359 Document the kern.logsigexit sysctl variable (sort of).
Reminded by:	bde
1998-07-29 08:30:37 +00:00
imp
d7d6a198df Commit patch from Tor Egge to fix the "large filesystem restore" problem.
This appears to work for me in the old case, but I don't have large
enough filesystems to test the fix case.

Reported working by: karl@mcs.net
1998-07-28 18:50:01 +00:00
charnier
535f0f82cc Spelling. Errx() on malloc() failure. 1998-07-28 06:42:38 +00:00
charnier
b2d8598d95 Correct use of .Nm, add rcsid, remove unused #include. 1998-07-28 06:38:57 +00:00
charnier
cd64002d5d Spelling, add rcsid, remove unused #includes.
Convert 1000000 usec to 1 sec 0 usec.
Use provided safe malloc (rtmalloc()) instead of malloc(): exit on allocation
failure.
Correct use of .Nm
Add usage() and use errx().
1998-07-28 06:36:31 +00:00