aboutsummaryrefslogtreecommitdiff
path: root/sys/gnu/ext2fs/ext2_alloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Move ext2fs from src/gnu to src/gnu/fs.Craig Rodrigues2005-06-151-535/+0
| | | | | | | | | | | Discussed on arch@. Reviewed by: kan Approved by: re (blanket), kan Discussed with: dumbbell Notes: svn path=/head/; revision=147401
* Don't hold a reference to the disk vnode for each inode.Poul-Henning Kamp2005-03-161-4/+4
| | | | | | | | Don't store the disk cdev in all inodes, it's only used for debugging printfs. Notes: svn path=/head/; revision=143677
* Remove debug printout of major/minor numbers, print name instead.Poul-Henning Kamp2005-02-271-2/+2
| | | | Notes: svn path=/head/; revision=142692
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-061-2/+2
| | | | Notes: svn path=/head/; revision=139778
* Remove advertising clause from University of California Regent'sWarner Losh2004-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 Notes: svn path=/head/; revision=128019
* Fix two off-by-one errors when sanity-checking inode numbers. InIan Dowse2002-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) Notes: svn path=/head/; revision=96880
* Use explicitly-sized types where necessary to make ext2fs work againIan Dowse2002-05-181-16/+16
| | | | | | | after the change to a 64-bit daddr_t. Notes: svn path=/head/; revision=96877
* Remove register keyword.Ian Dowse2002-05-161-10/+10
| | | | Notes: svn path=/head/; revision=96752
* Complete the separation of ext2fs from ufs by copying the remainingIan Dowse2002-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. Notes: svn path=/head/; revision=96749
* Repaired CSRG id. This file was not in Lite1; it was just cloned from aBruce Evans2002-03-231-1/+1
| | | | | | | file with a in Lite1 before being cvs-added to FreeBSD. Notes: svn path=/head/; revision=93015
* Remove __P.Alfred Perlstein2002-03-191-1/+1
| | | | Notes: svn path=/head/; revision=92728
* Add a flags parameter to VFS_VGET to pass through the desiredKirk McKusick2002-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. Notes: svn path=/head/; revision=92462
* Preceed/preceeding are not english words. Use precede or preceding.Jeroen Ruigrok van der Werven2001-02-181-1/+1
| | | | Notes: svn path=/head/; revision=72640
* ext2fs relies on UFS support code, and as a result also requiresRobert Watson2000-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> Notes: svn path=/head/; revision=59259
* Oops, the previous commit was missing a new include.Bruce Evans1999-08-231-0/+1
| | | | Notes: svn path=/head/; revision=50260
* Use devtoname() to print dev_t's instead of casting them to long or u_longBruce Evans1999-08-231-2/+2
| | | | | | | for misprinting in %lx format. Notes: svn path=/head/; revision=50253
* Fixed printing of a dev_t in a panic message. Fixed the function nameBruce Evans1999-05-131-2/+2
| | | | | | | in this message. Notes: svn path=/head/; revision=47099
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-271-1/+1
| | | | | | | kernel compile Notes: svn path=/head/; revision=43301
* Don't pass unused unused timestamp args to UFS_UPDATE() or wasteBruce Evans1999-01-071-5/+2
| | | | | | | | time initializing them. This almost finishes centralizing (in-core) timestamp updates in ufs_itimes(). Notes: svn path=/head/; revision=42374
* UFS_UPDATE() takes a boolean `waitfor' arg, so don't pass it the valueBruce Evans1999-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. Notes: svn path=/head/; revision=42354
* Fixed initialization of new inodes. ext2fs doesn't clear inodes whenBruce Evans1998-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. Notes: svn path=/head/; revision=39753
* Fixed printf format errors.Bruce Evans1998-07-301-2/+2
| | | | Notes: svn path=/head/; revision=37976
* Removed unused includes.Bruce Evans1998-06-211-1/+0
| | | | Notes: svn path=/head/; revision=37094
* Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.Dag-Erling Smørgrav1998-04-171-1/+1
| | | | Notes: svn path=/head/; revision=35256
* Back out DIAGNOSTIC changes.Eivind Eklund1998-02-061-1/+0
| | | | Notes: svn path=/head/; revision=33134
* Turn DIAGNOSTIC into a new-style option.Eivind Eklund1998-02-041-0/+1
| | | | Notes: svn path=/head/; revision=33108
* Fixed corruption of the per-group used directories count. It wasn'tBruce Evans1997-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. Notes: svn path=/head/; revision=31517
* Use the same algorithm as ffs for generation numbers.Bruce Evans1997-12-021-5/+2
| | | | Notes: svn path=/head/; revision=31485
* Removed __FreeBSD__ ifdefs.Bruce Evans1997-12-021-11/+0
| | | | Notes: svn path=/head/; revision=31483
* Another VFS cleanup "kilo commit"Poul-Henning Kamp1997-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!!!) Notes: svn path=/head/; revision=30492
* VFS mega cleanup commit (x/N)Poul-Henning Kamp1997-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!) Notes: svn path=/head/; revision=30474
* I think my previous change may have opened a race conditio.Poul-Henning Kamp1997-10-141-2/+0
| | | | | | | This patch does the same thing, with no change in semantics. Notes: svn path=/head/; revision=30418
* ufs_ihashrem() should not be called from the UFS layer, but from thePoul-Henning Kamp1997-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. Notes: svn path=/head/; revision=30402
* Removed unused #includes.Bruce Evans1997-06-141-4/+0
| | | | Notes: svn path=/head/; revision=26641
* Fixed gratuitous ANSIisms.Bruce Evans1997-04-011-3/+5
| | | | | | | Removed trailing newline from panic messages. Notes: svn path=/head/; revision=24492
* Fixed some invalid (non-atomic) accesses to `time', mostly ones of theBruce Evans1997-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. Notes: svn path=/head/; revision=24101
* Clean up -Wunused warnings.Gary Palmer1996-06-121-0/+4
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=16322
* Convert QUOTA to new-style option.Garrett Wollman1996-01-051-0/+2
| | | | Notes: svn path=/head/; revision=13260
* Restored variables that are used iff QUOTA is defined.Bruce Evans1995-12-101-0/+3
| | | | | | | | ext2fs still uses #if in many cases where the rest of the kernel uses #ifdef (for QUOTA...). Notes: svn path=/head/; revision=12746
* Get rid of the last debug sysctl variables of the old style.Poul-Henning Kamp1995-11-141-1/+1
| | | | Notes: svn path=/head/; revision=12288
* Cleaned up some lint and some obvious prototyping errors.John Dyson1995-11-081-3/+1
| | | | Notes: svn path=/head/; revision=12147
* Main code for the ext2fs filesystem. Please refer to the COPYRIGHT.INFOJohn Dyson1995-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 Notes: svn path=/head/; revision=12115