summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs
AgeCommit message (Expand)AuthorFilesLines
2021-03-08Add some references, most of these were removed when we stopped buildingjsg1-3/+4
2021-01-27shuffle externs (and definitions) around to satisfy -fno-commonderaadt2-41/+87
2020-07-13Both phase 1 and phase 5 need the cylinder group meta data, so save thoseotto5-32/+149
2020-06-20With filesystem having many cylinder groups and many inodes per cg theotto6-22/+26
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-5/+5
2019-02-06Replace overlapping memcpy() with memmove() in getpathname().millert1-3/+3
2018-09-24Use unveil(2). These programs fit together in various strange ways,deraadt2-3/+9
2018-09-16Use user_from_uid(3) and group_from_gid(3) in a few more placesmillert1-7/+4
2018-01-05the value of bflag is a blockno, so use the proper type, avoidsotto3-10/+11
2017-04-13fix wrongly indented linesjsg1-2/+2
2017-04-12Prevent inosused from wrapping when soft updates is enabled whilemillert1-3/+8
2017-04-10Remove always false comparison: inosused type is ino_t, which isfcambus1-4/+2
2016-12-16Eliminate some gcc warnings about 'unused variables', mostly bykrw1-1/+3
2016-09-09Tighten pledge for fsdb and eliminate a strcmp("fsdb", getprogname())tb3-15/+13
2016-09-01better words for -b, wiyh help from jmc@otto1-3/+12
2016-09-01better computation of location of alternate superblocks, based on infootto1-33/+24
2016-08-20fsdb(8) sucks in and is pledged by fsck(8). Since it uses editline(3),tb1-4/+10
2015-12-10Remove NULL-checks before free(). ok tb@mmcc1-3/+2
2015-11-24hotroot is calculated late in fsck_ffs, so defer the pledge.deraadt2-6/+6
2015-11-23Cannot pledge() in the hotroot casederaadt1-3/+4
2015-11-23Use pledge "disklabel" as needed. The theory here is these tools become morederaadt1-1/+6
2015-10-15corrects pledge code for fsck_ffs and fsck_ext2fssemarie1-1/+6
2015-10-15fsck_ffs has a ^T signal handler which opens /dev/tty late. Hoist thatderaadt2-18/+18
2015-10-14Since the fsck_* programs now only handle one filesystem, this createsderaadt1-8/+14
2015-10-14Only accept one filesystem/device as argument for checking. Few peoplederaadt2-15/+23
2015-09-05snprintf+write --> dprintfguenther1-5/+4
2015-08-22spacingderaadt1-2/+2
2015-07-27document "F" in interactive mode, like for fsck.8;jmc1-2/+13
2015-02-07When getopt processing flags, many should be flag=1 instead of flag++deraadt1-5/+5
2015-01-20Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orderaadt11-22/+19
2015-01-19remove #ifndef #define blocks trying to handle lack of BUFSIZderaadt1-5/+1
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt11-37/+51
2014-10-14rely on reallocarray() to give us the overflow detection, rather thanderaadt1-11/+7
2014-10-08trivial use of getreallocarray()deraadt1-3/+3
2014-09-06inodesc.id_entryno holds a file size, so upgrade it from int to u_int64_t;guenther9-46/+47
2014-07-08decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hderaadt1-2/+1
2014-05-29fsck should use the same values in checking as newfs does in creatingkrw1-6/+9
2014-05-24Use consistent format specifiers (%lld) and casts (long long) whenkrw1-11/+9
2014-05-21Nuke some trailing whitespace to shrink subsequent diffs.krw3-6/+5
2014-05-20As suggested by guenther@ and millert@, replace seek+[read|write] withkrw1-15/+5
2014-05-09Modernize spelling. 'Mimick' -> 'Mimic' in comment.krw1-2/+2
2014-05-09Fix '-b' option to work with the superblock locations output by newfskrw3-30/+26
2013-11-22Kirk was being waaaay too chummy with the compiler when he trustedguenther1-5/+6
2013-11-11incorrect %lld for an intderaadt1-2/+2
2013-11-05Replace direct references to p_size, p_offset and d_secperunit withkrw1-4/+4
2013-11-03Add missing (long long) cast of variable, (long long) castskrw1-6/+8
2013-11-02No need to cast constants or simple variables to (daddr_t). Usekrw1-3/+3
2013-11-01Sprinkle (long long) casts where %lld is being used to print daddr_tkrw3-19/+26
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughderaadt12-56/+56
2013-04-25big int_t/time_t fixes; ok deraadt@ krw@otto1-2/+3