summaryrefslogtreecommitdiffstats
path: root/sbin/fsck
Commit message (Collapse)AuthorAgeFilesLines
* MFC r313915:trasz2017-03-191-1/+1
| | | | Make fsck(8) default to "ufs", like eg mount(8) does.
* MFC r306733:sevan2016-10-161-1/+13
| | | | | | | | Add history section to fsck(8) PR: 212472 Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D8104
* strchr(3) will return NULL if it cannot find the character in thearaujo2016-04-182-2/+2
| | | | | | | string. getfsent(3) will return NULL on EOF or error. MFC after: 2 weeks.
* Explicitly add more files to the 'runtime' package.gjb2016-02-091-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-29/+25
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-191-2/+0
| |\
| * \ Merge head from 7/28sjg2014-08-192-1/+15
| |\ \
| * | | Updated dependenciessjg2014-05-161-1/+0
| | | |
| * | | Updated dependenciessjg2014-05-101-0/+2
| | | |
| * | | Updated dependenciessjg2013-03-111-0/+1
| | | |
| * | | Updated dependenciessjg2013-02-161-2/+0
| | | |
| | | |
| | \ \
| *-. \ \ Sync from headsjg2012-11-045-50/+42
| |\ \ \ \
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | |/ / / | |/| | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | Recommit r274750.imp2014-11-211-29/+25
| | | | |
* | | | | Back our r274750 until discussions on proper fix are over.imp2014-11-201-25/+29
| | | | |
* | | | | Use geom attribute "PART::type" to determine partition type and chooseae2014-11-201-29/+25
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | relevant fsck_xxx utility. MFC after: 1 week
* | | | Revert r267233 for now. PIE support needs to be reworked.bdrewery2014-08-191-2/+0
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. 50+% of NO_PIE use is fixed by adding -fPIC to INTERNALLIB and other build-only utility libraries. 2. Another 40% is fixed by generating _pic.a variants of various libraries. 3. Some of the NO_PIE use is a bit absurd as it is disabling PIE (and ASLR) where it never would work anyhow, such as csu or loader. This suggests there may be better ways of adding support to the tree. Many of these cases can be fixed such that -fPIE will work but there is really no reason to have it in those cases. 4. Some of the uses are working around hacks done to some Makefiles that are really building libraries but have been using bsd.prog.mk because the code is cleaner. Had they been using bsd.lib.mk then NO_PIE would not have been needed. We likely do want to enable PIE by default (opt-out) for non-tree consumers (such as ports). For in-tree though we probably want to only enable PIE (opt-in) for common attack targets such as remote service daemons and setuid utilities. This is also a great performance compromise since ASLR is expected to reduce performance. As such it does not make sense to enable it in all utilities such as ls(1) that have little benefit to having it enabled. Reported by: kib
* | | In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.bdrewery2014-06-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is currently an opt-in build flag. Once ASLR support is ready and stable it should changed to opt-out and be enabled by default along with ASLR. Each application Makefile uses opt-out to ensure that ASLR will be enabled by default in new directories when the system is compiled with PIE/ASLR. [2] Mark known build failures as NO_PIE for now. The only known runtime failure was rtld. [1] http://www.bsdcan.org/2014/schedule/events/452.en.html Submitted by: Shawn Webb <lattera@gmail.com> Discussed between: des@ and Shawn Webb [2]
* | | If called without -T or -t, fsck attempts to detect thetrhodes2014-05-231-1/+13
| |/ |/| | | | | | | | | | | file system type. If this fails, fsck will fail with "unknown file system type" message. PR: 188214
* | Make fsck and fsck_msdosfs WARNS=6 cleanuqs2012-10-214-13/+13
| | | | | | | | | | | | | | | | | | - sprinkle const - add volatile qualifier to avoid vfork clobbering Inspired by: NetBSD PR: bin/139802 Reviewed by: ed
* | sbin/fsck: s/perror/perr/ to avoid shadowinguqs2012-10-214-38/+30
|/ | | | | | | | | - rename some other vars too - merge NetBSD license changes Obtained from: NetBSD PR: bin/139802 Reviewed by: ed
* Add missing static keywords for global variables to tools in sbin/.ed2011-11-042-3/+3
| | | | | | These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file.
* Add new option -c to specify alternatve location of the /etc/fstabsobomax2011-10-252-2/+16
| | | | | | file. MFC after: 1 month
* Fix typos and spelling mistakes.joel2010-08-061-1/+1
|
* Note that foreground fsck should be run after a filesystem related panic.mckusick2010-07-221-0/+11
| | | | | Suggested by: Mikhail Teterin (mi@) MFC after: 1 week
* Fix minor resource leak in a function which was introduced by changing annetchild2009-11-201-1/+3
| | | | | | err() to a return in r106254. MFC after: 1 week
* Add the '-C' "check clean" flag. If the FS is marked clean, skip fileobrien2009-01-303-4/+13
| | | | | | | | system checking. However, if the file system is not clean, perform a full fsck. Reviewed by: delphij Obtained from: Juniper Networks
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-102-5/+5
|
* Fixed the misplaced $FreeBSD$.ru2005-02-091-1/+2
|
* Deal with double whitespace.ru2004-07-031-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-2/+5
|
* Remove advertising clause from University of California Regent's license,markm2004-04-092-8/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* Use __printflike() and __dead2 instead of hard-coded gccisms.bde2003-12-271-6/+4
| | | | | | | | Declare perror(). We define and use a home made version of perror(3) that can't simply be removed (although it has the same interface as perror(3)) since it is very different (it prints on stdout, doesn't always print the program name, and sometimes exits). Declare it to get a reminder of this brokenness when WARNS is increased enough.
* Garbage-collected hotroot, rawname() and unrawname() again. Thesebde2003-12-272-41/+0
| | | | | | became garbage when block devices were axed and were removed a few months later, but they came back (with hotroot renamed to hot + hotroot()) when the NetBSD fsck was mismerged.
* fsck_msdosfs/main.c:bde2003-12-272-14/+0
| | | | | | | | | | | | - Don't use errexit() to (mis)implement usage(). Using errexit() just gave the bogus exit code 8. - Fixed 3 other style bugs in usage(). fsck/fsutil.[ch]: - Garbage-collected errexit(). It is essentially just one of NetBSD's fsck_ext2fs error printing functions, but we don't have fsck_ext2fs and the function is unsuitable for use there too (since pfatal() is also used and it printf to a different stream).
* Bump WARNS level and add a '?' to WARNS=.trhodes2003-10-291-1/+1
|
* Remove redundant declaration of the perror() function, it's provided by stdio.h.trhodes2003-10-292-2/+0
| | | | Don't define DKTYPENAMES without using it.
* o Fix usage(): remove '-l', add missed '-f', sort.maxim2003-07-261-1/+1
|
* Remove references to the '-l' option in synopsis. The rest of thesimon2003-07-261-2/+1
| | | | | | | | description of this option was removed in v. 1.22. PR: docs/54880 Submitted by: Lukas Ertl <l.ertl@univie.ac.at> Approved by: ceri (mentor)
* Convert fsck and mount to using execvP to find fsck_foo and mount_foo.gordon2003-06-292-63/+7
| | | | | | | This simplifies the code path and makes the default path easy to override in the /rescue case. Submitted by: Tim Kientzle <kientzle@acm.org>
* Back out previous delta to fix fsck on filesystems without an fstab entry,jmallett2003-04-251-1/+23
| | | | | | | | | | | | | where we want to take the disklabel filesystem type of "4.2BSD" and use fsck_4.2bsd on those filesystems. Add a comment about why the code is there, now that we know: * XXX This is a kludge to make automatic filesystem type guessing * from the disklabel work for "4.2BSD" filesystems. It does a * very limited subset of transliteration to a normalised form of * filesystem name, and we do not seem to enforce a filesystem * name character set.
* Strip out bogus difference from when this came from NetBSD: transliteratingjmallett2003-03-031-17/+1
| | | | | | | | | | | | | | | | | | upper-case alphabetical characters to lower-case ones, and spaces to dashes. The person who added this when bringing the code from NetBSD has no idea why he added it, and nobody on freebsd-fs came up with any cases where the icky part (the conversion of spaces to underscores) was needed. The removal of the upper-case conversion follows an even more obvious logic: it avoids any sort of namespace issues. People using StUdLy caps for filesystem names deserve everything they get. Otherwise, Efs and efs might be totally different things, but would use the same fsck. And we don't want that, right? That just provokes the sort of foot-shooting this would prevent. If you have problems with this, I'll walk you through using sed on your fstab, cause the only way you could have problems is if you spelled ufs as "UFS". Most likely, you haven't done that. MFC after: 1 month
* english(4) police.schweikh2002-12-271-2/+2
|
* Straighten out a compound if() to improve readability marginally.phk2002-12-171-1/+4
|
* Uniformly refer to a file system as "file system".ru2002-12-121-1/+1
| | | | Approved by: re
* Give a meaningfull diagnostic when we cannot determine the filesystem type.phk2002-10-311-1/+3
|
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-213-31/+31
|
* The .Nm utilitycharnier2002-07-061-1/+1
|
OpenPOWER on IntegriCloud