summaryrefslogtreecommitdiffstats
path: root/sys/gnu/ext2fs/ext2_alloc.c
Commit message (Collapse)AuthorAgeFilesLines
* /* -> /*- for copyright notices, minor format tweaks as necessaryimp2005-01-061-2/+2
|
* Remove advertising clause from University of California Regent'simp2004-04-071-4/+0
| | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson
* Fix two off-by-one errors when sanity-checking inode numbers. Iniedowse2002-05-181-1/+1
| | | | | | | | | ext2fs, inode numbers start at 1, so the maximum valid inode number is (s_inodes_per_group * s_groups_count), not one less. This is just a minimal change to avoid unnecessary panics and errors; some other related bugs that Bruce Evans mentioned to me are not addressed. Reviewed by: bde (ages ago)
* Use explicitly-sized types where necessary to make ext2fs work againiedowse2002-05-181-16/+16
| | | | after the change to a 64-bit daddr_t.
* Remove register keyword.iedowse2002-05-161-10/+10
|
* Complete the separation of ext2fs from ufs by copying the remainingiedowse2002-05-161-22/+4
| | | | | | | | | | shared code and converting all ufs references. Originally it may have made sense to share common features between the two filesystems, but recently it has only caused problems, the UFS2 work being the final straw. All UFS_* indirect calls are now direct calls to ext2_* functions, and ext2fs-specific mount and inode structures have been introduced.
* Repaired CSRG id. This file was not in Lite1; it was just cloned from abde2002-03-231-1/+1
| | | | file with a in Lite1 before being cvs-added to FreeBSD.
* Remove __P.alfred2002-03-191-1/+1
|
* Add a flags parameter to VFS_VGET to pass through the desiredmckusick2002-03-171-1/+1
| | | | | | | | | | | | locking flags when acquiring a vnode. The immediate purpose is to allow polling lock requests (LK_NOWAIT) needed by soft updates to avoid deadlock when enlisting other processes to help with the background cleanup. For the future it will allow the use of shared locks for read access to vnodes. This change touches a lot of files as it affects most filesystems within the system. It has been well tested on FFS, loopback, and CD-ROM filesystems. only lightly on the others, so if you find a problem there, please let me (mckusick@mckusick.com) know.
* Preceed/preceeding are not english words. Use precede or preceding.asmodai2001-02-181-1/+1
|
* ext2fs relies on UFS support code, and as a result also requiresrwatson2000-04-151-0/+2
| | | | | | | | | | extattr.h to be included. This fixes the broken ext2fs build as of the import of extattr code. Also added $FreeBSD: $ to a couple of files that didn't have them, without which I couldn't commit this fix. Reported by: "George W. Dinolt" <gdinolt@pacbell.net>
* Oops, the previous commit was missing a new include.bde1999-08-231-0/+1
|
* Use devtoname() to print dev_t's instead of casting them to long or u_longbde1999-08-231-2/+2
| | | | for misprinting in %lx format.
* Fixed printing of a dev_t in a panic message. Fixed the function namebde1999-05-131-2/+2
| | | | in this message.
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-271-1/+1
| | | | kernel compile
* Don't pass unused unused timestamp args to UFS_UPDATE() or wastebde1999-01-071-5/+2
| | | | | time initializing them. This almost finishes centralizing (in-core) timestamp updates in ufs_itimes().
* UFS_UPDATE() takes a boolean `waitfor' arg, so don't pass it the valuebde1999-01-061-1/+1
| | | | | | MNT_WAIT when we mean boolean `true' or check for that value not being passed. There was no problem in practice because MNT_WAIT had the magic value of 1.
* Fixed initialization of new inodes. ext2fs doesn't clear inodes whenbde1998-09-291-1/+3
| | | | | | they are deleted, so inodes must be cleared when they are reused, but we didn't clear the indirect blocks. This caused serious filesystem corruption.
* Fixed printf format errors.bde1998-07-301-2/+2
|
* Removed unused includes.bde1998-06-211-1/+0
|
* Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.des1998-04-171-1/+1
|
* Back out DIAGNOSTIC changes.eivind1998-02-061-1/+0
|
* Turn DIAGNOSTIC into a new-style option.eivind1998-02-041-0/+1
|
* Fixed corruption of the per-group used directories count. It wasn'tbde1997-12-031-3/+4
| | | | | decremented when directories were removed because rev.1.12 broke the fixup of the i_mode of the inode being removed.
* Use the same algorithm as ffs for generation numbers.bde1997-12-021-5/+2
|
* Removed __FreeBSD__ ifdefs.bde1997-12-021-11/+0
|
* Another VFS cleanup "kilo commit"phk1997-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Remove VOP_UPDATE, it is (also) an UFS/{FFS,LFS,EXT2FS,MFS} intereface function, and now lives in the ufsmount structure. 2. Remove VOP_SEEK, it was unused. 3. Add mode default vops: VOP_ADVLOCK vop_einval VOP_CLOSE vop_null VOP_FSYNC vop_null VOP_IOCTL vop_enotty VOP_MMAP vop_einval VOP_OPEN vop_null VOP_PATHCONF vop_einval VOP_READLINK vop_einval VOP_REALLOCBLKS vop_eopnotsupp And remove identical functionality from filesystems 4. Add vop_stdpathconf, which returns the canonical stuff. Use it in the filesystems. (XXX: It's probably wrong that specfs and fifofs sets this vop, shouldn't it come from the "host" filesystem, for instance ufs or cd9660 ?) 5. Try to make system wide VOP functions have vop_* names. 6. Initialize the um_* vectors in LFS. (Recompile your LKMS!!!)
* VFS mega cleanup commit (x/N)phk1997-10-161-25/+18
| | | | | | | | | | | | | | | | | | | | | | | 1. Add new file "sys/kern/vfs_default.c" where default actions for VOPs go. Implement proper defaults for ABORTOP, BWRITE, LEASE, POLL, REVOKE and STRATEGY. Various stuff spread over the entire tree belongs here. 2. Change VOP_BLKATOFF to a normal function in cd9660. 3. Kill VOP_BLKATOFF, VOP_TRUNCATE, VOP_VFREE, VOP_VALLOC. These are private interface functions between UFS and the underlying storage manager layer (FFS/LFS/MFS/EXT2FS). The functions now live in struct ufsmount instead. 4. Remove a kludge of VOP_ functions in all filesystems, that did nothing but obscure the simplicity and break the expandability. If a filesystem doesn't implement VOP_FOO, it shouldn't have an entry for it in its vnops table. The system will try to DTRT if it is not implemented. There are still some cruft left, but the bulk of it is done. 5. Fix another VCALL in vfs_cache.c (thanks Bruce!)
* I think my previous change may have opened a race conditio.phk1997-10-141-2/+0
| | | | This patch does the same thing, with no change in semantics.
* ufs_ihashrem() should not be called from the UFS layer, but from thephk1997-10-141-0/+2
| | | | | | lower layer (LFS/FFS/?) like the rest of the ihash functions. Otherwise it is impossible to make a lower layer that doesn't use the ihash facility.
* Removed unused #includes.bde1997-06-141-4/+0
|
* Fixed gratuitous ANSIisms.bde1997-04-011-3/+5
| | | | Removed trailing newline from panic messages.
* Fixed some invalid (non-atomic) accesses to `time', mostly ones of thebde1997-03-221-7/+6
| | | | | | 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.
* Clean up -Wunused warnings.gpalmer1996-06-121-0/+4
| | | | Reviewed by: bde
* Convert QUOTA to new-style option.wollman1996-01-051-0/+2
|
* Restored variables that are used iff QUOTA is defined.bde1995-12-101-0/+3
| | | | | ext2fs still uses #if in many cases where the rest of the kernel uses #ifdef (for QUOTA...).
* Get rid of the last debug sysctl variables of the old style.phk1995-11-141-1/+1
|
* Cleaned up some lint and some obvious prototyping errors.dyson1995-11-081-3/+1
|
* Main code for the ext2fs filesystem. Please refer to the COPYRIGHT.INFOdyson1995-11-051-0/+572
file for GPL restrictions. This code was ported to the BSD platform by Godmar Back <gback@facility.cs.utah.edu> and specifically to FreeBSD by John Dyson. This code is still green and should be used with caution. Additional changes to UFS necessary to make this code work will be commited seperately. Submitted by: Godmar Back <gback@facility.cs.utah.edu> Obtained from: Lites/Mach4
OpenPOWER on IntegriCloud