aboutsummaryrefslogtreecommitdiff
path: root/sutils/fsck.c
Commit message (Collapse)AuthorAgeFilesLines
* Use our own variant of 'assert' and 'assert_perror'.Justus Winter2017-08-051-3/+3
| | | | | Our variants print stack traces on failures. This will make locating errors much easier.
* fix common misspellingsJonathan Neuschäfer2011-08-201-1/+1
| | | | | | * Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
* 1999-10-01 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-11-191-206/+33
| | | | | | | | | | | | | | | | * fstab.c (fstypes_get): Check strdup return for ENOMEM failure. (fstypes_find_program): New function, #if 0'd out for now. (fstab_argp, fstab_argp_create, options, parse_opt): New variables and functions. * fstab.h: Misc comment fixes. (struct fstab_argp_params): New type. (fstab_argp, fstab_argp_create): Declare them. * fsck.c (options): Remove --fstab/-F, --search-fmts/-S, --exclude-root/-R, --exclude/-X, --fstype/-t, --all/-A; all of these are now factored out into fstab_argp. (main): Remove parsing code for options now in fstab_argp. Instead, use fstab_argp as an argp_child and use fstab_argp_create to process the option-parsing results into a struct fstab * to process.
* 1999-06-11 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-06-111-11/+168
| | | | | | | | | | | | | | | | | | | | * fsck.c (options): Add -t/--fstype option. (main): Parse that option, and use it to constrain fstab list. * fsck.c (FSCK_F_DRYRUN): New macro. (options, main): Add -N/--dry-run option to set it. (fs_start_fsck): If FSCK_F_DRYRUN set, just print out and return zero. * fsck.c (fscks_start_fsck): If FSCK_F_DRYRUN is set, don't try to make read-only, just print a message that we would. * fsck.c (options, main): Change --fstab from -t to -F. 1999-06-10 Roland McGrath <roland@baalperazim.frob.com> * fsck.c (options): Add -A/--all and -R/--exclude-root options for compatibility with Linux, and --exclude=PATTERN as general form. (main): Parse them. Constrain fstab list by exclude patterns. * fsck.c (fsck): Don't check for "noauto" mntopt. No other system skips a filesystem because of it. (fsck): Always start at pass 1, not 0. In every other system, "pass 0" always means to skip that filesystem entirely.
* 1999-05-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-231-3/+3
| | | | * fsck.c (struct fsck): Don't use bitfield.
* 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-11-291-9/+11
| | | | * fsck.c (main): Add braces to silence gcc warning.
* (fsck_cleanup):Miles Bader1997-03-011-1/+4
| | | | Correctly remove from fscks chain.
* (argp_program_version): Make const.Miles Bader1997-02-201-1/+1
|
* (fsck):Miles Bader1997-02-051-2/+5
| | | | | In non-automatic mode, print a warning if a filesystem is of a type that can't be fscked.
* *** empty log message ***Thomas Bushnell1996-09-051-1/+3
|
* (doc): Supply a useful value.Miles Bader1996-08-271-1/+1
|
* (argp_program_version): New variable.Miles Bader1996-07-061-0/+2
|
* (fsck):Miles Bader1996-06-271-28/+31
| | | | | | | | | | Fsck pass 0 if not in automatic mode. Respect `noauto' option in automatic mode. (fs_start_fsck): When deciding to use a flags arg, mask flags against an explicit list of valid ones. (FSCK_F_AUTO): New macro. (main): Set FSCK_F_AUTO flag if in automatic mode.
* (main, options): Add --writable/-w option.Miles Bader1996-06-251-14/+30
| | | | | | | | (FSCK_F_WRITABLE): New macro. (struct fsck): Rename WAS_READONLY field to MAKE_WRITABLE. (fscks_start_fsck): Change to set make_writable field instead of was_readonly. (fsck_cleanup): Change RESTORE_WRITABLE to MAKE_WRITABLE. (fscks_wait): Likewise.
* (fsck): Wait for fscks to finish.Miles Bader1996-06-201-0/+6
|
* (_debug): New variable.Miles Bader1996-06-191-39/+82
| | | | | | | | (debug, fs_debug): New macros. (fs_start_fsck, fscks_start_fsck, fsck_cleanup, fscks_wait, fsck, main): Add debugging noise. (main): Use FSTAB_PATH instead of _PATH_MNTTAB. (args_doc): Fix.
* (options): Rename `--max-parallel' to `--parallel'.Miles Bader1996-06-191-8/+8
|
* Initial revisionMiles Bader1996-06-191-0/+504