summaryrefslogtreecommitdiffstats
path: root/sbin/newfs_ext2fs
AgeCommit message (Expand)AuthorFilesLines
2020-01-16Usually, -width Fl (which is 10n) is too wide and hence ugly.schwarze1-4/+4
2019-07-01Forgot to commit this patch.kevlo1-8/+8
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-4/+4
2018-11-25Remove (unused) FS_BOOT training wheels. If you are allowed to newfs akrw1-4/+1
2017-08-28fix clang warning wrt const string and +; from joerg@netbsd; ok millert@otto1-2/+2
2016-03-16There's no reason to have execute permissions on a file system image.natano1-2/+2
2016-03-14Replace an ad-hoc implementation of opendev(), with said function andnatano3-63/+30
2016-03-14Add a missing "cpath" promise; newfs_ext2fs can create files when usednatano1-2/+2
2016-01-26Remove needless zeroing. Anonymously mapped memory is always zeroed.mmcc1-2/+1
2015-12-06Avoid out of boundary access on illegal command line arguments.tobias1-4/+6
2015-11-28Oops, left the pledge "tty" active in the previous commitedderaadt1-2/+2
2015-11-26Instead, hoist TIOCGWINSZ up to the top, then "tty" pledge is not needed.deraadt2-9/+13
2015-11-26unbelievable.. this uses TIOCGWINSZ.. how did i miss that. pledge "tty".deraadt1-2/+2
2015-11-23Use pledge "disklabel" as needed. The theory here is these tools become morederaadt1-1/+4
2015-10-14unfortunately rewritelabel() just before termination does a non-permittedderaadt1-5/+1
2015-10-13can pledge "stdio" after opening device.deraadt1-1/+5
2015-03-13remove the first comma from constructs like ", and," and ", or,": you can usejmc1-3/+3
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2-6/+10
2014-11-20remove sys/file.h includes in favor of fcntl.h where needed.tedu1-2/+2
2014-09-27Fix mmap() calls that check for a result other than MAP_FAILED.doug1-2/+2
2014-07-31unbreak the build - e2fs_isave now needs the superblock.pelikan1-2/+2
2014-07-13kill fs2hXX/h2fsXX macros with letohXX/htoleXXpelikan3-137/+13
2014-07-13new superblock header needs fixes for BE architecturespelikan2-5/+5
2014-07-11Fix on big-endian arches after the inode change.miod1-2/+2
2014-07-11fix dacl->size_hi header changepelikan1-3/+3
2014-06-29do not need sys/disk.hderaadt1-2/+1
2014-05-21Use errc/warnc to simplify code.guenther1-2/+2
2014-04-22Clarify an err() messageguenther1-2/+2
2014-04-22Convert a malloc(x*y)+memset to calloc(x,y)guenther1-3/+2
2014-04-21While we don't recommend using ext2fs, the directions for doing soguenther2-7/+7
2013-12-27from netbsd, free(bbp) in error paths. Coverity CID 274748.deraadt1-2/+5
2013-11-22Whole bunch of (unsigned char) casts carefully added for ctype calls.deraadt1-3/+3
2013-10-27If a constant string needs a name, use a static const array instead of aguenther1-4/+4
2013-07-16Add missing .Mt macros for AUTHORS email addresses.schwarze1-3/+3
2013-04-17ext2fs has a 32-bit time fields. store a u_int32_t of the real time_t --deraadt1-12/+12
2013-04-16spelling fixes;jmc1-3/+3
2012-12-04remove some unnecessary sys/cdefs.h inclusionsderaadt2-6/+2
2012-07-08if you use nitems() in userland, you must define it yourselfderaadt1-1/+5
2011-03-12These utilities can currently only operate with a 32-bit block number range,deraadt1-11/+11
2010-05-18dont let sys/ioctl.h imply that you get the ioctls in dkio.h. thisdlg1-1/+2
2010-03-14Specify when newfs_ext2fs was introduced into OpenBSD.ajacoutot1-3/+3
2010-02-18- add -q to synopsisjmc1-2/+3
2010-02-18Add -q flag for compatiblity with newfs as requested by miod@otto2-4/+10
2010-02-17local ext2fs_bswap.c instead of groping in the sys/ufs/ext2fs treeotto2-3/+126
2010-02-17handle -t for when being called by newfsotto1-2/+5
2010-02-16clean this page up;jmc1-25/+30
2010-02-16fix OpenBSD rcs tags, prompted by Tim van der Molenotto3-3/+3
2010-02-16default verbosity to 4otto1-1/+1
2010-02-16man page with tweaks from miod; ok miod@otto1-0/+335
2010-02-16Port of newfs_ext2fs from NetBSD. not hooked to the build yet.otto4-0/+2027