summaryrefslogtreecommitdiffstats
path: root/sys/gnu
Commit message (Collapse)AuthorAgeFilesLines
* Removed unused #includes (bogus #includes were necessary because fusword()bde1997-08-312-4/+2
| | | | was declared in the wrong place).
* Uncut&paste cache_lookup().phk1997-08-266-102/+8
| | | | | | | | | | | | | | | This unifies several times in theory indentical 50 lines of code. The filesystems have a new method: vop_cachedlookup, which is the meat of the lookup, and use vfs_cache_lookup() for their vop_lookup method. vfs_cache_lookup() will check the namecache and pass on to the vop_cachedlookup method in case of a miss. It's still the task of the individual filesystems to populate the namecache with cache_enter(). Filesystems that do not use the namecache will just provide the vop_lookup method as usual.
* Code cleanup. Removed !FreeBSD code arround sysctl stuff. Renamedkato1997-08-244-46/+14
| | | | | | | | doclusterread/doclusterwrite into ext2_doclusterread and ext2_doclusterwrite, which are unique names. Moved #include of <sys/sysctl.h> to the top of the file. Pointed out by: Bruce Evans <bde@zeta.org.au>
* Added sysctl args vfs.ext2fs.doclusterread andkato1997-08-234-18/+56
| | | | | vfs.ext2fs.doclusterwrite which control cluster read/write operation on ext2fs filesystem.
* Fix all areas of the system (or at least all those in LINT) to avoid storingwollman1997-08-162-4/+4
| | | | | | | | socket addresses in mbufs. (Socket buffers are the one exception.) A number of kernel APIs needed to get fixed in order to make this happen. Also, fix three protocol families which kept PCBs in mbufs to not malloc them instead. Delete some old compatibility cruft while we're at it, and add some new routines in the in_cksum family.
* Fix a problem with ext2fs so that filesystems mounted at reboot don'tdyson1997-08-048-38/+76
| | | | | | | | | keep ahold of buffers, and therefore leave filesystems dirty. I haven't been able to test, but the code compiles. Those who run -current, please test and report back!!! (Sorry :-)). PR: kern/3571 Submitted by: Dirk Keunecke <dk@panda.rhein-main.de>
* Fixed bitrot in fpu LKMs.bde1997-07-201-7/+4
|
* Fixed comment about i_spare.bde1997-07-132-4/+4
|
* Don't depend on gcc's feature of permitting labels that aren't followedbde1997-07-011-3/+3
| | | | by a statement.
* Don't depend on gcc's feature of permitting returning void expressionsbde1997-07-012-5/+8
| | | | in functions returning void.
* Fix a problem with the VN device. Specifically, the VN device candyson1997-06-152-0/+12
| | | | | | | | | | cause a problem of spiraling death due to buffer resource limitations. The vfs_bio code in general had little ability to handle buffer resource management, and now it does. Also, there are a lot more knobs for tuning the vfs_bio code now. The knobs came free because of the need that there always be some immediately available buffers (non-delayed or locked) for use. Note that the buffer cache code is much less likely to get bogged down with lots of delayed writes, even more so than before.
* Removed unused #includes.bde1997-06-141-6/+1
|
* Removed unused #includes.bde1997-06-1425-68/+37
|
* Removed unused #includes.bde1997-06-1418-50/+4
|
* Shrink struct inode by 20 bytes, so that malloc wastes less space.phk1997-05-222-4/+4
| | | | Pointed out by: bde
* Make the necessary changes so that an ELF kernel can be built. Ijdp1997-04-2214-75/+35
| | | | | | | | | | | | | | | | have successfully built, booted, and run a number of different ELF kernel configurations, including GENERIC. LINT also builds and links cleanly, though I have not tried to boot it. The impact on developers is virtually nil, except for two things. All linker sets that might possibly be present in the kernel must be listed in "sys/i386/i386/setdefs.h". And all C symbols that are also referenced from assembly language code must be listed in "sys/i386/include/asnames.h". It so happens that failure to do these things will have no impact on the a.out kernel. But it will break the build of the ELF kernel. The ELF bootloader works, but it is not ready to commit quite yet.
* Support NFS cookies in VOP_READDIR, allowing ext2fs filesystems to bedfr1997-04-052-0/+52
| | | | | | exported via NFS. 2.2 candidate.
* Fixed gratuitous ANSIisms.bde1997-04-018-28/+34
| | | | Removed trailing newline from panic messages.
* Use __i386__ instead of i386 in ifdefs.bde1997-04-016-10/+18
| | | | Don't compile unused (debugging?) functions.
* Removed nested include of <ufs/ufs/dir.h>. Use the pre-Lite2 hack ofbde1997-04-012-4/+12
| | | | | | | | | | defining doff_t both here and in <ufs/ufs/dir.h> so that this file is independent of <ufs/ufs/dir.h>. It still has old prerequisites <sys/param.h> and <ufs/ufs/quota.h>, and a new Lite2 prerequisite of <sys/lock.h>, sigh. This might fix lsof, which was broken by namespace pollution giving conflicting definitions of DIRBLKSIZ.
* Don't include <sys/ioctl.h> in the kernel. Stage 1: don't includebde1997-03-243-4/+1
| | | | | it when it is not used. In most cases, the reasons for including it went away when the special ioctl headers became self-sufficient.
* Don't #include <sys/fcntl.h> in <sys/file.h> if KERNEL is defined.bde1997-03-233-4/+4
| | | | | Fixed everything that depended on getting fcntl.h stuff from the wrong place. Most things don't depend on file.h stuff at all.
* Fixed some invalid (non-atomic) accesses to `time', mostly ones of thebde1997-03-2210-46/+22
| | | | | | form `tv = time'. Use a new function gettime(). The current version just forces atomicicity without fixing precision or efficiency bugs. Simplified some related valid accesses by using the central function.
* Update a number of routines to reflect the actual namempp1997-03-092-4/+4
| | | | of the routine that caused the panic.
* Removed unused flag IN_RECURSE and unused struct member i_lockcount.bde1997-03-032-6/+2
|
* Removed useless setting of IN_RECURSE. The (anti) locking for this needsbde1997-03-032-16/+0
| | | | to be done in a different way, if at all.
* Correct the port of ext2fs to Lite/2. I incorrectly used ufs_reclaimdyson1997-02-262-6/+8
| | | | instead of ffs_reclaim.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-2249-49/+49
| | | | ready for it yet.
* Fixed type mismatches. i_spare[N] in ufs/inode.h changed from long tobde1997-02-124-8/+8
| | | | | int. Change ext2fs to match. We probably already assume that ints have >= 32 bits.
* Add function prototypes for most of the new Lite2 functions.mpp1997-02-122-0/+2
| | | | | | Also made a few of the miscfs routines static to be consistent. Some modules simply required some additional #includes to remove -Wall warnings.
* This is the kernel Lite/2 commit. There are some requisite userlanddyson1997-02-1019-293/+302
| | | | | | | | | | | | | | | changes, so don't expect to be able to run the kernel as-is (very well) without the appropriate Lite/2 userland changes. The system boots and can mount UFS filesystems. Untested: ext2fs, msdosfs, NFS Known problems: Incorrect Berkeley ID strings in some files. Mount_std mounts will not work until the getfsent library routine is changed. Reviewed by: various people Submitted by: Jeffery Hsu <hsu@freebsd.org>
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1449-49/+49
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* This commit is the embodiment of some VFS read clustering improvements.dyson1996-12-292-2/+4
| | | | | | | | | | Firstly, now our read-ahead clustering is on a file descriptor basis and not on a per-vnode basis. This will allow multiple processes reading the same file to take advantage of read-ahead clustering. Secondly, there previously was a problem with large reads still using the ramp-up algorithm. Of course, that was bogus, and now we read the entire "chunk" off of the disk in one operation. The read-ahead clustering algorithm should use less CPU than the previous also (I hope :-)).
* Much fixed & working digiboard driver.davidn1996-12-184-934/+1333
|
* Fixed lookup of ".." in checkpath. It always failed, so renames ofbde1996-11-092-2/+2
| | | | | | | | directories to a different parent directory always failed. This bug was caused by 4.4Lite2 changing the directory format and ext2fs not keeping up. Should be in 2.2.
* Fixed spacefree calculation in ext2_direnter(). This bug sometimes causedbde1996-11-082-2/+2
| | | | | | | | | panics. This should be in 2.2, of course. Submitted by: davidg Obtained from: bouyer@antioche.ibp.fr (Manuel BOUYER) (fix for NetBSD)
* Removed gratuitous differences between ext2_readwrite.c and ufs_readwrite.c.bde1996-11-082-24/+34
| | | | | | | | | | | | | | | | | This fixes several bugs and one missing feature: - cluster_read() was needlessly used for reading files of size exactly 1 block. - EFAULT errors for read didn't terminate the loop. This was probably harmless. - IO_VMIO handling was missing near line 275. I don't know what this does. - B_CLUSTEROK was only set if (doclusterwrite) nead line 293. This was harmless, if only because another bug prevents doclusterwrite from being 0. - MNT_NOATIME wasn't implemented. This should be in 2.2, of course. Reviewed by: davidg
* Removing old isdn stuff.phk1996-10-2010-4746/+0
|
* removing old isdn stuff.phk1996-10-201-221/+0
|
* Updated #includes to 4.4lite style.bde1996-10-151-4/+3
|
* Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:bde1996-09-211-2/+16
| | | | | | | | | | | | | - don't include <sys/ioctl.h> in any header. Include <sys/ioccom.h> instead. This was already done in 4.4Lite for the most important ioctl headers. Header spam currently increases kernel build times by 10-20%. There are more than 30000 #includes (not counting duplicates) for compiling LINT. - include <sys/types.h> if and only it is necessary to make the header almost self-sufficient (some ioctl headers still need structs from elsewhere). - uniformized idempotency ifdefs. Copied the style in the 4.4Lite ioctl headers.
* Whoops, I should've used the LINT config file. More ts -> tv changesnate1996-09-204-32/+32
| | | | for timespec structure.
* In sys/time.h, struct timespec is defined as:nate1996-09-192-8/+8
| | | | | | | | | | | | | | /* * Structure defined by POSIX.4 to be like a timeval. */ struct timespec { time_t ts_sec; /* seconds */ long ts_nsec; /* and nanoseconds */ }; The correct names of the fields are tv_sec and tv_nsec. Reminded by: James Drobina <jdrobina@infinet.com>
* Updated #includes to 4.4Lite style.bde1996-09-1038-218/+218
|
* Remove devconf, it never grew up to be of any use.phk1996-09-061-39/+1
|
* Added #include of <machine/md_var.h>. This will be needed whenbde1996-06-252-2/+4
| | | | | some declarations are moved from <machine/cpufunc.h> to better places.
* Removed unused #includes of <i386/isa/icu.h> and <i386/isa/icu.h>. icu.hbde1996-06-181-3/+1
| | | | | | | is only used by the icu support modules and by a few drivers that know too much about the icu (most only use it to convert `n' to `IRQn'). isa.h is only used by ioconf.c and by a few drivers that know too much about isa addresses (a few have to, because config is deficient).
* Clean up -Wunused warnings.gpalmer1996-06-1219-97/+108
| | | | Reviewed by: bde
* Removed bogus _BEGIN_DECLS/_END_DECLS.bde1996-05-012-34/+20
| | | | | | Removed unused struct tag declarations in cloned code. Added or cleaned up idempotency ifdefs.
* Removed the 2 remaining calls to sleep().bde1996-04-071-4/+4
|
OpenPOWER on IntegriCloud