Commit Graph

32727 Commits

Author SHA1 Message Date
rnordier
ce63af0fef Having probed the keyboard, turn off the -P flag. 1998-10-17 10:35:15 +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
rnordier
638a858945 Treat all options as toggles (ie. -c -c is the same no -c). Since
the boot.config settings are persistent, this seems to provide a
useful override capability, and should break only on broken
boot.config's.

Output a cosmetic newline if booting with no input.
1998-10-17 09:50:09 +00:00
bde
1be558ae51 Overload the correct errno for attempts to set an in-core label with
a raw partition at a nonzero offset (EINVAL should have been EXDEV;
DIOCSDINFO was broken, and DIOCWDINFO was broken because it depended
on DIOCSDINFO).

A zero offset for the raw partition should probably be enforced in
setdisklabel(), and DIOCWDINFO should probably always be handled by
first calling setdisklabel() so that writedisklabel() doesn't need to
enforce it, but this has never been done; dsioctl() has a special
check.  Changes in this commit are limited to dsioctl() to preserve
bug for bug compatibility in drivers that don't use the slice code
(notably the ccd driver, which allows setting a bogus label in
DIOCWDINFO and doesn't undo the setting when writedisklabel() fails).
1998-10-17 09:46:42 +00:00
rnordier
19b83af292 biosboot compatibility fix:
If we have a boot.config command, display it.
1998-10-17 09:16:01 +00:00
rnordier
ebcd17d6c6 biosboot compatibility fix:
Read boot.help before parsing boot.config.  We were parsing
boot.config first, which could result in boot.help being read
from a different location (or not found), which would probably
just cause surprise, without being useful.
1998-10-17 09:01:13 +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
bde
b92f5250f9 Use only the correct raw partition for writing labels. Don't use the
partition that the label ioctl is being done on just because it has
offset 0, since there is no guarantee that such a partition is large
enough to contain the label.  Don't use the wrong raw partition (0
instead of RAW_PART).

This fixes problems rewriting bizarre labels (with a nonzero offset
for the 'a' partition) in newfs(8).  Such labels shouldn't normally
be used, but creating them was allowed if the ioctl was done on the
raw partition, and sysinstall creates them if the root partition isn't
allocated first.

Note that allowing write access to a partition other than the one that
has been checked for write access doesn't increase security holes
significantly, since write access to any partition already allows
changing the in-core label.

This fix should be in 3.0R.  Rev.1.26 of newfs/newfs.c shouldn't be
in 3.0R.
1998-10-17 07:49:04 +00:00
markm
1ff00a2ea3 Fix paths. This sorts out the remaining p5-* port-creation hassles. 1998-10-17 07:10:43 +00:00
peter
837611366f 3.0-RELEASE and now the post-release 3.0-CURRENT were being declared
'too old' to run ELF.  Check the kernel version properly.
1998-10-17 05:40:46 +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
peter
37e9ac7609 Load the first page of the file and use the headers in it. This should
avoid the need to seek back to offset zero which is causing trouble on
the Alpha with a gzipped kernel.
1998-10-17 03:06:38 +00:00
peter
cd3e8865ad Some directories would like to install things into /modules 1998-10-17 01:21:35 +00:00
alex
e51cdb65fb Complete the description of sio flag 0x40.
Reviewed by:	bde
1998-10-16 22:26:19 +00:00
ken
6946611369 Add the dpt(4) man page.
Reviewed by:	ken
Submitted by:	gibbs
1998-10-16 22:00:55 +00:00
ken
288b6b0ec9 Update the bt(4) man page for CAM.
Reviewed by:	ken
Submitted by:	gibbs
1998-10-16 21:33:34 +00:00
ken
822b5aef5b Add in the adv(4) and adw(4) man pages for the AdvanSys narrow and wide
SCSI controllers, respectively.

Once these drivers are tested on the alpha, these man pages can probably be
moved up a directory to reflect the fact that they're architecture
independent.

An mdoc guru should probably look at the AUTHORS sections in both of these
pages -- the .An macro seems to cause strange spacing problems.

Reviewed by:	ken
Submitted by:	gibbs
1998-10-16 21:12:07 +00:00
msmith
0250d0a60a Turn of disk debugging by default (suppress annoying "partition marked as
unused" diagnostic on floppies).
1998-10-16 19:26:11 +00:00
msmith
2fb2fc3d2a Reduce the sbrk() increment from 64K to 4K. There's not much room on the
Alpha, and wasting potentially 64K-4 bytes of RAM just isn't an option.
1998-10-16 19:23:37 +00:00
bde
4bdfdd372a Split up rule for ${COMMONHDRS} so that `make -j N' doesn't create the
6 headers up to 6 times concurrently.  Debugged by Don Lewis
(Don.Lewis@tsc.tdk.com).

Fixed some disorder.
1998-10-16 16:53:15 +00:00
kato
fabfe75171 Commented out bs driver. 1998-10-16 16:22:35 +00:00
bde
6478fc2452 Generate code to interpret ioctl numbers for all ioctls defined in
headers under /usr/include, not just for the ones in <sys/ioctl.h>.
The generated file includes all headers that seem to define ioctls,
so build errors will probably occur if headers become less self-
sufficient than they are already.  This is a feature.  Build errors
shall not be fixed by adding more includes here.

Optionally generate a case statement instead of a list of if
statements.  This source must be edited to change this.  The case
statement should be non-optional.  It currently can't be, because
many ioctl numbers are not unique.
1998-10-16 15:33:17 +00:00
bde
683b78890a Removed unused/unusable "ha" keyword. Device classes should never have
been visible here.

Fixed disordering of keyword table by "cam".
1998-10-16 15:08:30 +00:00
gibbs
052f3aa186 Update to include all supported chips.
Add a table comparing the features of all aic7xxx chips.

Clean up the discussion of SCB paging.

Reviewed by:	Kenneth Merry <ken@FreeBSD.org>
1998-10-16 15:06:26 +00:00
bde
607edc8d5f Don't generate unused file ioconf.h.
Didn't bump CONFIGVERS, since ioconf.h was already unused when
CONFIGVERS was last bumped (although essentially the same (CAM)
commit batch that bumped CONFIGVERS also added bogus includes of
ioconf.h).
1998-10-16 15:00:18 +00:00
bde
f77a3ee2fe Fixed missing directories in the libraries target:
- in the elf case, csu must be built and installed before any shared
  libraries.  It wasn't, but we usually used a stale version that
  happened to work.  E.g., in the !NOTOOLS case we used the version
  built and installed by the bootstrap-libraries target.  Only cross
  building was completely broken.
- the shared libmd must be built and installed before any shared
  libraries that link to it.  It wasn't, but we sometimes used a stale
  version that happened to work, as above.  For elf, this caused
  bogus linkage of the target shared libatm and libopie with the host
  static libmd.  It isn't clear what this actually breaks, except for
  cross compiling.  For aout, the shared libmd is not built at all, so
  all shared libraries linked to libmd may be broken.  The linker
  reports them by spewing RRS warnings.

Note that building src/lib early and building subdirs of src/lib in
the correct order in src/lib/Makefile doesn't help, since the subdirs
are all built before any are installed.

Fixed bitrot in the comments about the ordering requirements.
1998-10-16 14:22:54 +00:00
jkh
c988ce6862 Use the same boot.conf file for alpha, now that it works. 1998-10-16 10:17:29 +00:00
jkh
f598ae3929 fixup for alpha. 1998-10-16 10:14:21 +00:00
jkh
725fd5a896 fixup for the alpha. tag slid forward, since it's benign for the x86. 1998-10-16 10:13:09 +00:00
jkh
ef590ab720 Back to -current again. 1998-10-16 06:55:36 +00:00
jkh
756fa48ea6 post-tag version bump. We're now back at 3.0-current! 1998-10-16 06:55:07 +00:00
jkh
d8f3b54681 add note about CD-220E drives. 1998-10-16 04:47:12 +00:00
peter
fadc81aa18 Update SMP-GENERIC to something a bit more recent based on GENERIC.
Approved by: jkh
1998-10-16 04:44:05 +00:00
ken
d655b0ac6a Update the aha(4) and ahb(4) man pages for CAM.
Reviewed by:	ken
Submitted by:	gibbs
1998-10-16 04:41:38 +00:00
peter
c10eb805a7 Missed this file. 1998-10-16 04:31:35 +00:00
peter
ac52f6b758 Sample initial set of kld-ified modules. Not all have been completely
converted yet.  These are more of a starting point.  This is NOT connected
to the parent Makefile.

OK'ed by jkh (who is ever so patiently waiting)
1998-10-16 04:30:52 +00:00
ken
cee4b5d4c1 Update the scsi(4) man page for CAM, and add in links so that it appears
as cam(4) as well.

This includes a description of all the generic CAM kernel options, as
well as a description of some of the CAM debugging printf options.
1998-10-16 04:28:39 +00:00
jkh
a42506e5fa Bump freebsd version #. 1998-10-16 04:28:04 +00:00
jkh
4f9bc51f3e Add acknowledgements. 1998-10-16 04:26:00 +00:00
ken
971caa4592 Update the sa(4) man page for CAM. This was repository-copied from the
st(4) man page.

Take out most of the sd(4) and st(4) man pages and point to the new
da(4) and sa(4) man pages.

Add sa.4 to the makefile.

Reviewed by:	ken
Submitted by:	gibbs
1998-10-16 04:06:21 +00:00
peter
464de37ce6 *gulp*. Jordan specifically OK'ed this..
This is the bulk of the support for doing kld modules.  Two linker_sets
were replaced by SYSINIT()'s.  VFS's and exec handlers are self registered.
kld is now a superset of lkm.  I have converted most of them, they will
follow as a seperate commit as samples.
This all still works as a static a.out kernel using LKM's.
1998-10-16 03:55:01 +00:00
peter
ad0030e392 Fix some bugs in link_aout.c caused by using uninitialized malloc space.
Pre-Approved by:  jkh
1998-10-16 03:45:35 +00:00
peter
657e5a0406 Update the kld glue
Pre-Approved by: jkh
1998-10-16 03:32:03 +00:00
ken
58c3eb2f2c Add the da(4) man page. 1998-10-16 03:29:49 +00:00
ken
97ffa0bb19 Update the da(4) man page for CAM. The da.4 man page was repository-copied
from the sd.4 man page.

This includes a discussion of write caching and its effects.

Reviewed by:	ken
Submitted by:	gibbs
1998-10-16 03:28:12 +00:00
peter
6bd228cfe2 Commented out example of changing the default kernel format with warning. 1998-10-16 03:26:54 +00:00
peter
a8354e7057 "fix" the gzipped kernel load problem by having the loader check that it
can seek back to the first PT_LOAD and doing a close/reopen if it cannot.
This is because the first PT_LOAD section includes the ELF headers.
This fixes gzipped kernels on the i386, it should solve mike's problem
for the Alpha.
1998-10-16 03:04:15 +00:00
jkh
d7cc2cb36c Adjust for -RELEASE 1998-10-16 02:27:07 +00:00
jkh
f6a4576494 Change to 3.0-RELEASE in anticipation of the tag. 1998-10-16 02:08:20 +00:00
yokota
8093712383 Keep the entries sorted by name. Rev.1.21 broke the order inadvertently.
No functaionlal change.
1998-10-16 01:49:13 +00:00