History log of /openbsd/sbin/dumpfs/dumpfs.c (Results 1 – 25 of 39)
Revision Date Author Comments
# a7b9eedc 09-May-2024 florian <florian@openbsd.org>

ctime(3) and ctime_r(3) can fail when timestamps are way off.
Add missing error checks to all calls under sbin/

Input kettenis, millert
OK millert


# 81fb472f 03-Feb-2024 beck <beck@openbsd.org>

Remove Softdep.

Softdep has been a no-op for some time now, this removes it to get
it out of the way.

Flensing mostly done in Talinn, with some help from krw@

ok deraadt@


# d7259957 04-Dec-2022 cheloha <cheloha@openbsd.org>

userspace: remove vestigial '?' cases from top-level getopt(3) loops

getopt(3) returns '?' when it encounters a flag not present in the in
the optstring or if a flag is missing its option argument.

userspace: remove vestigial '?' cases from top-level getopt(3) loops

getopt(3) returns '?' when it encounters a flag not present in the in
the optstring or if a flag is missing its option argument. We can
handle this case with the "default" failure case with no loss of
legibility. Hence, remove all the redundant "case '?':" lines.

Prompted by dlg@. With help from dlg@ and millert@.

Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2

ok naddy@ millert@ dlg@

show more ...


# abbb3558 20-Jun-2020 otto <otto@openbsd.org>

With filesystem having many cylinder groups and many inodes per cg the
ncg * ipg calcualtion can overflow if signed types are used. Move
to uint32_t for the relevant values. Aligned with FreeBSD cha

With filesystem having many cylinder groups and many inodes per cg the
ncg * ipg calcualtion can overflow if signed types are used. Move
to uint32_t for the relevant values. Aligned with FreeBSD changes.
Also make sure newfs refuses to create an fs with more that 2^32-1
inodes. ok millert@

show more ...


# 6965e1ea 17-Feb-2020 otto <otto@openbsd.org>

Do not look for an FFS1 file system at SBLOCK_UFS2. Doing so will
find the wrong super-block for file systems with 64k block size.
ok visa@


# df69c215 28-Jun-2019 deraadt <deraadt@openbsd.org>

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

show more ...


# e384f6ef 23-Nov-2015 deraadt <deraadt@openbsd.org>

Use pledge "disklabel" as needed. The theory here is these tools become more
resistant against memory correctup, if a corrupt filesystem is given to them.
ok krw


# 78eb0b7e 20-Jan-2015 deraadt <deraadt@openbsd.org>

Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or
delete <sys/param.h> if now possible
ok guenther


# b9fc9a72 16-Jan-2015 deraadt <deraadt@openbsd.org>

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

show more ...


# 6783a1e5 13-May-2014 krw <krw@openbsd.org>

Nuke another pointless dev_bsize variable always set to 512 and use
DEV_BSIZE. David Vasek says it still works the same on 4K-byte-sector
device. i.e. prints one value incorrectly. For which a fix s

Nuke another pointless dev_bsize variable always set to 512 and use
DEV_BSIZE. David Vasek says it still works the same on 4K-byte-sector
device. i.e. prints one value incorrectly. For which a fix should
be following soon.

show more ...


# f5bbe9b4 02-Apr-2013 guenther <guenther@openbsd.org>

Use a time_t variable with ctime()

ok deraadt@


# 324d848a 28-Feb-2011 halex <halex@openbsd.org>

switch open(...) to opendev(...)
makes yet another utility honor DUID's

ok jsing@ miod@ deraadt@


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(th

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

show more ...


# 3f5388ed 19-Aug-2008 pedro <pedro@openbsd.org>

Look at 'fs_flags' when dumping FFS2 file systems, okay beck@, millert@
and otto@.


# 21702b63 08-Jun-2008 otto <otto@openbsd.org>

fix generated size for -m; bug report by Peter J. Philipp; ok millert@
deraadt@


# cf24986c 22-Jan-2008 otto <otto@openbsd.org>

pick the right csaddr when dumping cgs. Makes FFS2 dumps work much better
ok thib@ millert@


# 681949af 21-May-2007 millert <millert@openbsd.org>

Use SBLOCKSEARCH[] to find the superblock. OK pedro@


# cdd03969 05-May-2007 millert <millert@openbsd.org>

Add support for ffs2 and a new flag, -m, which will output a
newfs command that can be used to make a filesystem with the
same settings. OK otto@


# d9a0e995 19-Apr-2007 otto <otto@openbsd.org>

teach dumpfs about the 'updated' flag; ok pedro@


# 363b8579 19-Mar-2007 pedro <pedro@openbsd.org>

Add FFS2 fields to the superblock, change file system tools to keep
accessing FFS1 fields, okay art@, quite some testing by ckuethe@, simon@
and thib@, thanks.


# e3a7fbbd 09-Mar-2006 pedro <pedro@openbsd.org>

Remove option -n from newfs as well as all references to fs_postbl()
Various testing for a while, okay krw@


# f9becd3f 25-Jun-2003 deraadt <deraadt@openbsd.org>

ansi


# 1ef0d710 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.


# 603822d3 06-Sep-2002 deraadt <deraadt@openbsd.org>

bogus ; outside of function


# 401ae41b 09-Jun-2002 todd <todd@openbsd.org>

rm trailing whitespace


12