summaryrefslogtreecommitdiff
path: root/sbin/fsirand
AgeCommit message (Collapse)Author
2019-01-25I am retiring my old email address; replace it with my OpenBSD one.Todd C. Miller
2016-08-14Convert %q to %ll. Cast off_t to long long for printf-style args.Philip Guenther
Eliminate pointless casts to void* or off_t ok krw@
2016-05-28Fix a pledge abort that can be triggered by using DIOCGDINFO on a fileTheo Buehler
that is not a disk device (e.g. fsirand -p /altroot) by removing the first of the two pledges. The program then runs with pledge "stdio" right after the ioctl. ok deraadt
2015-11-23Revert previous tweak, as discussed on source-changes@mmcc
2015-11-23Use pledge "disklabel" as needed. The theory here is these tools become moreTheo de Raadt
resistant against memory correctup, if a corrupt filesystem is given to them. ok krw
2015-11-23"random generation numbers" -> "randomly generated numbers"mmcc
2015-11-18opendev() should not use OPENDEV_PART; ok millertTheo de Raadt
2015-10-11After the filesystem is opened, pledge "stdio"Theo de Raadt
ok doug
2015-03-20Fix cut & pasto in warning message; from Andre SmaginTodd C. Miller
2015-02-07When getopt processing flags, many should be flag=1 instead of flag++Theo de Raadt
ok tedu miod
2015-01-20Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orTheo de Raadt
delete <sys/param.h> if now possible ok guenther
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2014-10-11slightly more complicated reallocarray conversion. always realloc* ratherTheo de Raadt
than the silly test which realloc* does itself, and massage the inode sizes more carefully ok doug
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
test period; i think 3 years ago the last bugs fell out. ok otto beck others
2013-04-23handle big ino_tTheo de Raadt
ok otto
2013-04-02handle time_t which is not u_int32_tTheo de Raadt
ok guenther
2010-05-18dont let sys/ioctl.h imply that you get the ioctls in dkio.h. thisDavid Gwynne
gets rid of #include <sys/dkio.h> in sys/ioctl.h and adds #include <sys/dkio.h> to the places that actually want and use the disk ioctls. this became an issue when krw@'s X build failed when he was testing a change to dkio.h. tested by krw@ help from and ok miod@
2007-06-01convert ufs2_daddr_t -> daddr64_t for greater clarity; ok pedro otto thibTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-03-19Bits to make fsirand grok FFS2, okay millert@Pedro Martelletto
2007-02-20simplify synopsis and usage(); from Igor SobradoJason McIntyre
2004-09-14remove unused variableTheo de Raadt
2004-08-08spacingTheo de Raadt
2003-09-24realloc fixes; ok hoTheo de Raadt
2003-08-25rename struct dinode to ufs1_dinode. clears the namespace and makesTed Unangst
way for some future work. no function changes yet. help testing otto@ and markus@
2003-07-30Remove my email address from my entry in the AUTHORS sectionTodd C. Miller
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-03- section reorderJason McIntyre
- some mdoc fixes
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.Todd C. Miller
2002-07-03ansiTheo de Raadt
2002-06-09rm trailing whitespaceTodd T. Fries
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-08-02o) .Sh AUTHOR -> .Sh AUTHORS;Mike Pechkin
o) .Sh EXAMPLE -> .Sh EXAMPLES; o) Delete .Sh OPTIONS. Text moved to .Sh DESCRIPTION; millert@ ok
2001-03-11- No need to repeat the name of a parameter: just use [...].Aaron Campbell
- Xr reboot(8) in SEE ALSO since it is referenced in the DESCRIPTION.
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-04-15Mostly punctuation fixes.Aaron Campbell
2000-03-18Remove hard sentence breaks, and some other cleanup along the way.Aaron Campbell
2000-03-05Finish standardizing options list introduction.Aaron Campbell
1999-07-04trash some old leftover macros and replace them with -mdoc macrosAaron Campbell
1999-05-28more .El madnessAaron Campbell
1998-12-15always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.netAaron Campbell
1998-11-28kill redundant .Nm macro arguments; other misc fixesAaron Campbell
1998-11-11more `` '' -> .Dq sillyness; remove redundant .Pp macros; other misc fixesAaron Campbell
1998-09-17sbin/ man page fixesAaron Campbell
1998-08-29man page repairs; aaron@ug.cs.dal.caTheo de Raadt
1998-06-21Remove the advertising clause in my old license, it impedes free useTodd C. Miller
of the code as a large number of similar clauses makes it impossible to write an ad for a product using the code...
1998-05-16spelling typoDavid Leonard
1998-03-07Use .OxTodd C. Miller
1998-01-22Fix backup sblock sanity checking for real.Todd C. Miller
1998-01-22Fix sanity check of backup sblocks as well as error message.Todd C. Miller