| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
ok guenther@ tb@ deraadt@
|
|
|
|
|
|
| |
unlocking the directory vnode.
OK mpi@, helg@
|
|
|
|
|
|
|
| |
the file allocation routine. This allows stepwise changing of the vnode
locking discipline.
OK mpi@
|
| |
|
|
|
|
|
|
| |
unnecessary because curproc always does the locking.
OK mpi@
|
|
|
|
|
|
|
| |
curproc that does the locking or unlocking, so the proc parameter
is pointless and can be dropped.
OK mpi@, deraadt@
|
|
|
|
|
|
|
|
| |
trivial change to use rrw locks instead. All it needs is LK_* defines
for the RW_* flags.
tested by naddy and sthen on package building infrastructure
input and ok jmc mpi tedu
|
|
|
|
|
|
|
|
| |
tmpfs_readlink() functions ignore the noatime mount option, tmpfs_read()
should not update atime when zero bytes have been requested (as per
posix) and tmpfs_write() should update mtime and ctime (as per posix).
ok espie
|
|
|
|
|
|
| |
torture tested on amd64, i386 and macppc
ok beck mpi stefan
"the change looks right" deraadt
|
| |
|
| |
|
|
|
|
|
|
|
| |
atime and mtime are UTIME_OMIT (at least for ufs, tmpfs, and ext2fs), and
to correctly handle a timestamp of -1.
ok millert@
|
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
|
|
|
| |
- 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@
|
| |
|
| |
|
|
|
|
|
| |
don't need to be married.
ok guenther miod beck jsing kettenis
|
|
|
|
|
|
| |
<uvm/uvm.h> if possible and remove double inclusions.
ok beck@, mlarkin@, deraadt@
|
|
|
|
|
|
|
|
|
| |
structure of tmpfs_write.
rewrite the opening tests to conform more to ffs's code, so that overrun
is not used unitialized. Patch by kettenis@ (on the road)
deraadt@ "do it right away"
|
|
|
|
|
| |
problem reported by brad@
ok kettenis@ millert@
|
|
|
|
| |
generic flavor. problems noted and tested by ajacoutot
|
|
|
|
|
|
|
|
| |
until we've confirmed they're on the same filesystem as the source:
not all filesystems do locking the same.
problem report and testing chrisz@
ok espie@
|
|
|
|
|
|
|
|
|
| |
trying to hardlink a directory. While this is not allowed on tmpfs, this
allows us to reach the code that checks for this such that we can return
the appropriate error.
Cluestick from Pedro Martelletto.
ok espie@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
thanks to krw@ for the original cherry-picking, millert@ for useful comment.
so:
- no longer expose internal kernel addresses, uses seq numbers instead
- make sure the numbers don't overflow (millert@ UINT64_MAX)... a
conservative estimate is that tmpfs will run out of seqs in >600 years...
- don't malloc dents, put them on the stack and zero them
- gc whiteout code
- gc getpage/putpage code (shrink uvm instead)
okay krw@, millert@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
https://github.com/bitrig/bitrig/commits/pedro_tmpfs_fixes
7efd381ac3:
# mkdir -p x/y
# mv x/y/. z (or mv x/y/.. z)
(panic)
264ecd2c7b:
# mknod x b 100 100 (can be any block/character device)
# ls -lR /
(panic)
7da08d22fd:
# mkfifo x (or mknod x)
# mv x y
(panic)
af0666c65a:
# mount -t tmpfs -o -n16 tmpfs /mnt (create tmpfs with 16 inodes limit)
# cd /mnt
# touch x
# for i in `jot 100 1 100`; do ln -s x $i; done (create 100 symlinks, =
they "succeed" even though they failed)
# ls -lart
7e9296a6f8:
# mkdir x
# touch x/y
# chflags uappnd x (or sappnd)
# rm x/y
936b9cf257:
# mkdir -p x/y
# rmdir x/y/..
(panic)
de541406ef:
# touch x
# ln x y
# stat -f %c x
# sleep 10
# rm y
# stat -f %c x
okay guenther@, krw@
|
|
|
|
|
|
|
|
|
|
| |
after the last entry that fit, but I had it setting it to the cookier
of the entry after that, so it would skip one entry for each block
required.
Remove the no-longer-needed cnt/cntp variable while we're touching things.
prodding and testing by espie@
|
|
|
|
| |
Prodding and initial diff from espie@
|
|
|
|
| |
from pedro.
|
|
|
|
| |
Obviously will not do... fixed
|
| |
|
|
|
|
|
|
|
|
| |
- Remove _PC_PATH_MAX, _PC_PIPE_BUF and _PC_SYNC_IO.
- Add _PC_TIMESTAMP_RESOLUTION.
- Change _PC_FILESIZEBITS from using "sizeof(off_t) * CHAR_BIT" to returning 64.
With input from and Ok guenther@
|
| |
|
|
heavy lifting by Pedro Martelletto, timestamp fixes by me.
THIS IS NOT ENABLED YET, AND REQUIRES UVM CHANGES AND REVIEW.
Imported, so that working on it can be mostly done in tree with less painful
diff exchanges, and that we have history of further changes.
okay tedu@, deraadt@
|