Commit Graph

8205 Commits

Author SHA1 Message Date
pst
db10ed51dd Correction, Jim Lowe is the author... Getting code to work right is far
easier than writing the comments. :-(
1995-05-08 19:42:00 +00:00
pst
e165d9c4c7 Update copyright notice to properly reflect that this was original work
by James Miller (sorry Jim).
1995-05-08 19:34:16 +00:00
jkh
cf830239e3 Whoops! Uncomment Write_Disk() again. 1995-05-08 18:41:37 +00:00
bde
da9e45c7bd sdsize() didn't open a device often enough. This caused swap partitions on
slices other than the first slice looked at to be unavailable for swapping.
1995-05-08 16:53:33 +00:00
gpalmer
4cb3ce6d8c Change /lib/cpp to /usr/bin/cpp 1995-05-08 16:50:19 +00:00
bde
7f38b208c8 Fix numerous bugs in wdsize().
It closed the wrong device (usually the B partition instead of the C
partition).
It closed a device without having opened it.
It didn't open a device often enough.  This caused swap partitions on
slices other than the first slice looked at to be unavailable for swapping.
It didn't check the device number sufficiently.
1995-05-08 16:48:23 +00:00
bde
53382aa723 Declare dssize(). 1995-05-08 16:27:10 +00:00
bde
ca5a771ab4 Fix reopening of open subdevices for DIOCSYNCSLICEINFO:
Reopen the bdev for the raw partition and not the cdev if only the bdev
was open.
Don't use a bogus limit for the number of partitions to possibly reopen
(bug found by Julian).

Add function dssize() to help fix wdsize() and sdsize().  The slice
layer knows more about (un)open partitions and partition sizes than
the driver layer.
1995-05-08 16:24:08 +00:00
ache
7d2ee025c4 Bump major number, function deleted 1995-05-08 16:10:34 +00:00
ache
aef44373fe Bump major number instead of minor 1995-05-08 16:08:49 +00:00
lars
80c8aec0c7 Improved readabilty and spelling 1995-05-08 14:40:59 +00:00
jkh
46ed9b1d82 Perform a much needed tidying-up pass over this code. Sleep for now,
more tomorrow.
1995-05-08 10:20:56 +00:00
ache
6aa33920cc Bump major number 1995-05-08 08:43:06 +00:00
jkh
e815b540a2 The value -1 is special. Allow it.
Submitted by:	bde
1995-05-08 06:14:16 +00:00
jkh
845a4c055a Add the sorted command executor code. 1995-05-08 06:08:27 +00:00
jkh
7440d1ae5c Ok, we should now create all filesystems, mount them and extract the
cpio floppy at this point.
1995-05-08 06:06:30 +00:00
phk
021b1e61da Recognize slice type #6 as dos
handle OnTrack Disk manager correctly.
1995-05-08 02:08:33 +00:00
phk
b2a9651ad8 Make disk.c smart enough to handle disk with "OnTrack Disk manager".
Make it complain if people try to boot from a partition which extends
past 1024 cylinders.  This is better than a random reset...
1995-05-08 02:02:56 +00:00
ache
3aa0d024e8 Fix nasty shadow bug sneaked in Marc's commit.
Implement ^K and KEY_EOL as clear end of line
Move common code from line_edit to static function
Cosmetique changes in textbox
1995-05-08 01:43:52 +00:00
phk
6228dff953 Add check for rootfs > cyl 1024. 1995-05-08 01:34:31 +00:00
jkh
f8629aa1a3 Implement the geometry command. Clean up the help a little. 1995-05-08 01:27:07 +00:00
phk
dd5b13ab4b I bet Jordan is tearing his hair out, trying to figure the previous patch
out... here is the real thing.
1995-05-08 01:26:47 +00:00
jkh
be72875c5f Add a wizard button for Poul. 1995-05-08 00:56:28 +00:00
phk
7633746449 Fix bug. 1995-05-08 00:44:46 +00:00
jkh
16a0ad9d11 Fix a bug in multi-column output. 1995-05-08 00:38:02 +00:00
ache
e788121172 Make two "ttyout" ttysleep wmesg unique
Add t_timeout to ttysleep call into ttywrite
1995-05-07 23:53:36 +00:00
jkh
01c872638f Another sync up for Poul. Added a lot more error checking. 1995-05-07 23:37:34 +00:00
ache
8a8b9e96e6 Add FreeBSD-specific TS_* states 1995-05-07 23:19:53 +00:00
ache
0044255e3c Change 'rc' entries from 'r' to 'm', conflict with ptys 1995-05-07 23:04:03 +00:00
ache
125aa8907e Add hook for pstat -t 1995-05-07 23:00:02 +00:00
ache
c049e12311 Enable sio driver and upcoming rc driver
Add more line disciplines
1995-05-07 22:15:46 +00:00
jkh
94f877197c Implement a work-around for Create_Chunk providing no pointer to the
new chunk.  The partition editor now works as well as the underlying
libdisk can support it - have at it, Poul!
1995-05-07 22:07:53 +00:00
jkh
b603376486 Add additional check for IRQ > 15. This code still needs a lot of work!
Remove silly "Naffy, the Wonder Porpoise" attribution and add more
justifiable (and overdue) attribution to Bruce Evans.  Look at it
as a delete and add operation batched together, not a substitution. :-)
1995-05-07 19:45:49 +00:00
jkh
18ae543a89 Duh! Get the section number for config(8) right! :) 1995-05-07 18:24:43 +00:00
jkh
e689883147 If user specifies IRQ 2, remap it to IRQ 9 with a warning.
Suggested by:	rgrimes
1995-05-07 18:23:58 +00:00
bde
c9a627bda8 Fix 3 fatal mismatches in format args involving dbtob() and 10 nonfatal
mismatches.
1995-05-07 08:33:39 +00:00
bde
81ec7fa477 Fix 3 fatal mismatches in format args involving dbtob() and 7 nonfatal
mismatches.
1995-05-07 08:13:37 +00:00
bde
c22155de74 Cast some expressions involving dbtob() to (unsigned long) and print them
using %lu.  This became more broken when I fixed dbtob() to support byte
offsets >= 4GB.  The type had to change to [u]quad_t.  Previously the
expressions had type unsigned long and were printed using %d.  After
division by 1024, the expressions are guaranteed to fit in an unsigned
long, at least for the standard DEV_BSIZE, so edquota doesn't need to
know about quad_t's explicitly.

Fix all the other format mismatches exposed by compiling with -Wformat
(6 more quota limits of type unsigned long printed using %d and 6 time_t's
(i.e., longs) printed using %d).
1995-05-07 07:48:35 +00:00
bde
cc1303d711 Fix style inconsistencies in the last few commits. 1995-05-07 07:06:36 +00:00
joerg
99ee13afa5 Make the syntax checks for the format string more strict. The string
"%8*s" is no longer considered to be a valid format description.

This closes PR bin/386.
1995-05-07 07:00:18 +00:00
bde
bf30e374f0 Submitted by: john@physiol.su.oz.au (John Mackin)
Fix handling of sense errors.  Nonexistent media and end of media were
mishandled.
1995-05-07 06:54:01 +00:00
bde
683c832487 Submitted by: charnier@lirmm.fr (Philippe Charnier)
Fix comment on .else to match code.
1995-05-07 06:39:30 +00:00
pst
69295b18ed Major cleanup up SunOS/VAT driver emulation code, added a BSD style copyright
notice, performed all of the structural changes necessary to get this thing
to work with the unidirectional-DMA version of voxware.

This work is -not- complete,  but it's in far better shape than it was,  and
I may not touch it again for another few months.
1995-05-07 06:38:49 +00:00
dyson
02299bb821 Another error in the correction for trimming swap allocation for
small objects.  (This code needs to be revisited.)
1995-05-07 06:36:59 +00:00
bde
562a666ce0 Test the correct nonblocking flag in ttylclose(). IO_NDELAY is only valid
in read() and write().  FNONBLOCK is valid in ioctl() and close().

The bug caused hung ptys when a process talked to itself using nonblocking
i/o and exited while the slave pty had output to flush.  ttywait() was
called and hung.  Signals didn't work because the process was exiting.
`comcontrol /dev/ttyp0 drainwait 1' worked to terminate the wait.  This
shows that comcontrol is not limited to hardware control.  It has no i386
or driver dependencies and doesn't belong in src/sbin/i386.

Bruce
1995-05-07 06:32:28 +00:00
jkh
618d4ca72b Make this compile again. Poul and I need to sync up again. 1995-05-07 05:58:57 +00:00
bde
a13f92b4f0 Silence `make -s' (echo -> ${ECHO}). 1995-05-07 05:56:00 +00:00
dyson
f90d96a223 Fixed a calculation that would once-in-a-while cause the swap_pager
to emit spurious page outside of object type messages.  It is not
a fatal condition anyway, so the message will be omitted for
release.  Also, the code that "clips" the allocation size, associated
with the above problem, was fixed.
1995-05-07 03:48:54 +00:00
jkh
c1b5993cf8 Correct a few ordering errors in how the partitions were being displayed. 1995-05-07 03:38:03 +00:00
jkh
c4a6192603 Print sizes of partitions now. 1995-05-07 02:04:29 +00:00