summaryrefslogtreecommitdiff
path: root/sys/ufs
AgeCommit message (Collapse)Author
2016-01-12Kill the "doclusterread" and "doclusterwrite" defines.Martin Pieuchot
They are defined to 0 since the import of ext2fs 19 years ago.
2016-01-12Remove the "doclusterread" and "doclusterwrite" buttons.Martin Pieuchot
Cluster read is unconditionnally enabled for FFS since some years and toggling "doclusterread" has no effect. OpenBSD no longer support write clustering since the Dynamic Buffer Cache went in, so there is reason to delay the call to bawrite(9). Tested by Mathieu, ok dlg@
2015-12-08correct errant spacing here before it continues spreadingTed Unangst
2015-11-28move buffer size adjustment to buf_adjcnt - from Walter NetoBob Beck
ok mpi@
2015-09-27lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */Philip Guenther
(others require more care)
2015-09-23remove lockmgr_printinfo stubs. from Martin NatanoTed Unangst
2015-04-17Tweaks utimensat/futimens handling to always update ctime, even when bothPhilip Guenther
atime and mtime are UTIME_OMIT (at least for ufs, tmpfs, and ext2fs), and to correctly handle a timestamp of -1. ok millert@
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
2015-02-10First step towards making uiomove() take a size_t size argument:Miod Vallat
- rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
2015-01-20MAXFRAG was always placed incorrectly in <sys/param.h> It is primarilyTheo de Raadt
used in disklabel type tools, newfs, fsck, when related to ufs or ufs-derived filesystems, but also in a struct. Those things always include <ufs/ffs/fs.h>. Move it there ok guenther, tested in ports by sthen
2015-01-11Casting a gid_t to gid_t for a gid_t argument is overkillPhilip Guenther
2015-01-09rename desiredvnodes to initialvnodes. less of a lie. ok beck deraadtTed Unangst
2014-12-29Explicitely include <uvm/uvm_extern.h> in order to build on variable page sizeMiod Vallat
architectures.
2014-12-23change pool_init allocator to NULL and pass PR_WAITOK in flags as a signTed Unangst
that these don't need to support interrupts
2014-12-19Use <sys/endian.h> instead of <machine/endian.h>Philip Guenther
ok dlg@ mpi@ bcook@ millert@ miod@
2014-12-12free correct size. it's variable!Ted Unangst
2014-12-12sizeof(*ptr) for some free()Ted Unangst
2014-12-07don't truncate the dirhash if ufs truncate fails.Ted Unangst
adapted from a freebsd commit by david hill
2014-12-04use siphash for dirhash. ok deraadt dlgTed Unangst
2014-11-18use siphash for key lookups in all the filesystem hashes.David Gwynne
ok deraadt@ tedu@
2014-11-18move arc4random prototype to systm.h. more appropriate for most codeTed Unangst
to include that than rdnvar.h. ok deraadt dlg
2014-11-17apply siphash to the key selection for the ufs inode hash.David Gwynne
ok tedu@
2014-11-03include sys/unistd.h where needed instead of indirect reliance. ok jsgTed Unangst
2014-10-13Add dumping of struct dqblk done by quotactl(2)Philip Guenther
ok millert@
2014-10-13Calling quotactl(QCMD(Q_QUOTAON)) twice with the same filesystem,Philip Guenther
type, and path shouldn't leak vnode or ucred references. ok millert@
2014-09-14remove uneeded proc.h includesJonathan Gray
ok mpi@ kspillner@
2014-07-31always use the little-endian copy of a superblock.Martin Pelikan
Damn those memcpy-wrapping macros! "do it" deraadt
2014-07-31use proper on-disk inode size: no more, no less.Martin Pelikan
Reported by Roman Yakovlev, thanks! "do it now" deraadt
2014-07-14better type safety and KNF.Martin Pelikan
Because ext2fs has only 32-bit inode numbers, use ufsino_t as in FFS. Disk blocks are u_int32_t as well, because we don't support the 64BIT flag. When we do, there's going to be a lot more going on than just daddr_t. While there, add some journaling-related bits into the superblock to play with. ok guenther
2014-07-14revert free checks in here. this seems to be a bit too agressive at theBob Beck
moment and now is not the time. hitting these in here causes chaos. We need to do these, but at a better time than right after a hackathon and before release. ok guenther@
2014-07-13pass correct sizes to free()Ted Unangst
2014-07-13use mallocarrayTed Unangst
2014-07-13kill fs2hXX/h2fsXX macros with letohXX/htoleXXMartin Pelikan
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
2014-07-13fill in proper sizes in free(9)Martin Pelikan
2014-07-13ext4 (extents) read supportMartin Pelikan
Tested on amd64 with > 4GB files and 50,000 subdirectories. From FreeBSD, thanks! ok deraadt guenther
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2014-07-12fix a type error on BE architecturesMartin Pelikan
2014-07-12in-memory superblock was being filled in two places -> merge themMartin Pelikan
ok tedu
2014-07-12pull dirblock search code from ext2fs_lookup() like FreeBSD has doneMartin Pelikan
ok tedu
2014-07-12print more useful information on wrong superblocks.Martin Pelikan
Function renames for consistency and readability. No functional change.
2014-07-12revert previous unwanted commit. sorry!Martin Pelikan
2014-07-12*** empty log message ***Martin Pelikan
2014-07-11new dinode format for big-endian conversion routinesMartin Pelikan
2014-07-11Prevent division by zero on erroneous file systems.Tobias Stoeckmann
ok pelikan@
2014-07-11split ext2fs_read for the upcoming ext4 extent bits, like FreeBSD has doneMartin Pelikan
ok guenther
2014-07-11determine and use maximum file size instead of magical constantsMartin Pelikan
ok guenther
2014-07-11sizeof good old inode is 128, the structure has expandedMartin Pelikan
2014-07-11updated inode format, whitespace, re-formattingMartin Pelikan
2014-07-11separate searchslot variables into a structure like FreeBSDMartin Pelikan
ok guenther
2014-07-10prepare for upcoming ext4 read supportMartin Pelikan
Parts of the on-disk inode changed their meaning in order to support bigger sizes. More flags & prettification. No functional change. ok guenther