From 313e12dec47d78fe08ae36916c0c928860f6367c Mon Sep 17 00:00:00 2001 From: cgd Date: Thu, 17 Oct 1996 20:41:24 +0000 Subject: [PATCH] clean up and add a fair bit of text. document -f (and the fact that it's ignored). --- sbin/fsck_msdos/fsck_msdos.8 | 60 +++++++++++++++++++++++++++--------- 1 file changed, 46 insertions(+), 14 deletions(-) diff --git a/sbin/fsck_msdos/fsck_msdos.8 b/sbin/fsck_msdos/fsck_msdos.8 index 3e7f572a4e35..8bd3a9eac2dc 100644 --- a/sbin/fsck_msdos/fsck_msdos.8 +++ b/sbin/fsck_msdos/fsck_msdos.8 @@ -1,4 +1,4 @@ -.\" $NetBSD: fsck_msdos.8,v 1.3 1996/09/24 13:17:19 ws Exp $ +.\" $NetBSD: fsck_msdos.8,v 1.4 1996/10/17 20:41:24 cgd Exp $ .\" .\" Copyright (C) 1995 Wolfgang Solfrank .\" Copyright (c) 1995 Martin Husemann @@ -40,14 +40,24 @@ .Sh SYNOPSIS .Nm fsck_msdos .Fl p +.Op Fl f .Ar filesystem .Ar ... .Nm fsck_msdos -.Op Fl y -.Op Fl n +.Op Fl fny .Ar filesystem .Ar ... .Sh DESCRIPTION +.Pp +The +.Nm +utility verifies and repairs +.Tn FAT +filesystems (more commonly known +as +.Tn DOS +filesystems). +.Pp The first form of .Nm preens the specified filesystems. @@ -56,23 +66,45 @@ It is normally started by run from .Pa /etc/rc during automatic reboot, when a FAT filesystem is detected. +When preening file systems, +.Nm +will fix common inconsistencies non-interactively. If +more serious problems are found, +.Nm +does not try to fix them, indicates that it was not +successful, and exits. .Pp -.Nm fsck_msdos -verifies a FAT filesystem (more commonly known as DOS filesystem) and tries -to recover it from inconsistencies. +The second form of +.Nm +checks the specified file systems and tries to repair all +detected inconsistencies, requesting confirmation before +making any changes. .Pp -Options are: +The options are as follows: .Bl -hang -offset indent -.It Em -y -assume yes as answer to all questions. -.It Em -n -assume no as answer to all questions. -.It Em -p -preen filesystems. +.It Fl f +This option is ignored by +.Nm fsck_msdos , +and is present only for compatibility with programs that +check other file system types for consistency, such as +.Xr fsck_ffs 8 . +.It Fl n +Causes +.Nm +to assume no as the answer to all operator +questions, except +.Dq CONTINUE? . +.It Fl p +Preen the specified filesystems. +.It Fl y +Causes +.Nm +to assume yes as the answer to all operator questions. .El .Sh SEE ALSO .Xr fsck 8 , +.Xr fsck_ffs 8 , .Xr mount_msdos 8 .Sh BUGS -.Nm fsck_msdos +.Nm Fsck_msdos is still under construction.