Age | Commit message (Collapse) | Author |
|
ok pedro@, sturm@
|
|
exists, keep the containing directory's long name capabilities.
From NetBSD via Enache Adrian, okay millert@.
|
|
save the correct offset in case the directory has support for long file
names, and return it to the caller so she can proceed from a valid point.
From Alexey Vatchenko, okay tedu@.
|
|
Zap all calls to simple_lock/unlock() on it (those calls are
#defined away though). Remove the LK_INTERLOCK from the calls
to vn_lock() and cleanup the filesystems wich implement VOP_LOCK().
(by remvoing the v_interlock from there calls to lockmgr()).
ok pedro@, art@, tedu@
|
|
|
|
effectively been a no-op for quite some time now,
without promise for future usage.
ok pedro@
Testing by krw@ (earlier diff)
and Johan Mson Lindman (tybollt@solace.miun.se)
|
|
Enables devices (e.g. newer iPods, various other mp3 players) that use
2048 byte sectors.
Inspired by original diffs from weingart@ and Alexey Vatchenk.
ok tom@ pedro@ deraadt@ weingart@ marco@
|
|
MSDOSFS code. Eliminates -G option to mount_msdos.
Nit detection by gwk@, tom@, jmc@.
ok weingart@ tom@ thib@ dlg@ deraadt@
|
|
ok weingart@ pedro@
|
|
represented in the FAT, limit the number of clusters we work with
to the FAT value. This stops corrupt filesystems causing us to run
off the end of the FAT and panic()ing in fillinusemap().
Found by Jason Crawford (jasonrcrawford at gmail.com) with the MOKB
fs fuzzer. Initial debugging by thib@.
ok krw@
|
|
the error path; ok pedro
|
|
Found using fuzz generator written by lmh@info-pull.com
|
|
|
|
Okay weingart@, "I'm game with putting my name on it" dlg@
|
|
there are devices reporting zero heads; we don't use this value anyways
ok pedro, reported by Igor Grabin <violent at death.kiev.ua>
|
|
|
|
and mount error paths.
ok sturm@ pedro@
|
|
Don't reject FAT file systems with a number of "Heads" greater than
255; USB keychains exist that use 256 as the number of heads. This
check has also been removed in Darwin (along with most of the other
head/sector sanity checks).
this fixes pr 4988, ok pedro
|
|
Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64.
|
|
Spotted by tedu@, okay tom@ and tedu@.
|
|
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.
|
|
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@
|
|
__STRICT_ALIGNMENT instead.
Help pedro@ deraadt@, ok deraadt@
|
|
|
|
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@
|
|
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@
|
|
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@
|
|
from MS-DOS filesystems.
Assistance otto@; thanks.
"looks ok" krw@; ok derradt@.
|
|
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@
|
|
no change in compiler assembly output.
|
|
|
|
which is not possible here. Problem found and fixed by form@.
ok millert@ fgsch@ pedro@
|
|
|
|
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@
|
|
|
|
|
|
|
|
same first 13 (or some multiple thereof) characters.
Fix was verified by reporter (Kong Long); from NetBSD
|
|
|
|
|
|
|
|
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.
|
|
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
|
|
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@
|
|
don't like it. pr3400
|
|
|
|
|
|
|
|
file system.
submitted by mpech@ in pr1675
|
|
ok millert@
|