summaryrefslogtreecommitdiffstats
path: root/sys/ufs
Commit message (Collapse)AuthorAgeFilesLines
* Removed bogus __BEGIN_DECS/__END_DECLS.bde1995-11-281-3/+1
|
* After having put on my Asbestos suit, complete the MFS_ROOT part of Terry'speter1995-11-281-26/+27
| | | | | mountroot changes. This means that the mfs_initminiroot functionality into the root mfs_mount....
* Attempt to solve the busy-buffers-on-shutdown caused by MFS once and for all.peter1995-11-281-4/+14
| | | | | | | | | | | | | What was happening, was that the main mfs loop was sleeping, and when it was being awoken by a wakeup when it was supposed to process some IO requests. The problem was that if it was being woken out of the tsleep() by a signal at shutdown, it was going straight into dounmount() without servicing any pending IO requests, causing dounmount() to fail because there were busy buffers (and they could not be "processed" because the processing loop was trying to unmount rather than dispatching into mfs_doio()). This (dare I say it :-) appears to be a layering problem....
* Update the wd.c driver to use the new TAILQ scheme for devicedyson1995-11-231-1/+94
| | | | | | buffer queue. Also, create a new subroutine 'tqdisksort' that is an improved version of the original disksort that also uses TAILQs.
* Completed function declarations and/or added prototypes.bde1995-11-211-4/+2
|
* Fix compiler warnings.phk1995-11-202-5/+4
|
* General fixes to the vfs clustring code:dyson1995-11-191-1/+5
| | | | | | | | | | | | | 1) Make cluster buffer list be a non-malloced chain. This eliminates yet another 'evil' M_WAITOK and generally cleans up the code. 2) Fix write clustering for ext2fs. It was just broken. Also, ffs clustering had an efficiency problem that more bawrites were happening than should have been. 3) Make changes to buf.h to support the above, plus remove b_pfcent at the request of David Greenman. Note that the reallocblocks code is disabled pending rewrite for the cluster buffer list changes.
* Change incorrect '#if EXT2FS' to '#ifdef EXT2FS'dyson1995-11-191-17/+17
|
* Get rid of the last debug sysctl variables of the old style.phk1995-11-142-5/+5
|
* Included <sys/sysproto.h> to get central declarations for syscall argsbde1995-11-121-1/+10
| | | | | | | | | | structs and prototypes for syscalls. Ifdefed duplicated decentralized declarations of args structs. It's convenient to have this visible but they are hard to maintain. Some are already different from the central declarations. 4.4lite2 puts them in comments in the function headers but I wanted to avoid the large changes for that.
* Introduced a type `vop_t' for vnode operation functions and usedbde1995-11-097-322/+322
| | | | | | | | | | | | | | | it 1138 times (:-() in casts and a few more times in declarations. This change is null for the i386. The type has to be `typedef int vop_t(void *)' and not `typedef int vop_t()' because `gcc -Wstrict-prototypes' warns about the latter. Since vnode op functions are called with args of different (struct pointer) types, neither of these function types is any use for type checking of the arg, so it would be preferable not to use the complete function type, especially since using the complete type requires adding 1138 casts to avoid compiler warnings and another 40+ casts to reverse the function pointer conversions before calling the functions.
* This commit causes UFS to perform at Linux EXT2FS metadata rates. Afterdyson1995-11-061-4/+20
| | | | | | | | earlier discussions with DG, and a recent email exchange with SEF, I decided to allow UFS to run wide-open on an experimental basis. We will probably support eventually multiple async modes, and this is the fastest the we can expect. Just use the -o async flag on the UFS mount. Good luck...
* Changes to existing files for ext2fs support. The UFS mods need reworkdyson1995-11-054-8/+132
| | | | | in the future as they are a bit crufty -- but at least the stuff is in the tree now.
* Fix ufs_bmap so that triple indirect blocks might work.dyson1995-11-051-2/+2
| | | | Submitted by: Godmar Back <gback@facility.cs.utah.edu>
* Make MNT_ASYNC more effective for UFS. It should not be too much moredyson1995-11-052-3/+8
| | | | | | | dangerous than the original MNT_ASYNC. There might be some minor security considerations due to data writes not being posted as promptly as before. Meta-data operations are still not quite as fast as Linux, but streaming I/O is still higher.
* mfs_open could panic with false identification: panic("mfs_ioctl: ....peter1995-10-311-2/+2
|
* Finalize GETPAGES layering scheme. Move the device GETPAGESdyson1995-10-232-132/+61
| | | | | interface into specfs code. No need at this point to modify the PUTPAGES stuff except in the layered-type (NULL/UNION) filesystems.
* Moved the filesystem read-only check out of the syscalls and into thedg1995-10-222-43/+66
| | | | | | | | filesystem layer, as was done in lite-2. Merged in some other cosmetic changes while I was at it. Rewrote most of msdosfs_access() to be more like ufs_access() and to include the FS read-only check. Obtained from: partially from 4.4BSD-lite2
* Return EINVAL instead of panicing for rename("dir1", "dir2/..").bde1995-10-071-2/+2
| | | | | | Fixes part of PR 760. This bug seems to be very old.
* use roundup2 to avoid a bunch of 64bit divides.phk1995-10-061-5/+5
|
* Re-enable read clustering.dyson1995-09-251-3/+3
|
* Shit! I changed the wrong doclusterread! ...Thanks to Steven Wallace anddg1995-09-221-2/+2
| | | | Poul-Henning for convincing me that I should look at my mistake! :-)
* Disable file read clustering until the bug(s) in vfs_cluster.c are fixed.dg1995-09-221-2/+2
| | | | | This should temporarily fix the sig 10/11 problems that people have been having for the past 3 weeks.
* Remove transitory labelling code. Labels are now handled by essentiallybde1995-09-161-287/+16
| | | | | the original 4.4lite code. Machine Specific Partitions are now handled separately.
* Fix benign type mismatch in a call to VOP_BMAP().bde1995-09-111-2/+2
|
* Obtained from:4.4lite2julian1995-09-091-10/+14
| | | | | | | | | | | | | | | | | | fix a change where a shortcut resulted in teh wrong answer.. e.g. touch a touch b mv a b resulted in b being removed and a being moved to b in the shortcut.. touch a ln a b mv a b the wrong link was removed.. leaving a instead of b, giving a different result to when both files were separate.
* Slight optimization for the standard case of rotdelay=0.dg1995-09-081-11/+11
|
* Correct a case in the ffs_getpages where a page is not found indyson1995-09-071-1/+3
| | | | a sparse file and the page is zeroed but not set valid, clean.
* Added indirect pointer for ffs_getpages, and added external declaration.dyson1995-09-062-2/+4
|
* Added new ffs_getpages routine. It isn't optimized yet, but FFSdyson1995-09-061-1/+191
| | | | | now does it's own getpage -- instead of using the default routine in vnode_pager.c.
* Correct prototype for ufs_bmaparray()dyson1995-09-041-2/+2
|
* Added VOP_GETPAGES/VOP_PUTPAGES and also the "backwards" block countdyson1995-09-047-18/+41
| | | | for VOP_BMAP. Updated affected filesystems...
* Declare vfs_mountroot() in the right place.bde1995-08-301-3/+1
|
* Fix correct_writedisklabel() and writedisklabel(). Their setting ofbde1995-08-281-11/+14
| | | | | | | | | | | bp->b_flags has been broken for many years: a) they didn't set B_BUSY for doing i/o. This has been fatal since 1995/07/25 when biodone() started checking that B_BUSY is set. b) they didn't set B_INVAL for releasing the buffer. This at best just put a useless buffer in the LRU queue for a little while. Fix a couple of spelling errors and complete a couple of function pointer declarations.
* Reviewed by: julian with quick glances by bruce and othersjulian1995-08-287-270/+515
| | | | | | | | | | | | | | | | | | | | | | Submitted by: terry (terry lambert) This is a composite of 3 patch sets submitted by terry. they are: New low-level init code that supports loadbal modules better some cleanups in the namei code to help terry in 16-bit character support some changes to the mount-root code to make it a little more modular.. NOTE: mounting root off cdrom or NFS MIGHT be broken as I haven't been able to test those cases.. certainly mounting root of disk still works just fine.. mfs should work but is untested. (tomorrows task) The low level init stuff includes a total rewrite of init_main.c to make it possible for new modules to have an init phase by simply adding an entry to a TEXT_SET (or is it DATA_SET) list. thus a new module can be added to the kernel without editing any other files other than the 'files' file.
* Don't call VOP_UPDATE() with volatile timestamps.bde1995-08-252-6/+12
|
* Fixed mfs reboot panic by never returning failure from mfs_start().dg1995-08-201-6/+5
| | | | Obtained from: 4.4BSD-Lite2
* Make everything except the unsupported network sources compile cleanlybde1995-08-162-3/+3
| | | | with -Wnested-externs.
* Honor -async mount option when doing the inode update.dg1995-08-161-2/+2
| | | | Obtained from: 4.4BSD-Lite2
* Converted mountlist to a CIRCLEQ.dg1995-08-113-6/+6
| | | | Partially obtained from: 4.4BSD-Lite2
* On closer inspection, it turns out that all of the callers of disksortdg1995-08-071-5/+1
| | | | are already at splbio()...so back out the last change to disksort.
* Since buffers can be pulled off of the disk queue at interrupt time anddg1995-08-071-2/+7
| | | | | | disksort is called at non-interrupt time and can be actively traversing the list when that happens, there is a very small window of vulnerability. Close it by protecting disksort with splbio().
* Use bdwrite() rather than brelse(). The cylinder group bitmap modificationdg1995-08-071-2/+2
| | | | | | | | is not preserved otherwise. Note that this is a no-op in FreeBSD, however, as we have doreallocblks disabled. Submitted by: Kirk McKusick
* Removed redundant call to vm_object_page_clean: this is already handleddg1995-08-061-7/+1
| | | | by vfs_msync().
* Removed redundant call to vm_object_page_clean - this is already donedg1995-08-061-6/+1
| | | | in vfs_msync().
* Use the correct flags (IO_SYNC -> B_SYNC) when deciding to do a sync ordg1995-08-041-3/+3
| | | | | | | async write in the section that changes the filesize. The bug resulted in the updates always being async. Obtained from: 4.4BSD-Lite2
* Removed my special-case hack for VOP_LINK and fixed the problem with thedg1995-08-012-4/+4
| | | | | | | wrong vp's ops vector being used by changing the VOP_LINK's argument order. The special-case hack doesn't go far enough and breaks the generic bypass routine used in some non-leaf filesystems. Pointed out by Kirk McKusick.
* Eliminate sloppy common-style declarations. There should be none left forbde1995-07-294-8/+6
| | | | the LINT configuation.
* Since ufs_ihashget can block, the lock must be checked for each timedg1995-07-211-14/+8
| | | | | | | the function returns. Also, moved lock into .bss and made minor cosmetic changes. Submitted by: Bruce Evans
* Implement a lock in ffs_vget to prevent a race condition where two processesdg1995-07-211-4/+34
| | | | | | try allocate the same inode/vnode, causing a duplicate. Submitted by: Matt Dillon, slightly reworked by me.
OpenPOWER on IntegriCloud