Matthew Dillon
fe08c21a53
Fix warnings in preparation for adding -Wall -Wcast-qual to the
...
kernel compile.
This commit includes significant work to proper handle const arguments
for the DDB symbol routines.
1999-01-27 23:45:44 +00:00
Matthew Dillon
831a80b0d5
Fix warnings in preparation for adding -Wall -Wcast-qual to the
...
kernel compile
1999-01-27 22:42:27 +00:00
Matthew Dillon
d254af07a1
Fix warnings in preparation for adding -Wall -Wcast-qual to the
...
kernel compile
1999-01-27 21:50:00 +00:00
Matthew Dillon
b4e36adf1c
Fix warnings preparing for -Wall -Wcast-qual
...
Also disable one usb module in LINT due to fatal compilation errors,
temporary.
1999-01-27 20:09:21 +00:00
Matthew Dillon
1c7c3c6a86
This is a rather large commit that encompasses the new swapper,
...
changes to the VM system to support the new swapper, VM bug
fixes, several VM optimizations, and some additional revamping of the
VM code. The specific bug fixes will be documented with additional
forced commits. This commit is somewhat rough in regards to code
cleanup issues.
Reviewed by: "John S. Dyson" <root@dyson.iquest.net>, "David Greenman" <dg@root.com>
1999-01-21 08:29:12 +00:00
Eivind Eklund
15a1057c46
Add 'options DEBUG_LOCKS', which stores extra information in struct
...
lock, and add some macros and function parameters to make sure that
the information get to the point where it can be put in the lock
structure.
While I'm here, add DEBUG_VFS_LOCKS to LINT.
1999-01-20 14:49:12 +00:00
Peter Wemm
b34c073744
Missed a stray LKM #ifdef
1999-01-17 21:04:53 +00:00
Peter Wemm
1351d07f0d
Mountroot could concievably make sense to a KLD though, in the preload
...
case. I'm not sure the autoconf code is up to it though...
1999-01-17 20:41:02 +00:00
Peter Wemm
6bfaa53754
Clean up the KLD/LKM goop a bit.
1999-01-17 20:25:22 +00:00
Eivind Eklund
ea2e827716
Remove declarations for undefined functions and a couple of unused
...
enotsupp implementations.
1999-01-12 11:49:30 +00:00
Bruce Evans
de5d1ba57c
Don't pass unused unused timestamp args to UFS_UPDATE() or waste
...
time initializing them. This almost finishes centralizing (in-core)
timestamp updates in ufs_itimes().
1999-01-07 16:14:19 +00:00
Eivind Eklund
fb1167777a
Remove the 'waslocked' parameter to vfs_object_create().
1999-01-05 18:50:03 +00:00
Peter Wemm
75ba77578f
A partial implementation of the procfs cmdline pseudo-file. This
...
is enough to satisfy things like StarOffice. This is a hack, but doing
it properly would be a LOT of work, and would require extensive grovelling
around in the user address space to find the argv[].
Obtained from: Mostly from Andrzej Bialecki <abial@nask.pl>.
1999-01-05 03:53:06 +00:00
Dmitrij Tejblum
57081f7b94
Now empty DOS filesystems default to long file names. Non-empty filesystems
...
without traces of Win95 default to short file names, as before.
1999-01-02 18:52:13 +00:00
Dmitrij Tejblum
9d9fdb45c5
Ensure that deHighClust in direntry always initialized.
...
Noticed by: Carl Mascott <cmascott@world.std.com>
Don't write access time of a file more than once per day. (Its precision is
1 day anyway). Don't try to write access and creation time in nonwin95 case.
Suggested by: bde (long time ago).
1999-01-02 13:26:29 +00:00
Bruce Evans
289bdf33d3
Ifdefed conditionally used simplock variables.
1999-01-02 11:34:57 +00:00
Bruce Evans
f2aed91b48
Made this compile if UMAPFS_DIAGNOSTIC is defined. This has been broken
...
since before rev.1.1, so UMAPFS_DIAGNOSTIC should not be trusted.
UMAPFS_DIAGNOSTIC is commented out in LINT to hide various bugs.
1999-01-01 10:14:37 +00:00
Eivind Eklund
e910d98670
Fix possible NULL-pointer deref in error case (same as DEVFS).
1998-12-16 00:10:51 +00:00
Matthew Dillon
27ed09c2f0
Cleanup uninitialized-possibly-used (but really not) warnings
1998-12-14 05:00:59 +00:00
Archie Cobbs
f1d19042b0
The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static
...
and local variables, goto labels, and functions declared but not defined.
1998-12-07 21:58:50 +00:00
Eivind Eklund
c598db2204
'\0' is the most ugly NULL pointer constant I've ever seen in real code.
1998-12-07 02:47:46 +00:00
Jordan K. Hubbard
7525853ce7
MFC: loosen compare even though bde doesn't like it.
1998-12-06 11:36:24 +00:00
Archie Cobbs
2127f26023
Examine all occurrences of sprintf(), strcat(), and str[n]cpy()
...
for possible buffer overflow problems. Replaced most sprintf()'s
with snprintf(); for others cases, added terminating NUL bytes where
appropriate, replaced constants like "16" with sizeof(), etc.
These changes include several bug fixes, but most changes are for
maintainability's sake. Any instance where it wasn't "immediately
obvious" that a buffer overflow could not occur was made safer.
Reviewed by: Bruce Evans <bde@zeta.org.au>
Reviewed by: Matthew Dillon <dillon@apollo.backplane.com>
Reviewed by: Mike Spengler <mks@networkcs.com>
1998-12-04 22:54:57 +00:00
Robert V. Baron
0f45501efd
Don't print diagnostic anymore
1998-12-04 18:44:21 +00:00
Dmitrij Tejblum
5c5926277e
Honor MNT_NOATIME.
...
PR: 8383
Submitted by: Carl Mascott <cmascott@world.std.com>
1998-11-29 22:38:57 +00:00
Bruce Evans
1e1c37f1cd
Return ENOTTY instead of EBADF for ioctls on dead vnodes. This fixes
...
tcsetpgrp() on controlling terminals that are no longer associated
with the session of the calling process, not to mention ioctl.2.
1998-11-22 09:19:07 +00:00
Dmitrij Tejblum
bad3d41d83
Support NT VFAT lower case flags.
...
PR: 8383
(Mostly) Submitted by: Carl Mascott <cmascott@world.std.com>
1998-11-21 00:20:24 +00:00
Robert V. Baron
b3a2ec1e44
A few bug fixes for Robert Watson
1998-11-16 19:48:26 +00:00
Bruce Evans
c25ded316f
Finished updating module event handlers to be compatible with
...
modeventhand_t.
1998-11-15 15:33:52 +00:00
Robert V. Baron
a6c122eaf6
coda_lookup now passes up an extra flag. But old veni will
...
be ok; new veni will check /dev/cfs0 to make sure that a new
kernel is running.
Also, a bug in vc_nb_close iff CODA_SIGNAL's were seen has been
fixed.
1998-11-11 20:32:20 +00:00
Peter Wemm
1c5bb3eaa1
add #include <sys/kernel.h> where it's needed by MALLOC_DEFINE()
1998-11-10 09:16:29 +00:00
Peter Wemm
5187e87901
"fix" a warning that has been bugging me for ages. Eliminate a couple
...
of temporary variables since they are only used once and their types
were the cause of the warnings.
1998-11-09 09:21:25 +00:00
Peter Wemm
7b91328a39
Support KLD. We register and unregister two modules. "coda" (the vfs)
...
via VFS_SET(), and "codadev" for the cdevsw entry. From kldstat -v:
3 1 0xf02c5000 115d8 coda.ko
Contains modules:
Id Name
2 codadev
3 coda
1998-11-03 08:55:06 +00:00
Peter Wemm
8c14bf40a1
Change the #ifdef UNION code into a callable hook. Arrange to have this
...
set up when unionfs is present, either statically or as a kld module.
1998-11-03 08:01:48 +00:00
Peter Wemm
40c8cfe552
Use TAILQ macros for clean/dirty block list processing. Set b_xflags
...
rather than abusing the list next pointer with a magic number.
1998-10-31 15:31:29 +00:00
Peter Wemm
44fdad9976
Use vtruncbuf() rather than vinvalbuf() when shortening files.
1998-10-29 09:29:17 +00:00
Robert V. Baron
6f72efa21b
Change the way unmounting happens to guarantee that the
...
client programs are allowed to finish up (coda_call is
forced to complete) and release their locks. Thus there
is a reasonable chance that the vflush implicit in the
unmount will not get hung on held locks.
1998-10-28 20:31:13 +00:00
Robert V. Baron
e8e04c2b37
Venus must be passed O_CREAT flag on VOP_OPEN iff this is
...
a creat so that we can will allow a mode 444 file to be
written into. Sync with the latest coda.h and deal with
collateral damage.
1998-10-28 19:33:50 +00:00
David Greenman
730075613a
Added a second argument, "activate" to the vm_page_unwire() call so that
...
the caller can select either inactive or active queue to put the page on.
1998-10-28 13:37:02 +00:00
Bruce Evans
569555b969
Removed redundant bitrotted checks for major numbers instead of updating
...
them.
1998-10-26 08:53:13 +00:00
Bruce Evans
65baf8f06b
Don't follow null bdevsw pointers. The `major(dev) < nblkdev' test rotted
...
when bdevsw[] became sparse. We still depend on magic to avoid having to
check that (v_rdev) device numbers in vnodes are not NODEV.
1998-10-25 19:26:18 +00:00
Poul-Henning Kamp
f5ef029e92
Nitpicking and dusting performed on a train. Removes trivial warnings
...
about unused variables, labels and other lint.
1998-10-25 17:44:59 +00:00
Robert V. Baron
ecee3646ce
Fixes for lkm:
...
1. use VFS_LKM vs ACTUALLY_LKM_NOT_KERNEL
2. don't pass -DCODA to lkm build
1998-09-29 20:19:45 +00:00
Robert V. Baron
059b1b8277
Cleanup and fix THE bug
1998-09-28 20:52:58 +00:00
Robert V. Baron
435385d6ae
Don't lose this file
1998-09-25 17:40:50 +00:00
Robert V. Baron
6a6e8b2134
Put "stray" printouts under DIAGNOSTIC. Make everything build
...
with DEBUG on. Add support for lkm. (The macro's don't work
for me; for a good chuckle look at the end of coda_fbsd.c.)
1998-09-25 17:38:32 +00:00
Søren Schmidt
d024c95599
Remove the SLICE code.
...
This clearly needs alot more thought, and we dont need this to hunt
us down in 3.0-RELEASE.
1998-09-14 19:56:42 +00:00
Dmitrij Tejblum
5d3e2869e5
Remove unused variable.
...
Pointed out by: bde
1998-09-13 15:40:31 +00:00
Dmitrij Tejblum
e27b047ccf
Fix a bug related to renaming in root directory. This bug reported by
...
Cejka Rudolf <cejkar@dcse.fee.vutbr.cz> on freebsd-current in Messaage-Id
<199807141023.MAA09803@kazi.dcse.fee.vutbr.cz>.
Reviewed by: bde
1998-09-13 15:39:01 +00:00
Robert V. Baron
d3459488ae
Finish conversion of cfs -> coda
1998-09-13 13:57:59 +00:00