Commit Graph

736 Commits

Author SHA1 Message Date
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
Paul Traina
ef6304d8c6 Replace call to obsolete inet_addr routine with inet_aton so we can specify
netmasks and broadcast addresses of 255.255.255.255.
1995-04-26 16:52:40 +00:00
Julian Elischer
abeeb9ceb2 Obtained from: copied fro mount_kernfs
This is copied from the mount_kernfs code..
if it doesn't work there is a working binary in ~julian
1995-04-21 01:17:50 +00:00
Gary Palmer
a07c2891bf Bugfixes :
- in mount_portal.c: included catching of SIGHUP to get portald to
  re-read the config file.

  - in mount_portal.c: in SIGCHLD handler the return values checked from
  waitpid were wrong. Note. this routine was written correclty according
  to the manual page for 4.4BSD, but waitpid does not exhibit this
  behaviour. It is not returning 0 when WNOHANG is specified. I havent
  checked this properly.

  - in mount_portal.c: initialized the fdset for the select properly.

  - in mount_portal.c: corrected poor casting in the select.

  - in mount_portal.c: changed a break; to exit (0); so that the
  children die after doing the hard work, this stops the select: bad
  file descriptor messages.

  - in pt_file.c: the kernel passes kernel style open flags to the
  portal code which aren't compatible with "normal" O_ flags. I have
  adjusted these in pt_file.c. In general I think the portal fs code
  and portal_cred structure need changing to pass to the portald
  the right style of flags _and_ the permissions.

  - in pt_tcp.c: a few mistakes in typing of the socket structures,
  getservbyname returns the port number as an int but sockaddr wants
  the port number as an u_short.

  - in pt_tcp.c: someone wrote this on a VAX/Sun whatever and forget
  about byte ordering!! I've included a few htons about the place.

  - in all the above I have sprinkled a few more debugging printf's.

Submitted by:	"Duncan McL Barclay" <dmlb@ohm.york.ac.uk
1995-04-19 12:24:08 +00:00
Poul-Henning Kamp
e7bf085313 Yank out the rewriting of disklabels. This code can and will get confused
in a couple of cases, and it doesn't do much anyway.  It used to save only
the newfs params (block/frag/cgroup.. and nothing more.  Something that
don't belong in a disklabel in the first place.
1995-04-19 02:19:20 +00:00
Peter Dufault
a478e06bfc Remove "BUG" of not supporting arguments for "-o" 1995-04-17 14:51:54 +00:00
Peter Dufault
de1d7f1b4a Add support for arguments in output "-o" string. 1995-04-17 14:35:07 +00:00
Gary Palmer
a058021a86 Bump to 2.0-950418-SNAP 1995-04-17 10:19:31 +00:00
Gary Palmer
59423ca335 Claim 0xA7 for NEXTSTEP in here also. 1995-04-17 09:46:03 +00:00
Gary Palmer
5f0c94240a Add NEXTSTEP as claiming partition code 0xA7. 1995-04-17 09:42:54 +00:00
Jordan K. Hubbard
af087363e8 Bump the snap date. 1995-04-15 16:40:34 +00:00
Jordan K. Hubbard
9599f64201 We're now shooting for a 950412-SNAP
Reviewed by:
Submitted by:
Obtained from:
1995-04-12 22:26:47 +00:00
Jordan K. Hubbard
7565491c79 Bump this to 0408. I have my reasons. 1995-04-11 07:43:33 +00:00
Garrett Wollman
a5ce0490a4 Fix initialization error that caused `mount -vat' to behave unexpectedly
in certain circumstances.  Fixes PR #182.

Submitted by:	Andrew Atrens <atreand@statcan.ca>
1995-04-10 18:57:08 +00:00
Bruce Evans
df62fcee1f Update declaration to match the change made to dir.c a few hours ago. 1995-04-02 22:53:36 +00:00
Bruce Evans
11a40aa5ad Submitted by: Philippe Charnier <charnier@lirmm.fr>, added to by bde
Fix all the warnings from `gcc -Wall'.
1995-04-02 16:52:14 +00:00
Bruce Evans
444da1eb3c Make this actually work. It always failed in FreeBSD because it attempted
to open the mounted block device containing the directory to put the bad
sector files in, and opening of mounted block devices hasn't been allowed
since Net/2 or before.  Attempt to open the raw device instead.  Be more
careful about long names.

Use lstat() instead of stat() to search for block devices so that my
symlink to the default floppy doesn't cause problems.

Check for truncation of the block number when it is squeezed through the
mknod() interface.  The maximum used to be only 32767, but now it large
enough.
1995-04-02 16:36:39 +00:00
Bruce Evans
3eeb5bdcb3 Submitted by: Philippe Charnier <charnier@lirmm.fr>, distilled by bde
Fix a couple more bogus types that aren't reported by `gcc -Wall'.
1995-04-02 15:25:19 +00:00
Bruce Evans
31f4ab50bc Submitted by: phk, added to by bde
Fix all the warnings from `gcc -Wall'.
1995-04-02 14:52:29 +00:00
Ugen J.S. Antsilevich
9289ddbe2e make pass work also as the first keyword
(while addf skipped)
Reviewed by:
Submitted by:
Obtained from:
1995-03-30 12:18:10 +00:00
Bill Paul
8b5a6d67db Fixed stupid bug in mountd: it would seem that the kernel doesn't allow
you to push the same host into its NFS export lists twice, but mountd
tries to do it anyway. This means that putting:

/some_file_system -ro host1 host1

in your /etc/exports file causes an error. This is bogus: mountd should be
smart enough to ignore the second instance of host1. This can be a problem
in some configurations that use netgroups. For example, each host in my
netgroups database is has two entries:

startide (startide,-,) (startide.ctr.columbia.edu,-,)

When mountd sees this, it tries to put startide.ctr.columbia.edu into the
export list *twice*. Just listing 'startide' /etc/exports list will also
screw up because mountd will try to resolve the netgroup 'startide' instead
of the hostname 'startide.'

My solution is watch for duplicate entries in get_host() and mark them
as grouptype GT_IGNORE, which do_mount() will now cheefully throw away.
This is a bit of a kludge, but it was the least obtrusive fix I could
come up with.

Also silenced a compiler warning: arguments passwd to xdr_long() should
be u_long, not int. :)
1995-03-26 23:36:38 +00:00
Andrey A. Chernov
73cab1a3bc Use more AI to predict initial/final isdst,
latest isdst  preffered.
1995-03-26 22:51:51 +00:00
Poul-Henning Kamp
2b76585664 add a \t which has been nagging me too long 1995-03-19 06:28:48 +00:00
Poul-Henning Kamp
64988eb339 Remove reference to fsdb(8). We don't have it. 1995-03-17 04:41:18 +00:00
Garrett Wollman
b53e909d11 Fix long-standing core dump when ld returns failure. 1995-03-16 17:11:21 +00:00
David Greenman
3669a02157 Changed manual page to conform to the reality in FreeBSD. 1995-03-15 07:08:33 +00:00
Poul-Henning Kamp
76f4de663a Extract the cpio-floppy relative to the root, not /stand. 1995-03-15 06:16:10 +00:00
Joerg Wunsch
18c0c440eb Do not try to make any notice if the PID file cannot be created.
Makes folks happy that run slattach in single-user, where /var/run is
probably missing.
1995-03-12 23:37:28 +00:00
Bill Paul
f7fa522e95 Impliment -ad and -au flags in addition to -a and document the change
in the man page. ifconfig -au affects all interfaces marked as up,
and ifconfig -ad affects only the interfaces marked down. ifconfig -a
still handles everything. This change is purely for compatibility with
SunOS, for those who might be accustomed to the SunOS ifconfig's
behavior.
1995-03-12 19:05:03 +00:00
Joerg Wunsch
21bfcc9f8c Make slattach create a PID file under /var/run when the connection is
established.  This way, automatic scripts are possible that might
control the SLIP connection.  It's unacceptable for a daemon that's
being controlled by a variety of signals to not leave its PID
somewhere.  The file name contains the terminal path name component of
the associated tty device, so it should be unique even with multiple
parallel slattach's running.  The file will be unlinked at regular exit.

Also found a minor bug in the option handling by compiling with -Wall.
1995-03-12 15:04:18 +00:00
Ugen J.S. Antsilevich
1079e644a8 Fix it - now this programm should work probably..It is
still commented out in rc and i ask everybody to test it and
reply  if it makes any troubles...If no - very good..
1995-03-12 13:27:24 +00:00
Ugen J.S. Antsilevich
009f85df0b Update manpage..BTW,if somebody wit good English
would go through it and fix it would be a really good idea.
1995-03-03 12:59:47 +00:00
Ugen J.S. Antsilevich
3c3f8b95a8 Oops..remove some debugging leftover.. 1995-03-03 12:47:23 +00:00
Ugen J.S. Antsilevich
9071ec3796 Ok..so everybody picking on me that ipfw syntacs
is a pain in ...wel.. trying to fix this
 * from/to/via position indepenndant syntax
 * "any" for 0/0 host address
 * addf/addb default keyword in case you skip it..
 * pass = accept new action, seems to be somewhat better
   in particular cases
 * on = via (as on ed0 instead of via ed0,loook at
   reject tcp on ed0 from hacker )
1995-03-03 12:28:34 +00:00
Ugen J.S. Antsilevich
ce83f1d6d8 Fixed manpage..ldeny,lreject and log options are there
and others not..
Submitted by:	torstenb@FreeBSD.ORG
1995-02-27 10:52:22 +00:00
Poul-Henning Kamp
7705c77bd6 The things you have to go through some times! Add a minimal program to
read a termcap entry, since tset is picky about filedescriptors...
1995-02-26 20:39:40 +00:00
Poul-Henning Kamp
c8006b1500 oops. 1995-02-26 02:00:35 +00:00
Poul-Henning Kamp
23b406e176 Add a '-p' option to md5. This will save some time in generation of the
ctm deltas.
1995-02-26 01:55:31 +00:00
Andrey A. Chernov
7fe4e56742 configure_network() if carrier already present
Submitted by: serg@opus.opu.odessa.ua
1995-02-25 18:06:23 +00:00
Ugen J.S. Antsilevich
ab7d7f5827 Change utility to accept interface name
along with IP as "via" argument
1995-02-24 14:32:45 +00:00
Poul-Henning Kamp
38994f93ce Fix -Wall warnings.
Yes I have better things to do, but just now I'm waiting...
1995-02-23 07:05:01 +00:00
Bruce Evans
f75dd51832 Don't clobber d_secperunit in disklabel -e'. disklabel -e' replaces all
the values that it doesn't print by defaults.  This seems wrong.  I want
to be able to see the total number of sectors more than edit it.  The
default d_secperunit of (sectors/track * tracks/cylinder * cylinders) is
bogus if sectors/track is only an approximation and more bogus if
sectors/track and tracks/cylinder are dummy values such as 4096 and 1
to defeat ufs's pessimizations.
1995-02-22 23:21:29 +00:00
Andreas Schulz
08b48e644c Document the mountdtab file in the man page. 1995-02-22 21:42:48 +00:00
Garrett Wollman
d7a124e5d8 Use POSIX.2 regular expressions, get rid of libcompat. 1995-02-21 04:05:20 +00:00
Guido van Rooij
e6373c9ec0 Implement maxprocperuid and maxfilesperproc. They are tunable
via sysctl(8). The initial value of maxprocperuid is maxproc-1,
that of maxfilesperproc is maxfiles (untill maxfile will disappear)

Now it is at least possible to prohibit one user opening maxfiles

-Guido

Submitted by:
Obtained from:
1995-02-20 19:42:42 +00:00
Poul-Henning Kamp
9b1fd0e50e Clean this file up so it is readable... 1995-02-20 00:48:50 +00:00
Jordan K. Hubbard
61a3cfb7a3 ipfirewall.4 is obviously not here anymore! Adjust the Makefile. 1995-02-18 16:36:23 +00:00
Ugen J.S. Antsilevich
96fd3f53e8 Finally document "via" feature.. 1995-02-17 15:44:08 +00:00
Jordan K. Hubbard
571a258ad5 fstab is in section 5, not section 8.
Obtained from: NetBSD
1995-02-17 03:37:33 +00:00
Bruce Evans
48ab66a1f5 Fix another bogon in the change before the last. 1995-02-16 11:23:25 +00:00
Garrett Wollman
9426bb7c1d Allow the user access to net.inet.igmp, even though there's nothing
sysctl(8) can interpret there.  (Someday there might be.)
1995-02-16 00:28:42 +00:00
Andrey A. Chernov
12430b365a Changes for new _menu interface 1995-02-15 19:48:10 +00:00
David Greenman
792016e7a4 Woops, last change wasn't done quite right...fixed. 1995-02-15 14:45:08 +00:00
David Greenman
32e68582d1 Yanked out (now obsolete) support for 'fastboot'. 1995-02-15 14:35:29 +00:00
David Greenman
2ee6a63f1f Include the special device in the error output so that it makes sense. 1995-02-15 14:29:26 +00:00
David Greenman
8a978495e7 Verify that the last component of the mount point path exists and is
a directory - allows for better error reporting.
1995-02-15 14:20:50 +00:00
David Greenman
1564b6f5e0 Slight change of wording on clean flag not set message to appease some
complaints.
1995-02-15 00:23:56 +00:00
David Greenman
69f92856cb >The fix for the missing ".." in the root directory is enclosed below.
Submitted by:	Kirk McKusick
1995-02-15 00:17:56 +00:00
Ugen J.S. Antsilevich
dbec390e8a Ppl asked to make ipfw smarter..ok..
here it is..
1995-02-14 09:34:04 +00:00
Ugen J.S. Antsilevich
8f6466e847 Fix for rather stupid bug by which you couldn't set
ports for the destination IP addr/port.
Nobody reported this btw , while a lot of other things reported-
probably ppl does not use destination ports at all????
1995-02-14 08:28:27 +00:00
Poul-Henning Kamp
9170aeb809 Made the changes needed here to install from a CDrom.
Cleaned some cruft in the process.
This program becomes curiouser curiouser...
1995-02-13 06:52:16 +00:00
Martin Renters
d65161535c Added FIFO restore capability. 1995-02-10 21:57:02 +00:00
Jordan K. Hubbard
982a35748b Prepare for 950210-SNAP 1995-02-10 01:13:27 +00:00
Garrett Wollman
35c13fa033 Implement TCP MIB variables. 1995-02-09 23:16:17 +00:00
Bruce Evans
1e30185a78 Don't allow the alternate superblock block number for one file system
to apply to others (except when it is given on the command line).
1995-02-09 15:58:31 +00:00
Ugen J.S. Antsilevich
742d9f28f7 Ok..at least this man page is up to date now
To be continued..
1995-02-09 13:13:18 +00:00
Poul-Henning Kamp
4e93a5203c Allow zero as value for certain arguments to indicate "take from disklabel". 1995-02-05 18:03:37 +00:00
Poul-Henning Kamp
55abc5794a Change the defaults for newfs to disregard the geometry in the disklabel.
We pretend we have one head with two megabyte worth of sectors per cylinder.

The code try to access another head in what it belives to the same
physical cylinder, because it belives that it would be faster than
waiting for the next free sector under this head to come around.

Most modern drives doesn't have a "classical" geometry, and thus
we end up fooling ourselves doing the above optimization.  With this
change we will fill a cylinder sequentially if we can, and thus get
much more mileage from the track-buffer/cache built into the drives.

As a result a lot of seeks to the next or previous track should be
avoided by this.

(My disk is a lot less noisy actually...)

You can still get the old behaviour, by specifying zero for the
numbers.

This will also solve the problem with newfs barfing at really big
drives.

Obtained from:	adult advice from Kirk.
1995-02-05 08:42:31 +00:00
Jordan K. Hubbard
097416da01 Bump the date to February 2nd. 1995-02-02 08:32:11 +00:00
Jordan K. Hubbard
59ed2d66e2 Mkdir() now takes two flags. 1995-02-02 05:49:06 +00:00
Poul-Henning Kamp
86abb05569 Make dirs for msdos fs's. 1995-02-02 05:35:36 +00:00
Jordan K. Hubbard
431d67b60e Do what I think Poul *intended* to do, rather than what he did.. :-) 1995-02-01 11:15:45 +00:00
Jordan K. Hubbard
501d72dd36 Bump snap date. Our current version numbering scheme loses.
How can we get ONE canonical version string into everything?
1995-02-01 11:03:35 +00:00
Poul-Henning Kamp
5319d4525a I have taken sysinstall out of the normal SUBDIR rule. There are too
many build problems just now, and it isn't that general after all.
1995-01-31 19:41:08 +00:00
Doug Rabson
34728d6afb Add support for kerberised NQNFS.
Reviewed by:
Submitted by:
Obtained from:
1995-01-30 19:18:11 +00:00
Doug Rabson
5439cc46c9 Add support for kerberised NQNFS. 1995-01-30 18:56:06 +00:00
Poul-Henning Kamp
aa033a1d78 Move the real kernel onto the cpio.flp and read this from the boot.flp
make debug handling with serial console obnoxious, but present.
1995-01-30 03:19:58 +00:00
Poul-Henning Kamp
d97ce60ae9 Some cleanup done.
Include bteasy, bootsd, sdboot and termcap entries using file2.c

Remove all traces of "termcap.small".

The policy in this program regarding termcap is:

| If $TERM is set
| 	do nothing special, rely on usual termcap.
| else
| 	use compiled in (via file2c) termcap entries
1995-01-29 02:31:38 +00:00
Andreas Schulz
ec5b52ee79 fix another bug in the MAKEDEV cludge :-). The x-bit permission are not
necessarly copied over. So better call it explicit with a sh ./MAKEDEV .
1995-01-29 01:45:54 +00:00
Andreas Schulz
abb29799dd Correct the relative path for the etc directory in the makedev cludge :-). 1995-01-29 01:25:17 +00:00
Jordan K. Hubbard
e0b77dac9a Less kludge dev. 1995-01-28 09:17:58 +00:00
Jordan K. Hubbard
fadd4e9f07 A different kludge for /dev 1995-01-28 09:16:41 +00:00
Jordan K. Hubbard
8965b9f5e5 Poul lost his copy of K&R again - add a semicolon to the end of the
preceeding statement..
1995-01-28 05:00:50 +00:00
Poul-Henning Kamp
c0f92921df Update to BTEASY 1.7
Submitted by:	vak
1995-01-28 04:42:08 +00:00
Poul-Henning Kamp
c874ac0293 Make Jordan a little happier by fixing a couple of bogons. 1995-01-28 04:35:05 +00:00
Jordan K. Hubbard
9c206926ab Bump the date again - the snapshot doesn't look like it's going to happen until
tomorrow.. :-)
1995-01-28 01:14:39 +00:00
Jordan K. Hubbard
ea7f178ccb Call the bininst.sh script by its new name. 1995-01-28 01:13:29 +00:00
David Greenman
e1babfc54f Kill used "error" variable. 1995-01-27 23:26:53 +00:00
David Greenman
2f21d07aa3 Fixed bogus error reporting when the failure is RPC related ("Address
already in use", instead of "Permission denied").
1995-01-27 23:24:33 +00:00
Jordan K. Hubbard
f16651aed0 Tweak SNAP date. 1995-01-27 19:56:56 +00:00
Peter Dufault
daa21be5f0 Fix verbose printout of "" name 1995-01-26 23:40:40 +00:00
Andrey A. Chernov
d2eb078dbe Sync with main termcap 1995-01-26 08:51:52 +00:00
Jordan K. Hubbard
1cf5e3a68b Add a reference to ft(8). 1995-01-26 00:34:56 +00:00
Jordan K. Hubbard
681e4fa0cf Add pointer to the `ft' command. 1995-01-26 00:32:58 +00:00
Andrey A. Chernov
88b0c79e5b DPADD added 1995-01-25 20:25:57 +00:00
Peter Dufault
d29f6c1ec9 Added "scsi" 1995-01-24 12:08:15 +00:00
Peter Dufault
2208cace06 Submitted by: Julian Elischer and Peter Dufault
Obtained from: 1.1.5

"scsi (8)" from 1.1.5, with added support for any command from
the command line.
1995-01-24 12:07:27 +00:00
Bruce Evans
bc84e96c42 Use the correct include path if there's an obj directory. 1995-01-24 06:10:48 +00:00
Ugen J.S. Antsilevich
e42327af6f Add dset to Makefile. 1995-01-23 15:45:41 +00:00
Ugen J.S. Antsilevich
006baf01ee src/sbin/dset
*blush* this is the commit i meant to do before..
Utility to save device configuration.
1995-01-23 15:42:59 +00:00
Garrett Wollman
f35e67894f Make modload more informative about errors encountered while running
`ld' by calling execl() directly rather than using system().
1995-01-23 04:08:00 +00:00
Garrett Wollman
93eb556775 Document the requirements of dynamic loading on mounting order. Cross-ref
to vfsload(3).
1995-01-22 22:54:56 +00:00
Andrey A. Chernov
99b9edabe6 Reflect lastest termcap changes 1995-01-19 17:15:54 +00:00
Joerg Wunsch
65f2c37b27 Should that last sentence read "...thus a full dump must be done...",
or do I have it all wrong?

Submitted by:	"Shawn M. Carey" <smcarey@mailbox.syr.edu>
1995-01-18 19:26:14 +00:00
Joerg Wunsch
5c2c5abe6d Removed the comment about missing support for the original "High
Sierra" format from the bugs section.
1995-01-16 17:05:44 +00:00
Jordan K. Hubbard
b9ecc1ed61 Make sure a partition we're about to mount on will always exist on the
user's system.  Make Mkdir() selectively not die in case of failure.
1995-01-14 10:31:29 +00:00
Jordan K. Hubbard
2062c2dbe3 Correct positioning of text, update version. 1995-01-14 07:30:30 +00:00
Jordan K. Hubbard
49f7c177f3 Recognise Linux filesystems.
Submitted by:	remy
1995-01-14 02:26:07 +00:00
Jordan K. Hubbard
0301b28935 Correctly recognise Linux partitions.
Submitted by:	remy
1995-01-14 02:25:36 +00:00
Jordan K. Hubbard
f146e52ddb Patch from Remy Card for bogus path in Makefile. 1995-01-14 02:20:42 +00:00
Joerg Wunsch
d5453ba5c4 Make ldconfig and ld.so not hashing the shared lib minor number. This
misfeature caused troubles when a program attempted to access a shlib
where one with a higher minor number has been hashed.  Ldconfig does
only include the highest-numbered shlib anyway, so this is in no way a
limitation of generality.

Caution: after installing the new programs, your /var/run/ld.so.hints
needs to be rebuiult; run ldconfig again as it's done from /etc/rc.
1995-01-12 19:12:29 +00:00
Ugen J.S. Antsilevich
98bee36695 Utility changes following the facility.
We have only one firewall chain and one accounting chain now.
   No blocking/forwarding so commands changed.
Man pages are somewhat out of date and will be updated ASAP.
1995-01-12 13:01:21 +00:00
Andrey A. Chernov
81ab7fb2a7 Add better argument handling
Submitted by: jmz
1995-01-10 21:19:57 +00:00
Bruce Evans
12981249c8 Remove excessive argc checking. It was impossible to set `dtrwait' and
and `drainwait' in a single command.
1995-01-10 01:42:24 +00:00
Andrey A. Chernov
b0e399e3c4 Fight agaist hanging modems: add new drainwait option.
Reviewed by: Bruce
1995-01-05 00:03:06 +00:00
Justin T. Gibbs
7c49ab48fa Honor the values for bsize, fsize and bps from the disklabel. 1995-01-04 23:50:30 +00:00
Justin T. Gibbs
ca4693ed4b Allow for the specification of bsize, fsize, and bps (blocks per segment)
for LFS filesystems.
1995-01-04 23:49:51 +00:00
Joerg Wunsch
08e9e0741b The -N option takes one argument, hence the getopt control string
needs to have a colon for it.  Looks like nobody has tested this
so far.
1995-01-02 12:08:06 +00:00
Jordan K. Hubbard
2558753d2e Tweak the man page too. 1994-12-30 22:51:33 +00:00
Jordan K. Hubbard
a309172130 From: Wankle Rotary Engine <wpaul@skynet.ctr.columbia.edu>
- The -a flag now works just as it does in SunOS: '-a' is actually
  handled like a wildcard for all interfaces. 'ifconfig -a' displays
  the status of all interfaces, 'ifconfig -a netmask 0xffffff00' sets
  the netmask of all interfaces, and so forth. I don't know if many
  people really need to be able to set the netmasks of all interfaces
  at once, but the SunOS ifconfig seems to allow this, so there you
  have it.

- An 'ether_status' function has been added to display the ethernet
  address of all ethernet interfaces. Again, as in SunOS, you must
  be root in order for this to work. The ethernet address is read
  from /dev/kmem using kvm_open() and kvm_read(), much in the same
  was as it's done with netstat. If you choose to install ifconfig
  set-gid kmem then normal users will be able to see the ethernet
  address as well, though this may not be desireable. This feature
  requires a small change to the ifconfig Makefile: you need to link
  with -lkvm in order to use the kvm_*() functions.

Submitted by:	wpaul
1994-12-30 22:42:41 +00:00
Jordan K. Hubbard
b4314abf31 Bring the 2.0 RELEASE version back into -current. Now I just need
to resurrect my changes for the last snapshot, which were unfortunately
lost in a forest fire on time.
1994-12-27 23:26:59 +00:00
Andrey A. Chernov
937b5aaa3b Use timelocal() instead of mktime() hack 1994-12-26 10:43:48 +00:00
Nate Williams
61f9ce8d32 Updated to recent version of Paul K.'s shlib code. This code has better
warning handling and allows for link-time warnings with a modified
version of gas.

Note: Not all of the newer bits were updated such as some of the non-x86
machine-dependant code is relevant to FreeBSD right now.

Obtained from: NetBSD
1994-12-23 22:31:35 +00:00
Ugen J.S. Antsilevich
611367b40f Add interface to clear accounting entry option.
Reflect ip_fw structure changes.
1994-12-13 15:56:51 +00:00
Ugen J.S. Antsilevich
fab9e6db0e Add via option,minor changes to interface to reflect
internal firewall changes.Check option disabled temporary.
1994-12-12 17:19:33 +00:00
Andrey A. Chernov
882588f86c Fix resetting adjkerntz to 0 (pointed by Bruce),
forget to initialize mib variable.
1994-12-12 05:48:45 +00:00
Andrey A. Chernov
408399029a Optimize setting of DISRTCSET 1994-12-12 05:43:28 +00:00
Andrey A. Chernov
62be897817 Clean internal logic, helps for some unusual cases 1994-12-12 05:20:44 +00:00
Andreas Schulz
a8fcd7af26 Changed a sum(1) to a cksum(1). 1994-12-11 23:29:20 +00:00
Andreas Schulz
2a7abc9144 Changed a reboot(1) to a reboot(8). 1994-12-11 23:27:59 +00:00
Andrey A. Chernov
f62ac99484 rc.local -> rc.serial
cua0? -> cuaa?
1994-12-05 19:52:29 +00:00
Paul Traina
247c65ea84 Fix spelling/grammar errors 1994-12-05 10:08:35 +00:00
Jordan K. Hubbard
81db698e3a Joe Greco <jgreco@brasil.moneng.mei.com>'s enhancements to startslip.
Submitted by:	jgreco
1994-12-04 12:26:01 +00:00
Bruce Evans
7e1a4c5c36 Fix another path that was broken by moving things to sbin/i386. 1994-12-04 08:01:24 +00:00
Garrett Wollman
1fa33d23b5 Move i386-specific programs into i386 subdirectory. 1994-12-02 23:53:23 +00:00
Garrett Wollman
6014635361 Cronyx/Sigma sync/async serial driver with PPP support
from Serge Vakulenko
1994-12-02 23:23:01 +00:00
Garrett Wollman
3980ac4f63 Change obnoxious ``Not root dir'' error message into one which actually
tells you what's wrong.
1994-12-02 02:58:56 +00:00
David Greenman
6e1173dc29 In past releases of FreeBSD, I have used the exit status of "ping" to
determine whether a connection to a given machine is up or not.

In FreeBSD 2.0 (and therefore, I assume, BSD 4.4) the exit code of ping
is always zero, even if no packets were received.

I would like to propose the following change to /usr/src/sbin/ping/ping.c
to restore this useful behaviour:

Submitted by:	Denis Fortin
1994-11-29 16:09:56 +00:00
Ugen J.S. Antsilevich
7985370449 Interface changes to support additions to firewall. 1994-11-28 12:34:37 +00:00
Andreas Schulz
7dd4667fed Submitted by: M.C. Wong
Obtained from:
Don't throw away the /etc/nologin file in the -k case.
1994-11-27 23:52:13 +00:00
Andreas Schulz
0013dd1dc4 Correct a litle typo in an error message: PRC -> RPC. 1994-11-26 13:57:46 +00:00
Andrey A. Chernov
0f4d42e2c4 Sectors field too narow (6 digits only), increase it to 7 1994-11-24 21:56:03 +00:00
Andrey A. Chernov
3a9d53eaf3 Fix draw_box dims 1994-11-24 21:50:26 +00:00
Paul Richards
13b2012a78 Added
CLEANFILES += makedevs.c
1994-11-22 13:34:43 +00:00
Jordan K. Hubbard
13eb85741f ALPHA -> BETA 1994-11-21 07:38:48 +00:00
Poul-Henning Kamp
5b4be47e28 Another absolute path... Two actually. 1994-11-20 23:01:27 +00:00
Poul-Henning Kamp
3eeb0c9e5b Guess what 1994-11-20 22:47:52 +00:00
Poul-Henning Kamp
e007d7c51f Whoops. 1994-11-20 22:46:14 +00:00
Poul-Henning Kamp
342fe62299 I might soon stop to keep count of these... 1994-11-20 22:45:14 +00:00
Poul-Henning Kamp
c4bff2faf4 And another absolute path -I :-< 1994-11-20 22:42:16 +00:00
Poul-Henning Kamp
b53839540d This time: an absolute -I :-< 1994-11-20 22:41:03 +00:00
Poul-Henning Kamp
7a621ea796 fix another BLODDY ABSOLUTE .PATH !!!! :-< 1994-11-20 22:28:09 +00:00
Andreas Schulz
794cdf17ef Add parameters "compress", "normal" and "noicmp" for the slip usage.
These names are used in the slip.hosts file as examples, but ifconfig
have formerly only accepted link0, -link0 and link1 for this.
1994-11-20 19:45:58 +00:00
Ugen J.S. Antsilevich
1050b242d8 G-d help me to do it right first time....
Minor patch to man page,test.
1994-11-20 11:53:06 +00:00
Poul-Henning Kamp
93ea8d147a A couple of changes more. Now Paul & Jordan can play again... :-) 1994-11-20 00:49:21 +00:00
Poul-Henning Kamp
309543ede7 Changes to match Pauls code. Had to "globalize" the variables for the
mountpoints.
1994-11-19 23:59:03 +00:00
Paul Richards
e4124e3192 Changed the MBR partition type field from being a string to
a decimal value.

I don't have the time to deal with users typing in partition names
such as "FreeBSD" at the moment so just allow the numerical id to be
specified for the moment.
1994-11-19 18:23:08 +00:00
Nate Williams
750870d48f NetBSD -> FreeBSD
(Poul, bring this into 2.0 please)
1994-11-19 17:55:35 +00:00
Paul Richards
6dd3a38fff Implemented buttons for all the screens.
Could do with some cosmetic tuning regarding placement and things.

Fixed some dialog code (from Andrew).
Pass mountpoints onto stage2 in a struct fstab *mounts[]
Fix all the field connections to conform to the new L&F document.
1994-11-19 17:29:19 +00:00
Paul Richards
d35f2e963a I hope this gets my changes merged back into the current branch.
Removed a layer of menus.
Auto select partition to install into -- first FreeBSD partition
in MBR table. Abort if no FreeBSD partition.
Added a F_BUTTON type.
Fixed up label editor to show free space properly.
Fixed a few bugs.
1994-11-19 05:20:13 +00:00
Andrey A. Chernov
1479d21fc1 Insert newline into too long line 1994-11-19 00:17:55 +00:00
Andrey A. Chernov
f3dc909d25 Fix more dialog bugs and core dumps introduced by previous commiter 1994-11-19 00:09:00 +00:00
Andrey A. Chernov
c2cd62a46d Fix dialog things broken by previous commiter 1994-11-18 23:34:05 +00:00
Andrey A. Chernov
8fbd0636ed Nuke edit_line crawled in again. Change all occurances to line_edit. 1994-11-18 22:21:57 +00:00
Paul Richards
48dd1a4713 Update the in-core disklabel when we change the on-disk version.
Fix up the editor links for the disklabel editor.
Correct the display of fields when they're longer than the
viewable length.
1994-11-18 19:29:01 +00:00
Paul Richards
111054f0ba New files that the last commit missed. 1994-11-18 18:24:00 +00:00
Paul Richards
9e3f27547d Merge in my new mbr and disklabel code. 1994-11-18 18:13:13 +00:00
Poul-Henning Kamp
f1dd848016 Add a "write Bootcode" option to the Fdisk editor.
unzip sysinstall on the way to the hd.
1994-11-18 11:30:04 +00:00
Jordan K. Hubbard
3902fd08ed Give the user a chance to retry the cpio floppy. 1994-11-18 10:12:56 +00:00
Andrey A. Chernov
d31ec8c65b Remove edit_line(), use line_edit() libdialog function instead in all places 1994-11-18 01:16:58 +00:00
Andrey A. Chernov
4195601de8 Use dialog_clear_norefresh() if possible 1994-11-17 23:36:49 +00:00
Andrey A. Chernov
5007f4061c Use -1, -1 where is possible 1994-11-17 19:44:55 +00:00
Jordan K. Hubbard
540bb26ac5 Rethink the cpio floppy verify a little. Don't use a magic cookie,
check for bininst instead (see comments in release/Makefile).
1994-11-17 14:18:43 +00:00
Jordan K. Hubbard
c1b05c7986 1. Add check to see if CPIO floppy extracted properly.
2. See if swapon() failed and at least print a diagnostic.
3. Use -1 instead of strheight()/strwidth() everywhere.

Reviewed by:
Submitted by:
Obtained from:
1994-11-17 14:12:38 +00:00
Jordan K. Hubbard
c9a156d596 New man pages from Ugen. Delete my old, first attempt. I only hope
that the english in Ugen's two replacement pages is not too impenetrable! :-)
[Note:  Poul - please pull these into the BETA branch along with the
other firewall changes]

Submitted by:	ugen
1994-11-17 09:50:30 +00:00
Justin T. Gibbs
7a695db9fa Make newlfs work by adding the MAXSYMLINKLEN and a byte padding to
struct lfs.

sovs@diku.dk:
The pad2 field in struct lfs is a kludge. You
need it because the raw devices has to be written in DEV_BSIZE. The
lfs_maxsymlinklen is needed because the tells the UFS code that we
want to use 4.4BSD directory layout insted of FreeBSD 1.1.5.

Reviewed by: Justin Gibbs
Submitted by: sovs@diku.dk
1994-11-17 01:38:30 +00:00
Andrey A. Chernov
8b6840ff55 Remove str{width,height} functions, they are in libdialog now.
It is only first hook for new autosizing changes, more changes
will follow.
1994-11-16 14:42:22 +00:00
Jordan K. Hubbard
33ccd78725 Latest from Ugen J.S.Antsilevich" <ugen@NetVision.net.il>. Poul, please
take this into BETA.
Submitted by:	ugen
1994-11-16 10:18:18 +00:00
Andrey A. Chernov
ebd8696266 Use autodetected dimensions in Sorry! window 1994-11-15 12:17:42 +00:00
Andrey A. Chernov
f7b5cb4380 Use TellEm instead of dialog_msgbox 1994-11-15 12:15:51 +00:00
Andrey A. Chernov
ea69190efb Check exit code of the dialer, from asa@gw.cronyx.msk.su
Set HUPCL as default modem flag, idea from asa@gw.cronyx.msk.su
but different implementation.
1994-11-14 20:17:36 +00:00
Jordan K. Hubbard
b8565ceeb3 I buggered the last commit. Make sysinstall work again (^$&*!! missing
comma!).
1994-11-13 04:20:23 +00:00
Jordan K. Hubbard
5ece1e4625 Whoops! Update the size of the main menu to 7 items. I'm sleepy. 1994-11-13 02:06:50 +00:00
Jordan K. Hubbard
65890857c5 Now I know what this message is really supposed to say.. :-) 1994-11-13 01:14:38 +00:00
Jordan K. Hubbard
c6c612c2c6 Add hooks for a short trouble shooting document. 1994-11-12 20:34:18 +00:00
Poul-Henning Kamp
e8411f60b0 Don't continue if we don't get a /, swap and a /usr or 80Mb in /. 1994-11-12 05:40:28 +00:00
Jordan K. Hubbard
7c6f13dc4b Make sysinstall deal with user interrupts properly. 1994-11-11 23:22:56 +00:00
Jordan K. Hubbard
dcaed5228b 1. Ask the user one final time before newfs'ing his disk into oblivion.
This means that even "proceed" can be chosen now without going
   irrevokably down that path.
2. Clean up the stage5 text.
1994-11-11 07:58:09 +00:00
Jordan K. Hubbard
700b814a89 Poul's and my idea of avoiding the last reboot at the end was
too ambitious; we can't make the transiton from install to /sbin/init
without another reboot.  Sigh..  Oh well, not that big a deal.
1994-11-08 18:44:14 +00:00
Jordan K. Hubbard
df8cd9c1ac Detect that bininst has finished and go straight into the new system.
Reviewed by: phk
1994-11-08 14:04:19 +00:00
Poul-Henning Kamp
4222ad130a swapon had a bug. Thanks Michael, but couldn't you told me and not Jordan ?
now I have to listen to him all morning teasing me...
1994-11-08 13:40:01 +00:00
Jordan K. Hubbard
a0db5c7857 More 12th hour fixes from Ugen.
Submitted by:	ugen
1994-11-08 12:48:02 +00:00
Poul-Henning Kamp
e0196256c7 Remember to set the d_type field correctly 1994-11-08 11:51:44 +00:00
Jordan K. Hubbard
02006c7644 Change TITLE to something more rational. Make sysinstall.c use it instead
of its own hardcoded constant.
1994-11-08 11:44:04 +00:00
Poul-Henning Kamp
46c134684c Always say the magic word at the end. 1994-11-08 10:14:19 +00:00
Jordan K. Hubbard
4bb50116ba Change Fatals to Warnings. 1994-11-08 07:44:57 +00:00
Jordan K. Hubbard
295acba8ba Fixup:
1. Don't use kernel name for headers - I'm running 2.0.1-Development,
   not ALPHA, and this messes things up.
2. The last dialog was too big, make it a little smaller.  Just cosmetic,
   while I'm in here.
1994-11-08 03:41:52 +00:00
Jordan K. Hubbard
b366e542cc My last cosmetic changes. 1994-11-07 13:48:54 +00:00
Jordan K. Hubbard
7c6b6c167c Cosmetic. 1994-11-07 09:49:06 +00:00
Poul-Henning Kamp
5529c6bf45 Always clear before we "TellEm()" 1994-11-07 04:53:23 +00:00
Poul-Henning Kamp
c4f1695923 Only Mount relative to Written disklabel. 1994-11-07 00:41:38 +00:00
Poul-Henning Kamp
44a88072bd Never have more than one active partition. 1994-11-06 23:33:20 +00:00
Andrey A. Chernov
7bcf49f368 After fixing curses bugs use LINExCOLS in show file 1994-11-06 15:35:50 +00:00
Jordan K. Hubbard
1d317df96c If a file is not present, it's not an error. This means you're using the
1.2MB floppy image.
1994-11-06 11:09:18 +00:00
Poul-Henning Kamp
af3b22a544 remember to tell dialog that we leave. 1994-11-06 04:34:46 +00:00
Jordan K. Hubbard
e9b2310837 Retreat from the idea of using gzip'd ascii files. 1994-11-06 04:10:13 +00:00
Poul-Henning Kamp
6b25616b3b label.c Make sure we always show 8 disk-partitions.
main.c	sanitize the logic of what we do when:

if(getpid()!=1) do stage0 & stage1  (very useful actually)
else if (floppy-marker-file is there) stage0-2, reboot
else stage3-5
1994-11-06 04:05:45 +00:00
Jordan K. Hubbard
a0c7a3b3cf Sigh. My error message printing was still wrong. Wipe the sleep from
my eyes and do this properly (debugging is especially difficult when you have
to burn a floppy every time you want to test your changes! :-( ).
1994-11-06 02:24:45 +00:00
Jordan K. Hubbard
e294dc8a7c Don't use a shell, silly, we don't have one! 1994-11-06 01:34:14 +00:00
Jordan K. Hubbard
feec7965b6 Tweak tweak.. 1994-11-06 01:16:30 +00:00
Jordan K. Hubbard
9d8db7f2f4 I misunderstood dialog_prgbox() - fix it. 1994-11-05 23:56:40 +00:00
Jordan K. Hubbard
b2e3ee0a69 Make ShowFile() now show gzip'd text files. This should save a fair
bit of space on the install floppy.  Modify stage0 and the target names
accordingly.
1994-11-05 23:12:10 +00:00
Andrey A. Chernov
e897bbe2ee Enable back dialog_msgbox in TellEm, real problem was delwin
into edit_line
1994-11-05 23:09:26 +00:00
Jordan K. Hubbard
f90d7a2f31 Whoops! Knew I forgot something.. Bump the menu size. 1994-11-05 08:20:54 +00:00
Jordan K. Hubbard
3f5bee85a0 Add a chance to read the release notes, too. 1994-11-05 08:20:08 +00:00
Jordan K. Hubbard
33d3e14480 I'm not sure if we're just supposed to fall off the end like this,
but at least return something.
1994-11-05 07:34:02 +00:00
Jordan K. Hubbard
6e213286f4 Make stage5 go either to a shell, or on to the bindist installation. 1994-11-05 07:23:58 +00:00
Jordan K. Hubbard
0fe610487f Make this work the way it was really supposed to - less intrusively. 1994-11-05 07:03:55 +00:00
Poul-Henning Kamp
73ba88d5d1 Use /DISKSPACE.FAQ as help-file in the disk-editor. 1994-11-05 06:03:06 +00:00
Jordan K. Hubbard
15196a0bab Change the logic for how error messages are printed so we can actually
see them.
1994-11-05 05:46:12 +00:00
Poul-Henning Kamp
21bd442d86 Cosmetics: edit_line() does standend() when done; 1994-11-05 03:59:34 +00:00
Poul-Henning Kamp
4c78915acc Added a (H)elp function to the fdisk/disklabel code, much needed, now I only
have to write the text-file it will dump on you.
Stopped using cleartoeol in AskEm(), just as a test to see if the screen
looks more sane.
Added a attempted auto-recognition of /, swap and /usr for the first disk
where it looks sensible.  Logic of this might need to be improved.
Made a "ShowFile()" which will not bomb/ignore you if the file isn't there.
1994-11-05 03:34:22 +00:00
Poul-Henning Kamp
7da9aa9e49 Fixed a ghastly mistake. Edit_line() would "delwin(window)". Bad move
buddy, you'd better not call with stdwin then!   fixed now.
Seems like dialog is a LOT more rational now.
1994-11-05 03:13:33 +00:00
Poul-Henning Kamp
70da208d21 Fix a potential bug in stage2.
disable the dialog_msgbox in TellEm(), until we find out why it
hangs on second or third invocation.
1994-11-04 21:38:37 +00:00
David Greenman
5974081cea From njw@cs.city.ac.uk (Nick Williams):
/sbin/umount does not return the correct exit status due to incorrect
logic in its internals.

Further, because of the nature of the code, you *cannot* use it to
umount a directory from a union mountpoint. Well, you can sometimes,
it depends on if the directory is at the top of the union stack or not :)

Submitted by:	njw@cs.city.ac.uk (Nick Williams)
1994-11-04 17:51:37 +00:00
Andrey A. Chernov
9aa4fece6d -i case goes to background pause and acts like -a case on receiving
SIGTERM. This helps to keep CMOS clock updated before reboot.
Idea from J.Wunsch.
1994-11-03 03:16:16 +00:00
Andrey A. Chernov
512dc52632 Restore jkh's changes, now it works for const strings 1994-11-03 00:30:27 +00:00
Andrey A. Chernov
10a42e2218 Now autosizing code works with const strings too.
Prototype added.
1994-11-03 00:28:05 +00:00
Jordan K. Hubbard
bfb65cd092 Don't use autosizing code after all - it doesn't like const strings. 1994-11-02 22:39:57 +00:00
Poul-Henning Kamp
99133b4e1e a missing star. 1994-11-02 22:06:24 +00:00
Jordan K. Hubbard
fb7164eda6 Last changes before going to bed. Disk label editor should now work
a fair bit better.
1994-11-02 11:00:35 +00:00
Andrey A. Chernov
fb833e7272 Restore back -i, -a 1994-11-02 10:04:11 +00:00
Andrey A. Chernov
f30089ed19 Restore back -i, -a 1994-11-02 09:40:06 +00:00
Jordan K. Hubbard
045e459c30 Stage0 can't dump you into a shell. There isn't one. Just reboot.
Stage5 didn't have a large enough dialog box.  Fix that.  Also use
Andrew's autosizing code.
1994-11-02 09:05:49 +00:00
Poul-Henning Kamp
5a9ee65437 Make MkDir() actually do "mkdir -p", so that we can mount on /home/foo, even if
/home isn't a mountpoint.
1994-11-02 08:52:15 +00:00
Jordan K. Hubbard
207d0a541b Fix more mongoloid coding style.
Make a stab at getting free space display to work.
Forward decls to shut compiler warnings up.
Increase some fields to width 2 in order to get edit_line to let you
actually edit them.
Sanity check values and yell at bonehead users.
1994-11-02 08:15:46 +00:00
Andrey A. Chernov
9e92d9eb90 Restore things broken by phk, please use patches to 'cvs update'
instead of whole files commiting!
1994-11-02 07:37:40 +00:00
Andrey A. Chernov
00bc21cafc Restore things broken by phk, please use patches on 'cvs update'
instead of whole files!
1994-11-02 07:34:01 +00:00
Jordan K. Hubbard
eae3147757 More miscellaneous changes. Clear the screen in some appropriate spots. 1994-11-02 07:15:56 +00:00
Jordan K. Hubbard
0782333682 Get stage0 and stage5 working.
Try to reformat this code to be a little more human.  Weird europeans
have been writing this, and can't even seem to agree a single coding
style for more than 4 consecutive lines! :-)
1994-11-02 06:19:53 +00:00
Garrett Wollman
3fa88dec7f Add support for filesystem-specific `-o' options, and re-implement the
most common cd9660 and nfs options like God intended them.  (It is now
possible to say

	mount -o ro,soft,bg,intr there:/foo/bar /foo/bar

again.)  This whole getmntopt() business is an incredible botch;
it never should have been anything more than a wrapper around
getsubopt(3).  Because if the way the current hackaround is implemented,
options which take arguments (like the old `rsize' and `wsize') are still
unavailable, and must be accessed the new, broken way.

(It's unimaginable how Berkeley managed to screw up one of the few things
about NFS that Sun actually got right to begin with!)
1994-11-01 23:51:53 +00:00
Andrey A. Chernov
7ac030ad07 Remove options, run adjkerntz as daemon now 1994-11-01 16:22:22 +00:00
Poul-Henning Kamp
9c354a29e7 Public apology:
I have walked all over Paul Richards code again, and severely lobotomized
some of his stuff, in order to cut some corners for the 2.0-Alpha release.
I belive that we can now manipulate fdisk and disklabel-stuff sufficiently
for the release to actually be produced.
It's not that I don't like Paul and his code, I just need something I
can kick out of the door RSN.

Sysinstall is now under absolute code-freeze, only Jordan has my permission
to commit to this code (stage0 & 5).  I would appreciate if everybody
else would finds problems in sysinstall send patches to me, and I will
commit them. THANKYOU.

The fdisk/disklabel editors are made in pure ncurses, and follow a model
"a`la spreadsheet".

There are some important functions which are missing still, and I would
appreciate if somebody would look at them.
The FDISK part needs a "whole-disk" option, and it needs a "rewrite
MBR-boot code" option.
The DISKLABEL part needs to be able to "import DOS-partition".
Both need a "HELP" function, (display a file "/HELP" using dialog is OK).

It seems to me like the wd.c and sd.c should reread the physical record
when a DIOCGDINFO is made, so that they can pick up changes in the
MBR-data.  Otherwise there will be a couple of weird cases where we
cannot avoid replicating code from the kernel.

If you want to play with this, look at src/release/Makefile.  You may need
to step back to version 1.38 of sys/i386/isa/fd.c to make "rootable"
floppies, it is not clear at this time if that indeed is the problem I
have been having.

Sleep well, my friends, and expect the real Alpha in 24H, if the tree is
still solid.
1994-11-01 10:10:43 +00:00
Andrey A. Chernov
c981965073 Remove extra :%s from syslog formats 1994-11-01 08:34:32 +00:00
Andrey A. Chernov
0835483992 Now:
adjkerntz -i writes kernel clock only, don't touch RTC clock
adjkerntz -a writes RTC clock only, don't touch kernel clock
1994-11-01 06:20:52 +00:00
Jordan K. Hubbard
0a87b23329 Latest changes from Uben.
Submitted by:	uben
1994-10-31 23:58:04 +00:00
Andrey A. Chernov
f195e2e513 Don't make too big windows, count actually text width/height 1994-10-31 04:49:15 +00:00
Andrey A. Chernov
df59073be8 Change hardcoded 24x80 to LINES-1, COLS
Remove compiler warning
1994-10-31 04:07:43 +00:00
Joerg Wunsch
b210d5f66a Fixed a type. 1994-10-30 18:23:22 +00:00
Paul Traina
23e79aa786 add md5 1994-10-29 23:58:55 +00:00
Paul Traina
e164509318 Incorproate version of md5 placed into public domain by RSA. 1994-10-29 23:58:02 +00:00
Poul-Henning Kamp
75c4377f4f Fixed another bunch of problems. I belive we are in a working shape now. 1994-10-29 12:03:59 +00:00
Poul-Henning Kamp
aa7d974a35 Fixed to make sysinstall work again. Notable changes:
Removed a dialog_clear() which somebody aimlessly had slammed into TellEm()
in absence of any understanding of the structure of this program. :-(

Skip through stage0 for now.

Make write_bootblocks write the disklabel using the kernel-call, and forget
about the boot-blocks for now.  This is wrong, but I havn't found the real
problem yet.  I will continue work on this problem.

Added a Debug-feature.  There is a printf' like Debug() now which sends its
output to ttyv1 (Alt-F2), and all "discarded output" from sub-processes end
up there too.  Made TellEm() put it's messages there also, so that we can
see where what happens.

Set the PATH for the shell we shouldn't start at the end :-)

set "npartitions" after the disklabel-editor returns, so that we actually
can edit all the 8 parts of the label.
1994-10-29 10:01:40 +00:00
Jordan K. Hubbard
e2247bbffd Add ipfw. 1994-10-29 08:22:13 +00:00
Joerg Wunsch
56d5f6db85 Fixed an evil bug where rawname() could write across the boundaries of
an array. The bug became obvious in the old system where the array was only
32 characters long (now MAXPATHLEN). Dump honored its name then (:-)
and dumped its core when calling dump -w for a fstab that contained rather long
NFS file system names. Even though this is rather unlikely to happen now,
a bug is a bug:)
1994-10-28 17:26:27 +00:00
Jordan K. Hubbard
61386f1ebb Totally refrobnicate stage0. Add an extern to sysinstall.h so we can
all share the same `selection' variable.
1994-10-28 15:19:57 +00:00
Jordan K. Hubbard
5d39ab9169 Fix up the man page a little more, delete the README that crept in
(but I'm actually just as happy to have in the attic, for reference).
1994-10-28 15:12:22 +00:00
Jordan K. Hubbard
b877c0f37e Add the ipfw command, for IP firewall construction.
Submitted by:	danny ugen
1994-10-28 15:06:53 +00:00
Poul-Henning Kamp
204218e079 Added two #defines to make this compile, until Paul gets out of bed again :-) 1994-10-28 03:02:47 +00:00
Jordan K. Hubbard
07e9e1dbd1 Correct a little spelling. 1994-10-26 10:33:36 +00:00
Paul Richards
f45d9f0072 Clean up the mess from the previous commit which used a out of sync
patch file.

Now, we should be able to configure disklabels using the editor.
1994-10-26 07:34:38 +00:00
Paul Richards
3b32505291 Added some glue code so disklabel editor can be used to edit disklabel
and have changes propagated to later stages.
1994-10-26 07:14:51 +00:00
Poul-Henning Kamp
281d3e3bd9 So there. Now we live on the hard-disk! 1994-10-26 05:41:02 +00:00
Paul Richards
933801dff5 Completed disklabel configuration editor. The editor is working but the
glue code to pass the edited configuration onto the following stages
isn't done yet.
1994-10-26 04:09:19 +00:00
Poul-Henning Kamp
3440124921 New and Improved! crunch with gzip, newfs, fsck and cpio. gzip result.
fits on 1200 kb floppy with unstripped GENERIC kernel.
1994-10-26 02:53:15 +00:00
Andrey A. Chernov
9dbfabe9eb Sync with termcap.src 1994-10-26 02:20:47 +00:00
Andrey A. Chernov
17bde3c52f Sync with termcap.src 1994-10-26 01:20:11 +00:00
Andrey A. Chernov
2c06e4a946 Remove unneeded dialog_update() because now in dialog_clear() 1994-10-25 22:23:18 +00:00
Bruce Evans
c48cef7def Don't write outside of partp[] if the user gives an invalid partition
number for the partition to be made active.  Do nothing instead.  This
allows clearing all the active flags by specifying an invalid partition.
1994-10-25 17:46:53 +00:00
Andrey A. Chernov
fe08a6032f Use configurable dialog attributes instead of hard-coded ones 1994-10-24 05:16:00 +00:00
Andrey A. Chernov
cc1da582a5 label.c: add delwin(window)
mbr.c: use proper dims for newwin, add shadow
both: add ' ' and ESC as valid end-keys
1994-10-24 04:14:23 +00:00
Andrey A. Chernov
dfee7da9e7 Use proper dims for newwin.
Remove double-clear.
Add shadow.
1994-10-24 04:07:22 +00:00
Andrey A. Chernov
c21d850179 Clear screen on exit per Paul request 1994-10-24 03:55:25 +00:00
Paul Richards
302a30b002 Remove a couple of display_disklabel call used
for debuging.
Reviewed by:
Submitted by:
Obtained from:
1994-10-24 03:33:29 +00:00
Paul Richards
caf2d08d24 Round partitions to the next whole cylinder.
Fill in devicename and mountpoint structures from default_disklabel()
so stage2 code knows what to do.
New file label.c for disklabel editing code.
1994-10-24 03:30:56 +00:00
Sean Eric Fagan
badd813805 Reviewed by: jkh
Print out summary information on receipt of SIGINFO; also, stop the
kernel printing of information and restore it on exit.  Now, it needs
an option to be quiet. ;)
1994-10-22 17:30:35 +00:00
Andrey A. Chernov
1ccea3128a Fatal() fixed:
end_dialog() called too early here.
1994-10-22 02:37:24 +00:00
Andrey A. Chernov
2592b4e4e5 Cosmetique: just fix tabs after patch of diff -cb (previous) 1994-10-22 02:35:09 +00:00
Andrey A. Chernov
70f29f87cd ExitSysinstall() fixed:
use dialog functions properly.
don't clear screen with last message on exit(0), I want to see it still.
relay on dialog_active properly.
1994-10-22 02:32:16 +00:00
David Greenman
a3189e21e6 Restrict fs_maxfilesize to 2^40; this is part of a bug fix from Kirk
McKusick to work around problems in FFS related to the blkno of a 64bit
offset not fitting into an int.

Submitted by:	Marshall Kirk McKusick
1994-10-22 02:21:53 +00:00
Paul Richards
66e35128bf Fixed a typo and moved a dialog_clear() line. 1994-10-21 18:26:25 +00:00
Paul Richards
b4740339e8 Fix all the bugs introduced by the source shuffle.
All the mbr code now seems to be working. We can build a basic
unix disklabel in any existing DOS partition while retaining the
existing mbr bootcode or we can install to the whole disk which
puts FreeBSD's boot code into the MBR and creates a clean MBR
partition table with FreeBSD in partition 0 taking up the whole disk.
1994-10-21 18:08:33 +00:00
Poul-Henning Kamp
57a3ad3e15 Now stage2 runs all the way.. 1994-10-21 05:36:43 +00:00
Andrey A. Chernov
af5bd96f75 Add hardcoded cons25-m entry for mono console, if termcap.small
not fit on installation floppy.
1994-10-21 04:48:51 +00:00
Andrey A. Chernov
6373dcc600 Second time bugfix, please be carefully.
Use dialog functions in Fatal only if dialog_active, else
use fprintf(stderr, because it may be called before dialog
initialization
1994-10-21 04:43:07 +00:00
Poul-Henning Kamp
4752baca4a Latest changes from me. Over to you Paul... 1994-10-21 02:14:54 +00:00
Andrey A. Chernov
5d23a66b18 Remove ncurses.h, now included into dialog.h 1994-10-20 21:58:10 +00:00
Andrey A. Chernov
35c9f61260 remove unneded includes
use dialog functions properly
move alloc_memory early to prevent core dump at stage 3
Change 25x80 to 24x80
Fix setenv diagnostic
Fix Fatal to call end_dialog()
1994-10-20 19:30:56 +00:00
Poul-Henning Kamp
277a25ffe0 Now stage 2 should do it's job I hope. Havn't tested yet. 1994-10-20 06:48:40 +00:00
Poul-Henning Kamp
3a06e4e7bf Just a safety measure for me and Paul. 1994-10-20 06:14:29 +00:00
Poul-Henning Kamp
912da9c52c Remake lost changes to sysinstall.h. Sorry Paul ! 1994-10-20 06:08:19 +00:00
Poul-Henning Kamp
7e007f1ded Integrate my code a lot more with Pauls. (I have left sysinstall.c
here, even though it isn't used in the Makefile for Paul not to have
an heart-attack when he wakes up. :-)

Way to go still...
1994-10-20 05:00:00 +00:00
Poul-Henning Kamp
8ae68834f1 The beginning of some structural changes, and the merge of my code into
Pauls.
1994-10-20 02:51:55 +00:00
Poul-Henning Kamp
3e3ad4f2f1 Added a big comment about the general scheme of things during install... 1994-10-20 01:17:26 +00:00
Paul Richards
26b2d70e8e More code rearrangment, moved all mbr code into its own file
so it can be used by other programs.

Added all the necessary menus to take the user through the installation
of the bootblocks.
1994-10-19 23:58:03 +00:00
Bruce Evans
0b461cd7de Don't change the active partition when the user says not to change it.
Convert absolute sector 0 to C/H/S 0/0/0, not 0/0/1.

Open in O_RDWR mode for the undocumented -a option, so that -a can be
used without -u.
1994-10-19 21:25:28 +00:00
Andrey A. Chernov
c2ac03b44a Fix several dialog/terminal problems.
Add code to autodetect terminal entry, if TERM undefined
1994-10-18 18:45:49 +00:00
Paul Richards
2ca2c11464 Lates snapshot:
Re-organised files, moved bootcode routines into their own files.
Check return types of everything and pass error messages to
windows so we get good diagnostics.

Made start on stage 2 installation. Implemented a status file that
keeeps track of where we are in the installation process and allows
installation from media sequences.
1994-10-18 07:56:34 +00:00
Andrey A. Chernov
27e3c1f843 Remove machdep.color_display 1994-10-18 03:41:16 +00:00
Andrey A. Chernov
5a66307202 Document new machdep variables, pointed by Rod 1994-10-17 18:55:21 +00:00
Paul Richards
32a6f4e778 Fixed bug in exec code, cp -R now works.
Added code so sysinstall can run as init.
1994-10-17 07:13:13 +00:00
Paul Richards
8f091f9cf1 Remove a bogus BINDIR line 1994-10-16 06:17:03 +00:00
Paul Richards
db0f7eef49 Add DPADD for libraries. 1994-10-16 02:25:54 +00:00
Paul Richards
c83e0fb6db Add some missing libraries to LDADD 1994-10-16 00:04:42 +00:00
Paul Richards
2d5d3e2ca3 Added sysinstall 1994-10-15 14:37:30 +00:00
Paul Richards
cd56df5a1f Work in progress. 1994-10-15 14:34:49 +00:00
Gary Palmer
ea3a7da2c8 Move `ft' into machine-dependant section. 1994-10-15 00:08:57 +00:00
Andrey A. Chernov
b5df27e29f revision 1.6
date: 1994/03/06 08:55:02;  author: ache;  state: Exp;  lines: +4 -1
Stop count getty spacing problem, if we issue kill -1 1
----------------------------
revision 1.5
date: 1994/03/04 17:51:39;  author: ache;  state: Exp;  lines: +9 -2
I got a lot of
"getty repeating too quickly on port %s, sleeping"
from init.bsdi, it means that getty start and exit in five seconds.
This is common situation for poor quality Russian phone lines:
modem got CONNECT message and after retries got NO CARRIER.
So I introduce spacing count, it means that this warning and
sleep occurse only after GETTY_NSPACE times of sequental attempts.
----------------------------
revision 1.4
date: 1994/02/28 21:53:52;  author: ache;  state: Exp;  lines: +71 -10
I found (and fix) ugly bugs in init.bsdi (this bugs not present
in old init)

1) Init don't setup TERM environment variable for default terminal
type from /etc/ttys before calling getty/window.

2) When "kill -1 1" issued, init don't restart getty when
/etc/ttys parameters was changed (it only kill "off" end empty entries).

3) Small memory leak if "window" /etc/ttys parameter specified and
"kill -1 1" issued.

Obtained from: FreeBSD 1.x
1994-10-14 17:15:40 +00:00
Jordan K. Hubbard
288b78cdc3 Add ft.
Submitted by:	babb
1994-10-14 06:14:58 +00:00
Jordan K. Hubbard
3270fb5ece Put back the `:' in the trinary ?: so this can actually compile again! :) 1994-10-13 08:46:44 +00:00
Poul-Henning Kamp
72ab19aeb7 Added '-F file' option of mount_mfs. This allows me to make floppy images
without waiting for my floppy-drive all the time :-)  Might have other
interesting uses too.
1994-10-12 22:04:36 +00:00
David Greenman
3156bbb2d1 Backed out part of the last change that prevents the rpos table from
being output if <= 1 rpos; there is a bug in the kernel which doesn't
quite get along with this. Changed default #rpos to 1, and fixed up
manual page. Converted nrpos to 1 if user specifies 0.
1994-10-09 20:10:56 +00:00
Andrey A. Chernov
025dc82971 Modify adjkerntz to not write RTC clock per initial call,
suggested by Bruce
1994-10-04 19:15:13 +00:00
Gary Palmer
3e1d4f3258 Moce comcontrol, fdisk & mount_msdos out of machine-independance into
an I386 specific statement. Also add necessary code to allow
machine-dependance in this makefile

Reviewed by:	rgrimes
1994-10-02 03:38:08 +00:00
David Greenman
56499741c4 Fixed manpage to conform to current reality.
Submitted by:	Rod Grimes, with additional sentence by me.
1994-10-01 20:00:28 +00:00
David Greenman
7ce005d7c1 1) If nrpos <= 1, don't output rpos table (and set fs_cpc to 0) - disabling
the use of the rotational position table.
2) Allow specification of 0 rotational positions (disables function).
3) Make rotdelay=0 and nrpos=0 by default.

   The purpose of the above is to optimize for modern SCSI (and IDE) drives
that do read-ahead/write-behind.
1994-10-01 16:56:22 +00:00
David Greenman
9eb98cece8 Corrected message when no rotational position table is found. 1994-10-01 16:53:53 +00:00
Paul Traina
109f505bfb Router Discovery from Sun Microsystems 1994-09-30 21:16:09 +00:00
Paul Traina
bafea7d8a3 Router discovery code - Courtesy Sun Microsystems 1994-09-30 20:47:35 +00:00
Andrey A. Chernov
0fd4e043f4 Add code to skip "userquota"/"groupquota" options needed for
quotaon/quotacheck
1994-09-29 16:39:26 +00:00
Paul Traina
13e0abcba7 disklabel will dump core if you give it too few numbers to process
Obtained from: NetBSD misc/490 - John Kohl
1994-09-26 04:45:11 +00:00
Garrett Wollman
9e7b894ffe Fix one more _PATH_UNIX. 1994-09-24 03:18:32 +00:00
Garrett Wollman
4be4929c2b Get rid of _PATH_UNIX completely; use getbootfile(3) instead.
DANGER WILL ROBINSON!
_PATH_UNIX is currently defined as the literal string "don't use this".
I am of two minds about this myself, but wanted to get something into the
tree as quickly as possible.
1994-09-24 00:08:43 +00:00
Garrett Wollman
8e3847b2b9 Document more MIB variables. 1994-09-23 19:04:02 +00:00
Garrett Wollman
9d1275ccf4 Add two new flags:
-q just shut up, will you?!
	-u unlink output file after successful load
1994-09-22 22:35:53 +00:00
Garrett Wollman
d599144d24 Automatically load NFS and a bevy of other filesystems. 1994-09-22 22:17:02 +00:00
Garrett Wollman
fed2752194 Automatically load filesystem if not present in system and loadable. 1994-09-22 02:15:34 +00:00
Garrett Wollman
c974f9c6a6 Use getvfs* functions to map between VFS types and names.
Automatically load UFS if it is not present but is loadable.
(This won't happen now, but could happen if we fix NFS diskless support.)
1994-09-22 02:07:33 +00:00
Andrey A. Chernov
736c101eaf Correction for new sysctl interface 1994-09-19 23:18:41 +00:00
Andrey A. Chernov
bb84bd5c6b rewritted to use sysctl, no more /var/run/.adjkerntz now 1994-09-19 23:09:34 +00:00
Doug Rabson
541758b1c6 Added support for MSDOS file systems. 1994-09-19 18:47:12 +00:00
Doug Rabson
5cb2bca1a3 Added mount_msdos.
Obtained from: NetBSD
1994-09-19 15:30:36 +00:00