summaryrefslogtreecommitdiff
path: root/sbin/newfs_ext2fs/mke2fs.c
AgeCommit message (Collapse)Author
2017-08-28fix clang warning wrt const string and +; from joerg@netbsd; ok millert@Otto Moerbeek
2016-03-14Replace an ad-hoc implementation of opendev(), with said function andnatano
open the device only once with the correct flags, instead of twice (one file handle for reading and one for writing). Committing this at once because the changes are interrelated. ok stefan
2016-01-26Remove needless zeroing. Anonymously mapped memory is always zeroed.mmcc
ok tb@
2015-11-26Instead, hoist TIOCGWINSZ up to the top, then "tty" pledge is not needed.Theo de Raadt
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-09-27Fix mmap() calls that check for a result other than MAP_FAILED.Doug Hogan
ok tedu@
2014-07-31unbreak the build - e2fs_isave now needs the superblock.Martin Pelikan
2014-07-13kill fs2hXX/h2fsXX macros with letohXX/htoleXXMartin Pelikan
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". While here, nuke the copy of bswap.c and link it against the kernel's like fsck_ext2fs has done, for better maintainability. ok guenther
2014-07-13new superblock header needs fixes for BE architecturesMartin Pelikan
2014-07-11fix dacl->size_hi header changeMartin Pelikan
2014-04-22Convert a malloc(x*y)+memset to calloc(x,y)Philip Guenther
From Jean-Philippe Ouellet (jean-philippe (at) ouellet.biz)
2013-12-27from netbsd, free(bbp) in error paths. Coverity CID 274748.Theo de Raadt
via Loganaden Velvindron
2013-04-17ext2fs has a 32-bit time fields. store a u_int32_t of the real time_t --Theo de Raadt
that should tide us over for a long time. ok guenther
2012-12-04remove some unnecessary sys/cdefs.h inclusionsTheo de Raadt
2011-03-12These utilities can currently only operate with a 32-bit block number range,Theo de Raadt
so use daddr32_t ok jasper
2010-02-16fix OpenBSD rcs tags, prompted by Tim van der MolenOtto Moerbeek
2010-02-16Port of newfs_ext2fs from NetBSD. not hooked to the build yet.Otto Moerbeek
ok miod@