Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-10-11 | Enable the noperm option for mount_mfs. mfs is ffs in sheeps clothing, | Martin Natano | |
so we basically get this for free. requested by espie ok deraadt | |||
2016-09-01 | Start writing the size of the cylinder group into the (unused) cpg | Otto Moerbeek | |
field of the disklabel. To be used by fsck_ffs(8) to find alternate superblocks. ok deraadt@ krw@ | |||
2016-07-25 | Revert change to density calculation. David Vasek points out this | Kenneth R Westerback | |
is a more complicated problem than it appears. ok deraadt@ | |||
2016-07-23 | At n2k16 David Vasek pointed out that FFS partitions on 4K disks are | Kenneth R Westerback | |
created with far fewer inodes than DEV_BSIZE devices. Scale the default 'density' value by (sector size)/DEV_BSIZE to create the same number of inodes. Obviously a NO-OP on DEV_BSIZE devices. Thanks David! ok deraadt@ | |||
2016-05-31 | permit wxallowed on mfs | Theo de Raadt | |
discussed with naddy a bit, ok millert | |||
2016-03-30 | for some time now mandoc has not required MLINKS to function | Jason McIntyre | |
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung | |||
2016-03-17 | simplify previous; ok bentley | Jason McIntyre | |
2016-03-17 | Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom. | Anthony J. Bentley | |
Previously behaviors were all over the map. This changes them to use COLUMNS first, and either terminal width or a hardcoded value (typically 80) as appropriate. ok deraadt@; man bits ok jmc@ | |||
2016-03-09 | We are done providing support for the vax. | Theo de Raadt | |
lots of agreement. | |||
2016-02-18 | TMPDIR is no longer supported; | Jason McIntyre | |
from rafael neves | |||
2016-01-28 | malloc(3) returns a pointer, so check against NULL, not 0. (No functional ↵ | Gleydson Soares | |
change) OK millert@ | |||
2015-12-06 | Avoid out of boundary access on illegal command line arguments. | Tobias Stoeckmann | |
ok deraadt, mmcc, tedu | |||
2015-11-25 | We can't make a pledge if we're mount_mfs(8) as we need the ability to call | Mark Kettenis | |
mount(2). ok deraadt@ | |||
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-11-21 | remove mlinks for aliases: ntalkd, mfs, updatedb | Jason McIntyre | |
ok schwarze | |||
2015-11-10 | newfs does not need TMPDIR support | Theo de Raadt | |
2015-10-11 | Prefer dprintf() over snprintf()+write() | Philip Guenther | |
ok beck@ deraadt@ | |||
2015-09-29 | Delete the final, inscrutable NOSTRICT and VARARGS lint comments | Philip Guenther | |
ok millert@ | |||
2015-08-20 | <stdlib.h> is included, so do not need to cast result from | Theo de Raadt | |
malloc, calloc, realloc* ok krw millert | |||
2015-04-18 | Convert many atoi() calls to strtonum(), adding range checks and failure | Theo de Raadt | |
handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert | |||
2015-02-06 | Better size_t overflow check for mount_mfs. OK miod@ | Todd C. Miller | |
2015-01-20 | Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or | Theo de Raadt | |
delete <sys/param.h> if now possible ok guenther | |||
2015-01-18 | do not require <a.out.h> | Theo de Raadt | |
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-08-29 | mount_mfs does not require disklabel to be run; | Jason McIntyre | |
diff From: Navan Carson confirmed/ok mikeb | |||
2014-07-20 | Make sure the correct errno is reported by warn* or err* and not | Philip Guenther | |
the errno of an intervening cleanup operation like close/unlink/etc. Diff from Doug Hogan (doug (at) acyclic.org) | |||
2014-07-20 | Mark fatal() as printf-like. | Philip Guenther | |
Don't put a format string that's only used once in a variable. | |||
2014-06-30 | Use getrlimit(2) instead of assuming MAXDSIZ is available in userland. | Otto Moerbeek | |
ok deraadt@ | |||
2014-01-24 | Don't include <machine/vmparam.h> directly. Instead, get it with its necessary | Miod Vallat | |
dependencies via <sys/sysctl.h>. Unbreaks ppc userland build. | |||
2013-11-22 | Whole bunch of (unsigned char) casts carefully added for ctype calls. | Theo de Raadt | |
Careful second audit by millert | |||
2013-11-12 | add a variety of missing prototypes | Theo de Raadt | |
2013-11-05 | Replace direct references to p_size, p_offset and d_secperunit with | Kenneth R Westerback | |
DL_[GET|SET]PSIZE(), DL_[GET|SET]POFFSET(), DL_[GET|SET]DSIZE() in order to get|set correct value that includes the high bits of the value. | |||
2013-11-03 | Add missing (long long) cast of variable, (long long) casts | Kenneth R Westerback | |
for defines fragnum, fsbtodb, cgsblock, and cgdmin. | |||
2013-11-01 | Sprinkle (long long) casts where %lld is being used to print daddr_t | Kenneth R Westerback | |
variables. Some random whitespace/knf repairs encountered on the way. ok miod@ on inspection, feedback & more suggestions from millert@ | |||
2013-10-07 | Say 'fragments' where fragments are meant. Divide by DEV_BSIZE | Kenneth R Westerback | |
to convert from bytes to DEV_SIZE. ok otto@ zhuk@ (for his chunk) | |||
2013-10-07 | Show number of sectors, not the number of 512-byte blocks, when | Kenneth R Westerback | |
saying "n sectors of m bytes". Issue pointed out by David Vasek on misc@. Thanks! | |||
2013-10-07 | Oops. Too mechanical -- can't use DL_SECTOBLK() to set fssize, since | Kenneth R Westerback | |
command line sector size overrides disk label sector size. Add a comment to make sure I don't do it again. | |||
2013-10-06 | daddr_t tweaks. %lld -> %llu, intermediate disk sector calculation | Kenneth R Westerback | |
variable, drop pointless casts, vax-only sector variable to u_int64_t. No intentional functional change. | |||
2013-10-06 | daddr_t comment tweak and whitespace fix. | Kenneth R Westerback | |
2013-06-11 | final removal of daddr64_t. daddr_t has been 64 bit for a long enough | Theo de Raadt | |
test period; i think 3 years ago the last bugs fell out. ok otto beck others | |||
2013-04-23 | handle large ino_t; ok tedu | Theo de Raadt | |
2011-06-05 | fix format string | Charles Longeau | |
ok dcoppa@ otto@ also reviewed by Vadim Zhukov | |||
2011-05-23 | Allow specifying k/m/g/... suffixes in newfs(8) -S and -s options. | David Coppa | |
Useful for mount_mfs, now you can just say: # mount_mfs -s 50m swap /tmp And it will do what you want, taking into account sector size. Old behaviour of -s (specifying count of sectors) is, of course, preserved. All the work was done by Vadim Zhukov (persgray(at)gmail com). OK myself, otto@, thib@ | |||
2011-04-26 | setrlimit only if mfs; ok millert@ | Otto Moerbeek | |
2011-03-31 | these days, newfs creates one inode per 4 fragments, rather than one per 8KB, | Stuart Henderson | |
this lets it adapt to large filesystems (disklabel -E automatically increases fragment and block size for these). ok otto@ | |||
2010-12-13 | stray tab | Marco Peereboom | |
2010-07-24 | mount -f doesn't help mfs, but it doesn't hurt, so stop warning about it. | Ted Unangst | |
ok deraadt | |||
2010-07-02 | garbage collect an unused variable | Theo de Raadt | |
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-05-03 | Switch newfs to opendev(3) - this simplies the code and will allow it to | Joel Sing | |
benefit from planned changes to opendev(3). ok krw@ marco@ |