History log of /openbsd-src/sys/ufs/ext2fs/ext2fs_alloc.c (Results 1 – 25 of 39)
Revision Date Author Comments
# 4123b6a7 16-May-2021 deraadt <deraadt@openbsd.org>

panic does not require a \n at the end. When one is provided, it looks wrong.


# b66b9ef8 11-Mar-2021 jsg <jsg@openbsd.org>

spelling


# 3209772d 24-Jun-2020 cheloha <cheloha@openbsd.org>

kernel: use gettime(9)/getuptime(9) in lieu of time_second(9)/time_uptime(9)

time_second(9) and time_uptime(9) are widely used in the kernel to
quickly get the system UTC or system uptime as a time_

kernel: use gettime(9)/getuptime(9) in lieu of time_second(9)/time_uptime(9)

time_second(9) and time_uptime(9) are widely used in the kernel to
quickly get the system UTC or system uptime as a time_t. However,
time_t is 64-bit everywhere, so it is not generally safe to use them
on 32-bit platforms: you have a split-read problem if your hardware
cannot perform atomic 64-bit reads.

This patch replaces time_second(9) with gettime(9), a safer successor
interface, throughout the kernel. Similarly, time_uptime(9) is replaced
with getuptime(9).

There is a performance cost on 32-bit platforms in exchange for
eliminating the split-read problem: instead of two register reads you
now have a lockless read loop to pull the values from the timehands.
This is really not *too* bad in the grand scheme of things, but
compared to what we were doing before it is several times slower.

There is no performance cost on 64-bit (__LP64__) platforms.

With input from visa@, dlg@, and tedu@.

Several bugs squashed by visa@.

ok kettenis@

show more ...


# 2c4864a3 03-Jun-2016 natano <natano@openbsd.org>

Unsigned integers can't be negative.
from David Hill and mmcc@
ok stefan


# 21dab745 14-Mar-2015 jsg <jsg@openbsd.org>

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


# 7f58a11f 14-Sep-2014 jsg <jsg@openbsd.org>

remove uneeded proc.h includes
ok mpi@ kspillner@


# 5970a65f 14-Jul-2014 pelikan <pelikan@openbsd.org>

better type safety and KNF.

Because ext2fs has only 32-bit inode numbers, use ufsino_t as in FFS.
Disk blocks are u_int32_t as well, because we don't support the 64BIT flag.
When we do, there's goin

better type safety and KNF.

Because ext2fs has only 32-bit inode numbers, use ufsino_t as in FFS.
Disk blocks are u_int32_t as well, because we don't support the 64BIT flag.
When we do, there's going to be a lot more going on than just daddr_t.

While there, add some journaling-related bits into the superblock to play with.

ok guenther

show more ...


# f7dbefaa 13-Jul-2014 pelikan <pelikan@openbsd.org>

kill fs2hXX/h2fsXX macros with letohXX/htoleXX

The reason being that ext2 structures are little-endian but JBD2 journal
is big-endian. Don't confuse readers by talking about "file system endian".

kill fs2hXX/h2fsXX macros with letohXX/htoleXX

The reason being that ext2 structures are little-endian but JBD2 journal
is big-endian. Don't confuse readers by talking about "file system endian".

Some KNF while there.

ok guenther

show more ...


# 53f22ea8 27-May-2014 krw <krw@openbsd.org>

Zap a bunch of trailing whitespace.


# 0f5c6c8b 12-Dec-2013 tedu <tedu@openbsd.org>

replace old bcopy/bzero with standard functions. ok kettenis


# 1abdbfde 11-Jun-2013 deraadt <deraadt@openbsd.org>

final removal of daddr64_t. daddr_t has been 64 bit for a long enough
test period; i think 3 years ago the last bugs fell out.
ok otto beck others


# e012d6d3 30-May-2013 guenther <guenther@openbsd.org>

UFS does't do inode numbers >2^32, so use a smaller type internally,
only using ino_t in the VFS layer APIs: vget, readdir, getattr.

otto wrote the original diff for libsa to keep bootblock from ove

UFS does't do inode numbers >2^32, so use a smaller type internally,
only using ino_t in the VFS layer APIs: vget, readdir, getattr.

otto wrote the original diff for libsa to keep bootblock from overflowing
ok deraadt@ kettenis@

show more ...


# 428694f5 18-Sep-2011 bluhm <bluhm@openbsd.org>

Fix more printf format string bugs in sys/ufs.
ok miod


# 93f62a9e 04-Jul-2011 tedu <tedu@openbsd.org>

bread does nothing with its ucred argument. remove it. ok matthew


# 8add4794 05-Jan-2008 otto <otto@openbsd.org>

Make the ffs code 64-bit disk block number clean. Based on a diff
from Pedro Martelleto. Two things remain: the on-disk quota
structures are still 32-bit and statfs does not do 64-bit numbers
yet.

Make the ffs code 64-bit disk block number clean. Based on a diff
from Pedro Martelleto. Two things remain: the on-disk quota
structures are still 32-bit and statfs does not do 64-bit numbers
yet. ok deraadt@

show more ...


# 5087ce21 22-Jun-2007 jasper <jasper@openbsd.org>

declare "uid" as uid_t instead of u_int, and fix format string accordingly

ok pedro@ thib@


# 5f64cd9c 17-Jun-2007 jasper <jasper@openbsd.org>

ansify/de-register.
no binary change


# 1dfb1939 02-Jun-2007 pedro <pedro@openbsd.org>

ufs1_daddr_t cleanup, okay thib@ deraadt@


# 72a2b703 14-Mar-2007 pedro <pedro@openbsd.org>

Check if there are still blocks left to be allocated _after_ we have
read in the bitmap (an operation that might cause us to sleep), and
before committing to the allocation. Fixes PR 5230, okay krw@,

Check if there are still blocks left to be allocated _after_ we have
read in the bitmap (an operation that might cause us to sleep), and
before committing to the allocation. Fixes PR 5230, okay krw@, millert@.

show more ...


# 2374824d 11-Dec-2005 pedro <pedro@openbsd.org>

inode/dinode separation for ext2fs


# 9dd8235c 03-Jul-2005 drahn <drahn@openbsd.org>

Extended Attributes was a piece to get to ACLs, however ACLs have not
been worked on, so EA is pointless. Also the code is not enabled
in GENERIC so it is not being tested or maintained.


# ae3260bc 02-May-2005 pedro <pedro@openbsd.org>

quadradically -> quadratically, lots of


# 2f4b598d 18-Sep-2004 tedu <tedu@openbsd.org>

hierarchy is spelled hierarchy, from Jonathan Gray


# cc2fc615 13-Jul-2004 millert <millert@openbsd.org>

Change mode_t and nlink_t from 16bit to 32bit. This allows us to
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

Change mode_t and nlink_t from 16bit to 32bit. This allows us to
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@

show more ...


# 3212dc31 21-Jun-2004 tholo <tholo@openbsd.org>

First step towards more sane time handling in the kernel -- this changes
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_t

First step towards more sane time handling in the kernel -- this changes
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@

show more ...


12