Age | Commit message (Collapse) | Author |
|
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@
|
|
|
|
- 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
|
|
|
|
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...
|
|
|
|
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.
|
|
- 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
|
|
|
|
the filesystem if we're allowed to mmap the file.
|
|
with UBC. part of fix from csapuntz@. ok art@
|
|
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@.
|
|
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.
|
|
|
|
|
|
(Look ma, I might have broken the tree)
|
|
|
|
msdosfs_mknod. ok'd by art
|
|
|
|
|