Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-01-16 | Usually, -width Fl (which is 10n) is too wide and hence ugly. | Ingo Schwarze | |
Change several instances, most of them to the usual -width Ds. | |||
2019-07-01 | Forgot to commit this patch. | Kevin Lo | |
2019-06-28 | When system calls indicate an error they return -1, not some arbitrary | Theo de Raadt | |
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. | |||
2018-11-25 | Remove (unused) FS_BOOT training wheels. If you are allowed to newfs a | Kenneth R Westerback | |
partition, you obviously know what you are doing. Even (especially?) if the new file system will be ffs or ext2fs. ok deraadt@ as part of larger diff | |||
2017-08-28 | fix clang warning wrt const string and +; from joerg@netbsd; ok millert@ | Otto Moerbeek | |
2016-03-16 | There's no reason to have execute permissions on a file system image. | natano | |
ok millert | |||
2016-03-14 | Replace an ad-hoc implementation of opendev(), with said function and | natano | |
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-03-14 | Add a missing "cpath" promise; newfs_ext2fs can create files when used | natano | |
with the -F and -s flags. ok stefan | |||
2016-01-26 | Remove needless zeroing. Anonymously mapped memory is always zeroed. | mmcc | |
ok tb@ | |||
2015-12-06 | Avoid out of boundary access on illegal command line arguments. | Tobias Stoeckmann | |
ok deraadt, mmcc, tedu | |||
2015-11-28 | Oops, left the pledge "tty" active in the previous commited | Theo de Raadt | |
pointed out by Chris Hettrick | |||
2015-11-26 | Instead, hoist TIOCGWINSZ up to the top, then "tty" pledge is not needed. | Theo de Raadt | |
2015-11-26 | unbelievable.. this uses TIOCGWINSZ.. how did i miss that. pledge "tty". | Theo de Raadt | |
2015-11-23 | Use pledge "disklabel" as needed. The theory here is these tools become more | Theo de Raadt | |
resistant against memory correctup, if a corrupt filesystem is given to them. ok krw | |||
2015-10-14 | unfortunately rewritelabel() just before termination does a non-permitted | Theo de Raadt | |
ioctl to rewrite the label, in support of the old-school "frag info in the disklabel" concept. disklabel folk, please come talk to me... | |||
2015-10-13 | can pledge "stdio" after opening device. | Theo de Raadt | |
2015-03-13 | remove the first comma from constructs like ", and," and ", or,": you can use | Jason McIntyre | |
"and" and "or" to join sentence clauses, and you can use commas, but both hinders reading; | |||
2015-01-16 | Replace <sys/param.h> with <limits.h> and other less dirty headers where | Theo 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-11-20 | remove sys/file.h includes in favor of fcntl.h where needed. | Ted Unangst | |
ok deraadt guenther | |||
2014-09-27 | Fix mmap() calls that check for a result other than MAP_FAILED. | Doug Hogan | |
ok tedu@ | |||
2014-07-31 | unbreak the build - e2fs_isave now needs the superblock. | Martin Pelikan | |
2014-07-13 | kill fs2hXX/h2fsXX macros with letohXX/htoleXX | Martin 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-13 | new superblock header needs fixes for BE architectures | Martin Pelikan | |
2014-07-11 | Fix on big-endian arches after the inode change. | Miod Vallat | |
2014-07-11 | fix dacl->size_hi header change | Martin Pelikan | |
2014-06-29 | do not need sys/disk.h | Theo de Raadt | |
2014-05-21 | Use errc/warnc to simplify code. | Philip Guenther | |
ok jca@ krw@ | |||
2014-04-22 | Clarify an err() message | Philip Guenther | |
2014-04-22 | Convert a malloc(x*y)+memset to calloc(x,y) | Philip Guenther | |
From Jean-Philippe Ouellet (jean-philippe (at) ouellet.biz) | |||
2014-04-21 | While we don't recommend using ext2fs, the directions for doing so | Philip Guenther | |
shouldn't be misleading ok krw@ | |||
2013-12-27 | from netbsd, free(bbp) in error paths. Coverity CID 274748. | Theo de Raadt | |
via Loganaden Velvindron | |||
2013-11-22 | Whole bunch of (unsigned char) casts carefully added for ctype calls. | Theo de Raadt | |
Careful second audit by millert | |||
2013-10-27 | If a constant string needs a name, use a static const array instead of a | Philip Guenther | |
pointer or non-const array, as that minimizes the symbols, maximizes the placement into read-only memory, and avoids warnings from gcc -Wformat=2 when they're used as format strings. ok deraadt@ | |||
2013-07-16 | Add missing .Mt macros for AUTHORS email addresses. | Ingo Schwarze | |
From Jan Stary <hans at stare dot cz>. ok jmc@ | |||
2013-04-17 | ext2fs 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 | |||
2013-04-16 | spelling fixes; | Jason McIntyre | |
2012-12-04 | remove some unnecessary sys/cdefs.h inclusions | Theo de Raadt | |
2012-07-08 | if you use nitems() in userland, you must define it yourself | Theo de Raadt | |
discussed with guenther | |||
2011-03-12 | These utilities can currently only operate with a 32-bit block number range, | Theo de Raadt | |
so use daddr32_t ok jasper | |||
2010-05-18 | dont let sys/ioctl.h imply that you get the ioctls in dkio.h. this | David 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@ | |||
2010-03-14 | Specify when newfs_ext2fs was introduced into OpenBSD. | Antoine Jacoutot | |
ok otto@ jmc@ | |||
2010-02-18 | - add -q to synopsis | Jason McIntyre | |
- add the mnemonic from newfs -q | |||
2010-02-18 | Add -q flag for compatiblity with newfs as requested by miod@ | Otto Moerbeek | |
2010-02-17 | local ext2fs_bswap.c instead of groping in the sys/ufs/ext2fs tree | Otto Moerbeek | |
2010-02-17 | handle -t for when being called by newfs | Otto Moerbeek | |
2010-02-16 | clean this page up; | Jason McIntyre | |
2010-02-16 | fix OpenBSD rcs tags, prompted by Tim van der Molen | Otto Moerbeek | |
2010-02-16 | default verbosity to 4 | Otto Moerbeek | |
2010-02-16 | man page with tweaks from miod; ok miod@ | Otto Moerbeek | |
2010-02-16 | Port of newfs_ext2fs from NetBSD. not hooked to the build yet. | Otto Moerbeek | |
ok miod@ |