Commit Graph

12046 Commits

Author SHA1 Message Date
bde
09b2ad8f57 Partially fixed negative and truncated "Avail" counts in df output.
This fixes PR943.

ffs/ffs_vfsops.c:
ffs_statfs() multiplied by (100 - minfree) as part of calculating the
minfree percentage (complemented in 100%), so with the standard minfree
of 8, it was broken for file systems of size >= 1TB/92 = 11GB.  Use the
standard freespace() macro instead.  This also fixes a rounding bug (the
"Avail" count was sometimes 1 too small).

ffs/* (not fixed):
The freespace() macro multiplies by minfree, so with the standard
minfree of 8, it is broken for file systems of size >= 1TB/8 = 128GB.
This bug is more serious since it affects block allocation.

ffs/ffs_alloc.c (not fixed):
Ordinary users are sometimes allowed to allocate 1 (partial) block
too many so that the "Avail" count goes negative.  E.g., if there is
1 fragment available and the file is fairly large, one more full
block is allocated.

df/df.c:
ufs_df() used/uses essentially the same code as ffs_statfs(), so it
had/has the same bugs.

ufs_df() gratuitously replaced "Avail" counts of < 0 by 0, so it
gave different results for non-mounted file systems in this case.
1996-01-14 18:55:09 +00:00
joerg
1fb34dbd86 Bump the timeout in st_load() from 5 to 15 minutes. My Tandberg
TDC3620 takes 4.5 minutes to retenstion a QIC-250 cartridge, so the
5 minutes seem to be too tight.
1996-01-14 16:29:01 +00:00
jkh
57baffd6ba Don't try to swap to a disk that isn't selected. 1996-01-14 11:45:05 +00:00
sos
8c205b9407 Add linux_mknod so that it will do mkfifo if needed... 1996-01-14 10:59:58 +00:00
gibbs
dc5826ccfb Register our softc at attach time. I forgot to do this in my last commit,
causing a panic.
1996-01-14 02:19:42 +00:00
phk
5922cb9d54 Shrink BOOTMFS kernel further. Make doFS.sh more intelligent.
boot4.flp should work fine as far as I can tell.
1996-01-13 23:31:46 +00:00
phk
541487770e Document NFS_NOSERVER. 1996-01-13 23:30:10 +00:00
phk
bd3c94b695 Add an option NFS_NOSERVER which saves 100K in the install kernel (or
any other kernel that uses it).  Use with option NFS.
1996-01-13 23:27:58 +00:00
bde
ff115eca17 Fixed renaming of private DEBUG macro. The previous revision missed
one case in asc.c and almost all cases in gsc.c.
1996-01-13 20:43:10 +00:00
phk
b66b3c7839 Avoid bzero becomming a common symbol in all .o files. 1996-01-13 18:02:41 +00:00
jkh
27b9aaa7d7 Return pointer to new hash node when search inserts it (e.g. there
was some datum given).
1996-01-13 14:25:04 +00:00
peter
6f85952b3c take the $ out of the $Id$ line - when I imported this I used -ko, but
that is conflicting with cvs-1.6's "cvs update -A" when run from freefall's
update jobs.
1996-01-13 13:21:28 +00:00
joerg
9a2ecb3da7 Forgot to update the man page for the `retension' command. 1996-01-13 09:46:26 +00:00
peter
489d39e95e The last of the bind-4.9.3-REL resolver merges. 1996-01-13 09:03:58 +00:00
asami
dc888de5c7 Add "Wes Santee <wsantee@wsantee.oz.net>" for the tkHTML/wwwish distfile
disappearance report.
1996-01-13 07:53:08 +00:00
jdp
656834b2d9 This release is a moderate restructuring of the dynamic linker.
It addresses a number of problems that were present in earlier
versions.

The calls to the "init" and "fini" functions of shared libraries
have been reordered, so that they are called in a strictly nested
fashion, as is required for C++ constructors and destructors.  In
addition, the "init" functions are called in better order relative
to each other.  That makes the system more tolerant of C++ programs
which depend on a library's being initialized before its clients.

The dynamic linker is now more tolerant of shared libraries in
which dependencies on other shared libraries are incompletely
recorded.

Cleanup in the event of errors has been improved throughout the
dynamic linker.  A number of memory leaks were eliminated.

The warning message for a shared library whose minor version number
is too old has been clarified.

The code dealing with the "ld.so.hints" file has been cleaned up.
A bug that caused the hints file to be unmapped incompletely has
been fixed.  A different bug that could potentially cause the hints
file to be mapped on top of a loaded object has been fixed.

The code that searches for shared libraries has been cleaned up.
The searching is now more compatible with that done by SunOS and
SVR4.  Also, some unnecessary and useless searches of both the
hints file and library directories have been eliminated.

Reviewed by:	nate@freebsd.org
1996-01-13 00:15:25 +00:00
jdp
1b03fbd3af Split up the code so that a single directory can be searched, to
support some changes in the dynamic linker.  (This code is shared
by the dynamic linker.)

Reviewed by:	nate@freebsd.org
1996-01-13 00:14:53 +00:00
wollman
144fd7d11a This file doesn't belong in the source tree. If anywhere, it should
be in CVSROOT, or in some directory local to freefall.
1996-01-12 19:41:25 +00:00
wollman
61f875f99f Kill another old TODO file. Can we agree that this sort of documentation
doesn't belong in the root of the source tree?
1996-01-12 19:40:06 +00:00
bde
0569fe704e Fixed handling of Feb 29 in resettodr(). 1996-01-12 17:33:12 +00:00
joerg
5f588484d9 Rename the retens' command into retension', to follow existing de-facto
standards.
1996-01-12 15:36:28 +00:00
peter
7b2f47ec9c Make a little more effort to avoid touching certain generated files if
they were not changed.  This makes 'make depend' more useful.
1996-01-12 08:57:10 +00:00
peter
d7b348d79e oops. I forgot to add the "[-U username]" option to the usage string. 1996-01-12 08:49:43 +00:00
wpaul
7a32a2355c Update pointer to yppush.
(And now, on to rpc.yppasswdd...)
1996-01-12 07:07:18 +00:00
wpaul
16d3c49889 This commit was generated by cvs2svn to compensate for changes in r13394,
which included commits to RCS files with non-trunk default branches.
1996-01-12 07:03:33 +00:00
wpaul
57e5d5b649 Import the new yppush.
This program does what the old one did, PLUS:

- Supports parallel jobs (like the SunOS yppush)
- Does everything in one proces instead of fork()ing off
  children processes as callback listeners (this is done
  using async socket I/O).
- Can be used to transmit maps to user-specified hosts.
- Has a much more verbose verbose option.
- Reuses existing code from ypserv and ypxfr.
- Uses some rpcgen-erated code as well.
- Isn't fattening. :)

Note that this is going in /usr/sbin rather than /usr/bin like
the old one. yppush is an administrative command it it's anything.
1996-01-12 07:03:33 +00:00
wpaul
123a4a4f53 Toss the old yppush into the attic. 1996-01-12 06:46:19 +00:00
wpaul
8adc2eedca Remove yppush; it's about to be replaced. 1996-01-12 06:43:33 +00:00
phk
2213b71fc0 A new cleaned up Makefile. 1996-01-11 20:28:40 +00:00
phk
84335abef7 Another '-' needed for make release. 1996-01-11 17:49:55 +00:00
phk
4eb4879986 Final cleanup for now. -Wall is now silent. A couple of bogons found. 1996-01-11 17:48:59 +00:00
phk
81dcdfaae7 Make the new realinstall target a little less draconian so that make release
doesn't fall over.
1996-01-11 17:27:16 +00:00
gibbs
ad2f315960 Take a different approach to the SPIORDY race condition. Simply clear
SPIORDY just before we ack on the bus so that there is no chance to
see SPIORDY for the same byte twice.

Make some small modifications so that the Linux aic7xxx driver can use
our sequencer and register definition files verbatum.
1996-01-11 06:17:49 +00:00
peter
b96513d925 My freshly aborted 'make world' has pointed out that the wait.h include
file is <sys/wait.h>, not <wait.h> as was recently committed.
1996-01-11 05:58:59 +00:00
peter
d4b5abf549 Whoops. cvsinit was creating a modules file in CVSROOT with an
explicit (and wrong) /usr/local/bin/mkmodules path. We install in /usr/bin.

Noticed by: Faried Nawaz <fn@pain.csrv.uidaho.edu>
1996-01-11 05:56:35 +00:00
jdp
c0c61317a8 Install ld.so in a way that is safe even on a running system. 1996-01-11 03:45:55 +00:00
ache
7d913f1a01 Localize it. 1996-01-10 21:42:14 +00:00
phk
2150a5bdfe A random bunch of cleanup changes. 1996-01-10 21:28:04 +00:00
ache
c944580e06 Add empty /var/log/slip.log creation to distribution: target where
other empty logs created.
Pointed by Bruce.
1996-01-10 21:22:28 +00:00
se
3f28cf3423 Add back initialization of "ncrp[unit]" since ncrcontrol relies on it. 1996-01-10 21:20:57 +00:00
wpaul
1847221086 - Fix error reporting when checking order number via NIS: we return zero
on a failure, but if we're checking a corrupt map we could also get back
  a zero from ypserv without really encountering any actual error. Flag this
  condition and generate an meaningful error message.

- Fix transmission of ypxfr_clear to ypserv: error checking was wrong
  and we sending YPXFR_YPERR as an error status instead of YPXFR_CLEAR.

- To help avoid a race condition (or at least reduce the likelyhood of
  it occuring), use rename() to move a newly transfered map into place
  instead of unlink()ing the old one first and then renaming. Da man page
  sez that rename should do the unlink() for us. This prevents ypserv
  from returning 'no such map in domain' when asked to query a map which
  ypxfr has just unlink()ed but not yet replaced.
1996-01-10 17:44:10 +00:00
wpaul
d64c474342 More changes brought about by testing of yppush (which is almost finished):
In yp_server.c:

- Modify ypproc_xfr_2_svc() so that it sends both a return status and
  a yppush callback (if necessary: normally ypxfr is supposed to send the
  callback once it's done transfering a map, but if we can't get ypxfr
  off the ground for some reason, we have to send it here instead) and
  do it in the right order: have to send the reply to the ypproc_xfr
  request first, then send callback. This requires us to cheat a bit:
  you're supposed to just return() and let the RPC dispatcher send
  the reply for you, but we wouldn't be able to send the callback message
  if we did that, so we have to call svc_sendreply() ourselves, then
  send the callback, and then return NULL so that the RPC dispatcher
  won't call svc_sendreply() itself.

- Also modify ypproc_xfr_2_svc() so that it doesn't invoke ypxfr with
  the -f flag: this overrides the order number checks, which prevents
  us from ever refusing maps that aren't newer than then ones we already
  have.

In yp_access.c:

- Fix a typo in the TCP_WRAPPER support code (which is #ifdef'ed out
  by default): a close paren somehow vanished into the ether.
1996-01-10 16:07:39 +00:00
jkh
9c0743cc84 Fix small bug with negative item_no. 1996-01-10 13:57:46 +00:00
mpp
0217bbb435 Correct the strspn() man page so that it no longer references
itself as strcspn().

Obtained from:  NetBSD-bugs mailing list (PR# 1905)
1996-01-10 11:06:25 +00:00
mpp
ac2081f54e Correct the path used to invoke "pr" if the "-l" option to diff is
specified.  Also invoke "pr" with "-F" instead of the invalid "-f"
option.

Obtained from:  NetBSD-bugs mailing list (PR# 1896)
1996-01-10 10:41:47 +00:00
phk
a30379b9f0 Remember to make the kernels dir. 1996-01-10 08:51:08 +00:00
phk
84dcb84f10 Don't make the fs-image in /dev :-) 1996-01-10 06:32:22 +00:00
ats
1389f3d793 Add the 3C595 as a supported device for vx0. Delete the rest of the line
for the vx0 device, it is not needed as for all other pci devices.
1996-01-09 23:14:57 +00:00
ats
a958d6f807 Add the pci-numbers for the 3c595 10/100Mb card to the driver. 1996-01-09 23:07:32 +00:00
graichen
8f95a184ee fixed some printf format mismatches and some lines exceeding 80 col's
(thanks to bruce)
1996-01-09 21:41:01 +00:00