Commit Graph

442 Commits

Author SHA1 Message Date
ache
e2ae692e16 Add dumpon 1995-05-14 18:43:25 +00:00
dg
9dfe5706e1 Take out special error message for EINVAL...we really do want it to be
"invalid argument".
1995-05-14 02:18:18 +00:00
dg
80e3b4e2e2 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
wollman
e7f4268dca Learn how to print out kern.dumpdev as a name. 1995-05-12 19:10:56 +00:00
wollman
56ee935a63 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
jkh
cb6e225e6d Remove all reference to sysinstall - it's going away. 1995-05-09 23:03:22 +00:00
dufault
3f2591aedf Add support for editing mode pages. 1995-05-05 20:42:00 +00:00
dg
c68af9669e Flush stdout when writing out each superblock backup. 1995-05-02 07:45:39 +00:00
dufault
77ae782956 Don't print out zero length names when verbose is set. 1995-05-01 12:54:32 +00:00
dufault
adef302b24 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
dufault
0066e95aad 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
pst
a153267748 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
a22e09d218 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
gpalmer
0ff5903c59 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
phk
c25099ace8 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
dufault
d2dce54f6d Remove "BUG" of not supporting arguments for "-o" 1995-04-17 14:51:54 +00:00
dufault
040c684860 Add support for arguments in output "-o" string. 1995-04-17 14:35:07 +00:00
gpalmer
d147c76902 Bump to 2.0-950418-SNAP 1995-04-17 10:19:31 +00:00
gpalmer
8b08997fc4 Claim 0xA7 for NEXTSTEP in here also. 1995-04-17 09:46:03 +00:00
gpalmer
cf76707291 Add NEXTSTEP as claiming partition code 0xA7. 1995-04-17 09:42:54 +00:00
jkh
480daab131 Bump the snap date. 1995-04-15 16:40:34 +00:00
jkh
b95b5c686f We're now shooting for a 950412-SNAP
Reviewed by:
Submitted by:
Obtained from:
1995-04-12 22:26:47 +00:00
jkh
6d173eb9b5 Bump this to 0408. I have my reasons. 1995-04-11 07:43:33 +00:00
wollman
c8030d2b96 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
bde
f9b7dacd3c Update declaration to match the change made to dir.c a few hours ago. 1995-04-02 22:53:36 +00:00
bde
609920955f 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
bde
7caaf6f200 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
bde
93d526e43b 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
bde
2742dc81e0 Submitted by: phk, added to by bde
Fix all the warnings from `gcc -Wall'.
1995-04-02 14:52:29 +00:00
ugen
9c02dc08f0 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
wpaul
af8a974897 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
ache
e6a1b97276 Use more AI to predict initial/final isdst,
latest isdst  preffered.
1995-03-26 22:51:51 +00:00
phk
d5c6edea4c add a \t which has been nagging me too long 1995-03-19 06:28:48 +00:00
phk
c88a90c41d Remove reference to fsdb(8). We don't have it. 1995-03-17 04:41:18 +00:00
wollman
d83a02d4f2 Fix long-standing core dump when ld returns failure. 1995-03-16 17:11:21 +00:00
dg
876858a7b2 Changed manual page to conform to the reality in FreeBSD. 1995-03-15 07:08:33 +00:00
phk
4d16787856 Extract the cpio-floppy relative to the root, not /stand. 1995-03-15 06:16:10 +00:00
joerg
aa3df4d05b 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
wpaul
f35bd2b8e8 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
c019fd7240 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
93ea085cc1 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
9448c15a5d 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
08f16d8685 Oops..remove some debugging leftover.. 1995-03-03 12:47:23 +00:00
ugen
eae8a60e05 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
9c085a7dcf 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
phk
d773cfca45 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
phk
1f2fc94f00 oops. 1995-02-26 02:00:35 +00:00
phk
8c6185fb31 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
ache
cc94453d73 configure_network() if carrier already present
Submitted by: serg@opus.opu.odessa.ua
1995-02-25 18:06:23 +00:00
ugen
710cfa1891 Change utility to accept interface name
along with IP as "via" argument
1995-02-24 14:32:45 +00:00