summaryrefslogtreecommitdiff
path: root/sys/msdosfs
AgeCommit message (Collapse)Author
2005-12-01Add missing cache_purge() in msdosfs_rename().Pedro Martelletto
Spotted by tedu@, okay tom@ and tedu@.
2005-11-19Remove unnecessary lockmgr() archaism that was costing too much in termsPedro Martelletto
of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks.
2005-10-08When moving a directory to under a new parent, write the correctTom Cosgrove
cluster number into our . pointer. This fixes filesystem corruption seen under these circumstances. Testing nick@, krw@, ian@ and others - thanks. "i agree" pedro@; "get it in" deraadt@
2005-09-28No part of the code defines UNALIGNED_ACCESS, use reverted tests forMiod Vallat
__STRICT_ALIGNMENT instead. Help pedro@ deraadt@, ok deraadt@
2005-03-14Fix typo in commentTom Cosgrove
2005-03-02(And remember to remove the block on filesystems > 128 GB)Tom Cosgrove
Add support for MS-DOS filesystems > 128 GB, by changing the way we calculate fileids (fake inode numbers). This uses some hash code by Thomas Wang, who has agreed to the existing licence on the file (i.e. his name just needed to be added to the copyright list). Thanks. Also a tiny bit of KNF. Closes PR 4119; works for the OP Pawel Rogocz. Help with testing todd@, thanks. ok deraadt@
2005-03-02Add support for MS-DOS filesystems > 128 GB, by changing the way weTom Cosgrove
calculate fileids (fake inode numbers). This uses some hash code by Thomas Wang, who has agreed to the existing licence on the file (i.e. his name just needed to be added to the copyright list). Thanks. Also a tiny bit of KNF. Closes PR 4119; works for the OP Pawel Rogocz. Help with testing todd@, thanks. ok deraadt@
2005-03-02Make all the MS-DOS filesystem code ignore trailing dots and spaces, inTom Cosgrove
the same way that Windows does. Without this, `touch .foobar.' followed by `touch .foobar.' will create two directory entries called `.foobar', thereby corrupting the filesystem. Found by todd@, who has been doing things with msdosfs that are truly obscene. "alright" tedu@, ok deraadt@
2005-03-01Fix an integer overflow that prevented us from reading files >= 2 GBTom Cosgrove
from MS-DOS filesystems. Assistance otto@; thanks. "looks ok" krw@; ok derradt@.
2005-03-01The maximum file size on MS-DOS filesystems is 4 GB - 1 byte, soTom Cosgrove
don't bother trying to write files bigger than this. Just return EFBIG to caller, rather than panic()ing later. Closes PR 4090. Assistance from otto@, tested by OP and moritz@; thanks. ok tedu@ deraadt@
2004-12-26Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no change in compiler assembly output.
2004-11-30kill breada(), from Sven Dehmlow. ok tedu@ millert@Pedro Martelletto
2004-11-29Don't use seltrue() in poll ops since it requires v_rdev dereferencingAlexander Yurchenko
which is not possible here. Problem found and fixed by form@. ok millert@ fgsch@ pedro@
2004-09-18hierarchy is spelled hierarchy, from Jonathan GrayTed Unangst
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-05-16remove printfs i left in. noticed by marc@Ted Unangst
2004-05-14use pool for namei pathbuf. testing ok millert@ tdeval@Ted Unangst
2004-05-1232 bit ints are uint32_t, not u_long. works on 64bit now. ok deraadt@Ted Unangst
2004-03-31Fix false positives when comparing long file names that have theTodd C. Miller
same first 13 (or some multiple thereof) characters. Fix was verified by reporter (Kong Long); from NetBSD
2003-12-10fix NULL/0 mixupJun-ichiro itojun Hagino
2003-12-04TyposMiod Vallat
2003-11-13Couple of typos in poll changes. ok millert@Dale Rahn
2003-10-22from netbsd:Ted Unangst
Fix a panic that occurred when trying to traverse a corrupt msdosfs filesystem. With this particular corruption, the code in pcbmap() would compute an offset into an array that was way out of bounds, so check the bounds before trying to access and return an error if the offset would be out of bounds.
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-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-14don't write grabage in unused direntry field. newer windows versionsTed Unangst
don't like it. pr3400
2003-08-14constify vfsops; tedu@ okMichael Shalayeff
2003-07-29constify the conversion tablesMichael Shalayeff
2003-05-07string cleaning; ok art teduTheo de Raadt
2003-04-26fix handling when renaming directories on fat32. mv a/b . would mess up theTed Unangst
file system. submitted by mpech@ in pr1675
2003-04-18support for making directories +x without affecting normal filesTed Unangst
ok millert@
2003-04-14rename rootvp to rvp to avoid global. ok deraadt@ krw@Ted Unangst
2003-01-31File system locking fixups, mostly from NetBSD:Artur Grabowski
- cache_lookup move common code from various fs's here always return with vnode and parent locked adjust return codes - PDIRUNLOCK - new flag set if lookup couldn't lock parent vnode - kernfs and procfs lock vnode in get_root don't unlock (again) in kernfs_freevp fix memory leak in procfs From tedu@stanford.edu deraadt@ and various other ok
2002-05-24protect biodone with splbioArtur Grabowski
2002-04-23In mount.h, rename field export -> export_info, to avoid collision with C++.Marc Espie
Synch files that use that field. (This argument is an internal interface specific to OpenBSD, so it won't cause compatibility problems.) (No bump, not an ABI change). ok art, millert...
2002-03-14First round of __P removal in sysTodd C. Miller
2001-12-19UBC was a disaster. It worked very good when it worked, but on someArtur Grabowski
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.
2001-12-10Big cleanup inspired by NetBSD with some parts of the code from NetBSD.Artur Grabowski
- get rid of VOP_BALLOCN and VOP_SIZE - move the generic getpages and putpages into miscfs/genfs - create a genfs_node which must be added to the top of the private portion of each vnode for filsystems that want to use genfs_{get,put}pages - rename genfs_mmap to vop_generic_mmap
2001-12-10Merge in struct uvm_vnode into struct vnode.Artur Grabowski
2001-12-04Readd VOP_MMAP, will be used soon. Right now it's just a question toArtur Grabowski
the filesystem if we're allowed to mmap the file.
2001-12-02Fix msdos filesystem read/write errors with large files, bug introducedDale Rahn
with UBC. part of fix from csapuntz@. ok art@
2001-11-28don't generate an error if setting the gid/uid doesn't actually changeJakob Schlyter
the gid/uid. among other things, this eliminates tons of warnings when unpacking a tar file in an msdos fs. from NetBSD. ok millert@, fgs@.
2001-11-27Merge in the unified buffer cache code as found in NetBSD 2001/03/10. TheArtur Grabowski
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.
2001-11-21VOP_UNLOCK + vrele does not alway == vputConstantine Sapuntzakis
2001-11-21Use vfs_mount_foreach_vnodeConstantine Sapuntzakis
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-08-23retreive -> retrieveAaron Campbell
2001-07-26remove unused support for creating files and directories fromassar
msdosfs_mknod. ok'd by art
2001-06-27Remove old vm.Artur Grabowski
2001-06-23Get rid of several vnode operationsConstantine Sapuntzakis