summaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs
AgeCommit message (Expand)Author
2021-03-08Add some references, most of these were removed when we stopped buildingJonathan Gray
2021-01-27shuffle externs (and definitions) around to satisfy -fno-commonTheo de Raadt
2020-07-13Both phase 1 and phase 5 need the cylinder group meta data, so save thoseOtto Moerbeek
2020-06-20With filesystem having many cylinder groups and many inodes per cg theOtto Moerbeek
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-02-06Replace overlapping memcpy() with memmove() in getpathname().Todd C. Miller
2018-09-24Use unveil(2). These programs fit together in various strange ways,Theo de Raadt
2018-09-16Use user_from_uid(3) and group_from_gid(3) in a few more placesTodd C. Miller
2018-01-05the value of bflag is a blockno, so use the proper type, avoidsOtto Moerbeek
2017-04-13fix wrongly indented linesJonathan Gray
2017-04-12Prevent inosused from wrapping when soft updates is enabled whileTodd C. Miller
2017-04-10Remove always false comparison: inosused type is ino_t, which isFrederic Cambus
2016-12-16Eliminate some gcc warnings about 'unused variables', mostly byKenneth R Westerback
2016-09-09Tighten pledge for fsdb and eliminate a strcmp("fsdb", getprogname())Theo Buehler
2016-09-01better words for -b, wiyh help from jmc@Otto Moerbeek
2016-09-01better computation of location of alternate superblocks, based on infoOtto Moerbeek
2016-08-20fsdb(8) sucks in and is pledged by fsck(8). Since it uses editline(3),Theo Buehler
2015-12-10Remove NULL-checks before free(). ok tb@mmcc
2015-11-24hotroot is calculated late in fsck_ffs, so defer the pledge.Theo de Raadt
2015-11-23Cannot pledge() in the hotroot caseTheo de Raadt
2015-11-23Use pledge "disklabel" as needed. The theory here is these tools become moreTheo de Raadt
2015-10-15corrects pledge code for fsck_ffs and fsck_ext2fsSebastien Marie
2015-10-15fsck_ffs has a ^T signal handler which opens /dev/tty late. Hoist thatTheo de Raadt
2015-10-14Since the fsck_* programs now only handle one filesystem, this createsTheo de Raadt
2015-10-14Only accept one filesystem/device as argument for checking. Few peopleTheo de Raadt
2015-09-05snprintf+write --> dprintfPhilip Guenther
2015-08-22spacingTheo de Raadt
2015-07-27document "F" in interactive mode, like for fsck.8;Jason McIntyre
2015-02-07When getopt processing flags, many should be flag=1 instead of flag++Theo de Raadt
2015-01-20Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orTheo de Raadt
2015-01-19remove #ifndef #define blocks trying to handle lack of BUFSIZTheo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-10-14rely on reallocarray() to give us the overflow detection, rather thanTheo de Raadt
2014-10-08trivial use of getreallocarray()Theo de Raadt
2014-09-06inodesc.id_entryno holds a file size, so upgrade it from int to u_int64_t;Philip Guenther
2014-07-08decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hTheo de Raadt
2014-05-29fsck should use the same values in checking as newfs does in creatingKenneth R Westerback
2014-05-24Use consistent format specifiers (%lld) and casts (long long) whenKenneth R Westerback
2014-05-21Nuke some trailing whitespace to shrink subsequent diffs.Kenneth R Westerback
2014-05-20As suggested by guenther@ and millert@, replace seek+[read|write] withKenneth R Westerback
2014-05-09Modernize spelling. 'Mimick' -> 'Mimic' in comment.Kenneth R Westerback
2014-05-09Fix '-b' option to work with the superblock locations output by newfsKenneth R Westerback
2013-11-22Kirk was being waaaay too chummy with the compiler when he trustedPhilip Guenther
2013-11-11incorrect %lld for an intTheo de Raadt
2013-11-05Replace direct references to p_size, p_offset and d_secperunit withKenneth R Westerback
2013-11-03Add missing (long long) cast of variable, (long long) castsKenneth R Westerback
2013-11-02No need to cast constants or simple variables to (daddr_t). UseKenneth R Westerback
2013-11-01Sprinkle (long long) casts where %lld is being used to print daddr_tKenneth R Westerback
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
2013-04-25big int_t/time_t fixes; ok deraadt@ krw@Otto Moerbeek