summaryrefslogtreecommitdiff
path: root/sutils/fsck.c
AgeCommit message (Collapse)Author
1999-11-191999-10-01 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* 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-111999-06-11 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* 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-231999-05-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* fsck.c (struct fsck): Don't use bitfield.
1998-11-291998-11-29 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* fsck.c (main): Add braces to silence gcc warning.
1997-03-01(fsck_cleanup):Miles Bader
Correctly remove from fscks chain.
1997-02-20(argp_program_version): Make const.Miles Bader
1997-02-05(fsck):Miles Bader
In non-automatic mode, print a warning if a filesystem is of a type that can't be fscked.
1996-09-05*** empty log message ***Thomas Bushnell
1996-08-27(doc): Supply a useful value.Miles Bader
1996-07-06(argp_program_version): New variable.Miles Bader
1996-06-27(fsck):Miles Bader
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.
1996-06-25(main, options): Add --writable/-w option.Miles Bader
(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.
1996-06-20(fsck): Wait for fscks to finish.Miles Bader
1996-06-19(_debug): New variable.Miles Bader
(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.
1996-06-19(options): Rename `--max-parallel' to `--parallel'.Miles Bader
1996-06-19Initial revisionMiles Bader