Age | Commit message (Collapse) | Author |
|
* 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.
|
|
* 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.
|
|
* fsck.c (struct fsck): Don't use bitfield.
|
|
* fsck.c (main): Add braces to silence gcc warning.
|
|
Correctly remove from fscks chain.
|
|
|
|
In non-automatic mode, print a warning if a filesystem is of a type that
can't be fscked.
|
|
|
|
|
|
|
|
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.
|
|
(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.
|
|
|
|
(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.
|
|
|
|
|