summaryrefslogtreecommitdiff
path: root/sys/ufs
AgeCommit message (Collapse)Author
2004-07-25more consistent handling of vnode recount during rename.Ted Unangst
should solve some panics. various testing for a while.
2004-07-21I was wrong. The assymetry created by the proc argument to rw_enter_writeArtur Grabowski
is horrible and doesn't add anything. Remove it. XXX - the fdplock macro will need a separate cleanup. niklas@ markus@ ok
2004-07-14trailing '\n' in printf, ok deraadt@Pedro Martelletto
2004-07-13Change mode_t and nlink_t from 16bit to 32bit. This allows us toTodd C. Miller
use mode_t in syscalls.master and to use mode_t in more places in the kernel. It also makes lint much more useful on kernel code. I've also added a placeholder for st_birthtime to make a UFS2 import easier at some future date. Requested by and OK deraadt@
2004-07-02printf inode numer as unsigned -- just the way it isMichael Shalayeff
2004-06-25Minor fixes suggested by nordin@ and henning@Thorsten Lockert
ok millert@
2004-06-24This moves access to wall and uptime variables in MI code,Thorsten Lockert
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@
2004-06-21First step towards more sane time handling in the kernel -- this changesThorsten Lockert
things such that code that only need a second-resolution uptime or wall time, and used to get that from time.tv_secs or mono_time.tv_secs now get this from separate time_t globals time_second and time_uptime. ok art@ niklas@ nordin@
2004-06-04rootvp is already externed in systm.h, no need for a local externTed Unangst
2004-05-14use pool for namei pathbuf. testing ok millert@ tdeval@Ted Unangst
2004-05-07fatty softdep merge with freebsd. fixes a variety of possible issues.Ted Unangst
relevant changes to ffs_softdep.c were 1.95, 1.96, 1.97, 1.98, 1.103, and 1.107 in freebsd. testing marc and otto. ok deraadt
2004-05-06Two missing ifdef FIFO; noticed by form@pdp-11.org.ru.Alexander Yurchenko
ok tedu@
2004-04-16fix niklas's panic and pr3672 with freebsd rev 1.54 (don't trust DIRSIZ)Ted Unangst
extra testing otto@ sturm@ tdeval@
2004-03-16re-add fbsd id so i can track this thingTed Unangst
2004-03-02call fifo_reclaim here tooTed Unangst
2004-03-02silly fifos aren't a real fs, so we have to be sure to call reclaimTed Unangst
in the host fs.
2004-02-16sync MACRO names with freebsd.Ted Unangst
2004-02-02gluk points out i missed tagsTed Unangst
2004-01-25vref device vnodes early, so we don't get mismatched vrele calls.Ted Unangst
problem found, fix tested naddy@
2004-01-20some pieces of ufs2. help testing otto sturmTed Unangst
2004-01-09back out vnode parents. weird breakge found in ports treeTed Unangst
2004-01-07sysctls for dirhash variables. with a hint from miod. ok deraadtTed Unangst
2004-01-07remove FreeBSD ifdefTed Unangst
2004-01-06keep track of a vnode's parent dir. ufs only, and unused atm, butTed Unangst
the fun stuff is coming. testing by brad.
2003-12-28do not use MALLOC on variable sized allocationsMichael Shalayeff
2003-12-28add ian dowse's dirhash code from freebsd.Ted Unangst
by building a hash table for large directories, lookups and deletions become about constant time. this is an excellent improvement for dirs with 10k or more files. some more cleanup to come, but the code works. enabled with option UFS_DIRHASH testing brad millert otto
2003-12-17add NOTE_EOF (return on EOF) and NOTE_TRUNCATE (vnode was truncated)Ted Unangst
to kqueue from marius@monkey tested by brad@
2003-12-06u_int8_t variable can't be > 255; pointed out by Mr. GCC3.Alexander Yurchenko
ok millert@
2003-11-19undo boolshit unapproved changes the author does not even care about to fixMichael Shalayeff
2003-11-19MALLOC is not meant for variable size allocationsTed Unangst
2003-11-19MALLOC is not meant for variable size allocationsTed Unangst
2003-10-17Be sure i_ffs_gen is always positive.Mike Pechkin
millert@, beck@, tedu@, deraadt@ ok
2003-10-04vrele swap and/or root vnode should we fail during mountroot; found by ↵Michael Shalayeff
mpech@ and tedu@ ok
2003-09-23Replace select backends with poll backends. selscan() and pollscan()Todd C. Miller
now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
2003-08-26constify ffs_tablesMichael Shalayeff
2003-08-25rename struct dinode to ufs1_dinode. clears the namespace and makesTed Unangst
way for some future work. no function changes yet. few other little cleanups. help testing otto@ and markus@
2003-08-15change arguments to suser. suser now takes the process, and a flagsTed Unangst
argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
2003-08-14constify vfsops; tedu@ okMichael Shalayeff
2003-08-11if we run out of space, make the dead vnode VNON. if a VBLK gets out, itTed Unangst
causes trouble later. netbsd pr22419
2003-08-02newline at end of printfTed Unangst
2003-07-10in statfs, cast disk size to int64_t to prevent overflow on large disks.Ted Unangst
from Peter Galbavy
2003-07-06remove ext2fs_vinit. it wasn't used and is identical to ufs_vinit.Ted Unangst
otto made the diff for me, thanks.
2003-07-06reset inode fields if deleted, prevents a panic after deleting a device.Ted Unangst
from netbsd via otto moerbeek
2003-07-06fix off by one. inodes start at 1, so e2fs_icount is a valid inode number.Ted Unangst
from otto moerbeek
2003-06-26add prototypes for userland code that reaches over. ok deraadt@Ted Unangst
2003-06-10o make mount(2) return EROFS, not EPERM if ffs is dirtyTodd C. Miller
o document EROFS in man page (2 possible causes) o recognize EROFS in mount_ffs and try to give a reasonable error message deraadt@ OK
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-26fiddle with some type names. change most instances of ufs_daddr_t toTed Unangst
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@
2003-05-14remove the last of the MI commonsJason Wright
2003-05-11revert part of previous. if mfs gets a signal, it doesn't attempt toTed Unangst
force the unmount, so there's no need to mess with resetting processes' working dirs.