#
044dcf88 |
| 03-Aug-2019 |
deraadt <deraadt@openbsd.org> |
In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -x so the file cannot be re-executed upon the next boot. This provides a stronger one-shot-upgrade model than the upgrade script
In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -x so the file cannot be re-executed upon the next boot. This provides a stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade. Now various forms of upgrade failure will reboot into /bsd, which is probably more recoverable. Performing fchmod -x depends on (1) use of MI boot.c (not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality in the IO layer. Most architectures have this support now.
Two diagnostics "fchmod a-x %s: failed" and "/bsd.upgrade is not u+x" will remain in the tree while refinements happen for some of the laggard architectures.
based upon a discussion florian tested in snapshots for more than a week without any complaints
show more ...
|
#
bd3713d2 |
| 25-Nov-2016 |
reyk <reyk@openbsd.org> |
Fix signedness warnings with careful casts and replace a re-defined variable.
OK krw@
|
#
65062bae |
| 17-Jul-2015 |
kspillner <kspillner@openbsd.org> |
Adjust type of link_len to match type of di_size in underlying struct, and change type of len to size_t to match strlen(3) result. Drop unneeded casts.
u_int64_t is overkill because the actual size
Adjust type of link_len to match type of di_size in underlying struct, and change type of len to size_t to match strlen(3) result. Drop unneeded casts.
u_int64_t is overkill because the actual size is still limited to SYMLINK_MAX but it is probably better to match the filesystem types.
ok miod@, guenther@
show more ...
|
#
0650b93a |
| 22-Jul-2014 |
deraadt <deraadt@openbsd.org> |
use NULL instead of (foo *)0; Kent R. Spillner
|
#
a71ac23e |
| 22-Jul-2014 |
deraadt <deraadt@openbsd.org> |
remove unneccessary casts; Kent R. Spillner
|
#
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 ...
|
#
6f403118 |
| 28-May-2011 |
miod <miod@openbsd.org> |
Do not leak memory if ufs_open() fails; reported by and ok martynas@
|
#
214337f8 |
| 13-Mar-2011 |
deraadt <deraadt@openbsd.org> |
Change daddr_t to daddr32_t. The bootblocks on our architectures only do 32-bit block spanning. If later on we get some that can/should do 64-bit, that can be done now using daddr64_t (but of cours
Change daddr_t to daddr32_t. The bootblocks on our architectures only do 32-bit block spanning. If later on we get some that can/should do 64-bit, that can be done now using daddr64_t (but of course, we are taking this step to finalize the daddr_t 64-bit conversion). ok miod krw
show more ...
|
#
3c7eaff1 |
| 06-Jan-2008 |
otto <otto@openbsd.org> |
repair build of boot code where it uses an undefind __ashldi3 on some archs boot code uses 32-bit blknos anyway
|
#
2112e842 |
| 16-Mar-2007 |
tsi <tsi@openbsd.org> |
Re-initialise f_seekp to 0 on a successful read_inode() return. Fixes a problem that prevented the booting of a kernel that, to be found, needs more than one block per directory iin its path to be re
Re-initialise f_seekp to 0 on a successful read_inode() return. Fixes a problem that prevented the booting of a kernel that, to be found, needs more than one block per directory iin its path to be read.
ok miod@, deraadt@
show more ...
|
#
f46297fd |
| 25-Aug-2003 |
tedu <tedu@openbsd.org> |
rename struct dinode to ufs1_dinode. clears the namespace and makes way for some future work. no function changes yet. help testing otto@ and markus@
|
#
599546b3 |
| 11-Aug-2003 |
deraadt <deraadt@openbsd.org> |
ansification and knf and protos
|
#
29295d1c |
| 02-Jun-2003 |
millert <millert@openbsd.org> |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
1ee9984c |
| 01-Jun-2003 |
deraadt <deraadt@openbsd.org> |
strcpy/strcat/sprintf removal in all bootblocks. various testing by various people. outside of some messy things in src/gnu, only one thing in the main tree now violates this rule: bind
|
#
c4071fd1 |
| 14-Mar-2002 |
millert <millert@openbsd.org> |
First round of __P removal in sys
|
#
bfcf73bf |
| 23-Feb-1998 |
niklas <niklas@openbsd.org> |
strong signedness typing a version of egcs I tried months ago wanted me to fix. I am not sure these are necessary for gas 2.8 but I figure I would commit them anyhow.
|
#
017ebad9 |
| 02-Apr-1997 |
mickey <mickey@openbsd.org> |
fix readdir a little bit
|
#
b7a1a5dd |
| 25-Mar-1997 |
niklas <niklas@openbsd.org> |
Get rid of userland includes
|
#
e76f679c |
| 16-Feb-1997 |
mickey <mickey@openbsd.org> |
opendir, readdir, closedir (define NO_READDIR, if none required) minor fix in cd9660 only ufs working, all the others are on the list....
|
#
79dbd5ce |
| 08-Dec-1996 |
niklas <niklas@openbsd.org> |
Merge to NetBSD 961207
|
#
f849b0f1 |
| 16-Oct-1996 |
mickey <mickey@openbsd.org> |
include <sys/stat.h>
|
#
4c6e1940 |
| 23-Sep-1996 |
mickey <mickey@openbsd.org> |
add OpenBSD tag.
|
#
e3aa3551 |
| 10-Jun-1996 |
deraadt <deraadt@openbsd.org> |
pull string.h at right place
|
#
6e480098 |
| 15-Jan-1996 |
deraadt <deraadt@openbsd.org> |
from netbsd: The read_inode() function now returns the result of the strategy function instead of success in all cases
|
#
3a19b8d3 |
| 15-Dec-1995 |
deraadt <deraadt@openbsd.org> |
from netbsd; 64-bit cleanup
|