summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ext2fs/ext2fs_inode.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* spellingjsg2021-03-111-2/+2
|
* Remove unused "struct proc *" argument from the following functions:mpi2020-02-271-3/+2
| | | | | | | | | | | | | - ufs_chown() & ufs_chmod() - ufs_reclaim() - ext2fs_chown() & ext2fs_chmod() - ntfs_ntget() & ntfs_ntput() - ntfs_vgetex(), ntfs_ntlookup() & ntfs_ntlookupfile() While here use `ap->a_p' directly when it is only required to re-enter the VFS layer in order to help reducing the loop. ok visa@
* vinvalbuf(9): tlseep -> tsleep_nsec(9); ok millert@cheloha2019-07-251-2/+2
|
* getblk(9): tsleep(9) -> tsleep_nsec(9); ok visa@cheloha2019-07-191-2/+2
|
* Add more verbose messages about unsupported ext2fs features.kevlo2019-07-011-3/+3
| | | | | | | | | Based on FreeBSD r320578. While here, rename a few macros to make the consisten and keep in sync with Linux upstream. ok kn@
* Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is alwaysvisa2018-04-281-2/+2
| | | | | | | curproc that does the locking or unlocking, so the proc parameter is pointless and can be dropped. OK mpi@, deraadt@
* Remove the unused flags argument from VOP_UNLOCK().natano2016-03-191-2/+2
| | | | | | torture tested on amd64, i386 and macppc ok beck mpi stefan "the change looks right" deraadt
* Move mnt_maxsymlink from struct mount to struct ufsmount.natano2016-02-271-5/+2
| | | | | | | | | | | | | | The concept of differentiating between "short" and "long" symlinks is specific to ufs/, so it shouldn't creep into the generic fs layer. Inspired by a similar commit to NetBSD. While there replace all references to mnt_maxsymlinklen in ufs/ext2fs with EXT2_MAXSYMLINKLEN, which is the constant max short symlink len for ext2fs. This allows to get rid of some (mnt_maxsymlinklen == 0) checks there, which is always false for ext2fs. input and ok stefan@ ok millert@
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* use proper on-disk inode size: no more, no less.pelikan2014-07-311-2/+2
| | | | | | Reported by Roman Yakovlev, thanks! "do it now" deraadt
* kill fs2hXX/h2fsXX macros with letohXX/htoleXXpelikan2014-07-131-5/+5
| | | | | | | | | The reason being that ext2 structures are little-endian but JBD2 journal is big-endian. Don't confuse readers by talking about "file system endian". Some KNF while there. ok guenther
* fill in proper sizes in free(9)pelikan2014-07-131-2/+2
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-2/+2
| | | | after discussions with beck deraadt kettenis.
* determine and use maximum file size instead of magical constantspelikan2014-07-111-2/+2
| | | | ok guenther
* updated inode format, whitespace, re-formattingpelikan2014-07-111-28/+25
|
* decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hderaadt2014-07-081-3/+1
| | | | | don't need to be married. ok guenther miod beck jsing kettenis
* Zap a bunch of trailing whitespace.krw2014-05-271-5/+5
|
* ufs_setattr() was assuming that the flag bits that indicateguenther2014-01-251-13/+8
| | | | | | | | | | | | | | atime/mtime/ctime need to be updated weren't already set. When they are, the code will end up treating the VNOVAL value from the VFS layer as a time_t. Port the fix from FreeBSD: the critical bit is to process the existing flag values before possibly setting them again in ufs_setattr(). This diff pulls in a larger change from FreeBSD to replace the macro ITIMES() with a function ufs_itimes() and to remove the atime and mtime arguments from ffs_update(): only ufs_setattr() used them so it makes more sense to just do the those bits directly there. tweaks and ok tedu@ matthew@
* replace old bcopy/bzero with standard functions. ok kettenistedu2013-12-121-10/+9
|
* Make rusage totals, itimers, and profile settings per-process insteadguenther2012-03-231-2/+2
| | | | | | | of per-rthread. Handling of per-thread tick and runtime counters inspired by how FreeBSD does it. ok kettenis@
* bread does nothing with its ucred argument. remove it. ok matthewtedu2011-07-041-2/+2
|
* fancy new ext2fs can have big inodes. we can possibly still read themtedu2008-11-231-2/+2
| | | | though if no new features are in play. diff from Wouter Godefroy
* Bring biomem diff back into the tree after the nfs_bio.c fix went in.deraadt2008-06-121-1/+3
| | | | ok thib beck art
* back out biomem diff since it is not right yet. Doing very largederaadt2008-06-111-3/+1
| | | | | | | | file copies to nfsv2 causes the system to eventually peg the console. On the console ^T indicates that the load is increasing rapidly, ddb indicates many calls to getbuf, there is some very slow nfs traffic making none (or extremely slow) progress. Eventually some machines seize up entirely.
* Buffer cache revampbeck2008-06-101-1/+3
| | | | | | | | | | | | | | | | 1) remove multiple size queues, introduced as a stopgap. 2) decouple pages containing data from their mappings 3) only keep buffers mapped when they actually have to be mapped (right now, this is when buffers are B_BUSY) 4) New functions to make a buffer busy, and release the busy flag (buf_acquire and buf_release) 5) Move high/low water marks and statistics counters into a structure 6) Add a sysctl to retrieve buffer cache statistics Tested in several variants and beat upon by bob and art for a year. run accidentally on henning's nfs server for a few months... ok deraadt@, krw@, art@ - who promises to be around to deal with any fallout
* MALLOC/FREE -> malloc/freechl2007-10-291-3/+3
| | | | ok krw@
* ansify/de-register.jasper2007-06-171-9/+3
| | | | no binary change
* ufs1_daddr_t cleanup, okay thib@ deraadt@pedro2007-06-021-13/+13
|
* pedro ok'd this ~3500 line diff which removes the vop argumentderaadt2007-06-011-5/+2
| | | | | "ap = v" comments in under 8 seconds, so it must be ok. and it compiles too.
* Dynamic buffer cache. Initial diff from mickey@, okay art@ beck@ toby@pedro2007-05-261-3/+3
| | | | deraadt@ dlg@.
* Remove the simplelock argument from vrecycle();thib2007-04-111-2/+2
| | | | ok pedro@, sturm@
* Under certain circumstances, ext2fs_inactive() can be called without apedro2006-06-181-3/+3
| | | | | | backing dinode, in which case we just want to recycle the vnode. Fixes a crash reported by reyk@, okay krw@, mickey@ and pat@.
* Put vprint() under DIAGNOSTIC, as to save space in generated ramdisks.pedro2006-01-091-2/+5
| | | | Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64.
* A sanity check for an unsigned variable being < 0 after a subtractionkrw2005-12-151-3/+4
| | | | | | | | is not useful. Check the value about to be subtracted. Spotted by lint. ok pedro@
* inode/dinode separation for ext2fspedro2005-12-111-3/+3
|
* Use part of the reserved space on the disk inode to scatter 16 more bitspedro2005-10-061-1/+12
| | | | | | for the UID and GID, making them 32-bit. Based on what Linux does, with a slightly different implementation. Endianess issue in fsck noted by miod@, okay deraadt@.
* KNFpedro2005-08-141-5/+6
|
* Extended Attributes was a piece to get to ACLs, however ACLs have notdrahn2005-07-031-2/+1
| | | | | been worked on, so EA is pointless. Also the code is not enabled in GENERIC so it is not being tested or maintained.
* Add support for large files (> 4GB).niallo2005-04-301-12/+55
| | | | | | | | Automatically converts old filesystems to use this if they are already at revision 1 (like Linux). Revision 0 filesystems don't get converted (unlike Linux). From NetBSD
* This moves access to wall and uptime variables in MI code,tholo2004-06-241-3/+3
| | | | | | | | | | | | | | encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
* rename struct dinode to ufs1_dinode. clears the namespace and makestedu2003-08-251-3/+3
| | | | | | way for some future work. no function changes yet. few other little cleanups. help testing otto@ and markus@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* fiddle with some type names. change most instances of ufs_daddr_t totedu2003-05-261-13/+13
| | | | | ufs1_daddr_t, a few to daddr_t. ufs_daddr_t typedef is retained, but consider it deprecated. no functional changes. inspired by freebsd. ok art@
* First round of __P removal in sysmillert2002-03-141-3/+3
|
* Extended Attribute support from FreeBSD/TrustedBSD ok art@, deraadt@drahn2002-02-221-1/+2
|
* UBC was a disaster. It worked very good when it worked, but on someart2001-12-191-15/+43
| | | | | | | | | machines or some configurations or in some phase of the moon (we actually don't know when or why) files disappeared. Since we've not been able to track down the problem in two weeks intense debugging and we need -current to be stable, back out everything to a state it had before UBC. We apologise for the inconvenience.
* Merge in the unified buffer cache code as found in NetBSD 2001/03/10. Theart2001-11-271-43/+15
| | | | | | | code is written mostly by Chuck Silvers <chuq@chuq.com>/<chs@netbsd.org>. Tested for the past few weeks by many developers, should be in a pretty stable state, but will require optimizations and additional cleanups.
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-061-2/+2
| | | | (Look ma, I might have broken the tree)
* move ext2fs_init to where it belongs.art2001-09-181-8/+1
|
* More of cleanups, reliability and endianness fixes from NetBSD.art2001-09-181-45/+52
|