2002-08-17 Theodore Ts'o <tytso@mit.edu>
+ * fsck.c (main): If no filesystems are specified on the command
+ line, default to -As. (Addresses Debian Bug #153102)
+
+ * badblocks.8.in: Clarify why it's bad to do a non-destructive
+ test on a r/o mounted filesystem. (Addresses Debian Bug
+ #131350)
+
* chattr.1.in: Document the compression attribute flags E, X, and
Z, and explain that chattr can't set or set these flags.
(Addresses Debian Bug #151990)
.B \-f
Normally, badblocks will refuse to do a read/write or a non-destructive
test on a device which is mounted, since either can cause the system to
-potentially crash; even a non-destructive test can damage a mounted
-filesystem. This can be overriden using the
+potentially crash and/or damage the filesystem even if it is mounted
+read-only. This can be overriden using the
.B \-f
flag, but should almost never be used --- if you think you're smarter
than the
.B \-t
.I fstype
]
-.I filesys [ ... ]
+.I [filesys ... ]
[\-\-] [
.B fs-specific-options
]
.IR / ", " /usr ", " /home ),
or an ext2 label or UUID specifier (e.g.
UUID=8868abf6-88c5-4a83-98b8-bfc24057f7bd or LABEL=root).
-The
+Normally, the
.B fsck
program will try to run filesystems on different physical disk drives
in parallel to reduce total amount time to check all of the filesystems.
.PP
+If no filesystems are specified on the command line, and the
+.B \-A
+option is not specified,
+.B fsck
+will default to checking filesystems in
+.B /etc/fstab
+serial. This is equivalent to the
+.B \-As
+options.
+.PP
The exit code returned by
.B fsck
is the sum of the following conditions:
.br
\ 128\ \-\ Shared library error
.br
-The exit code returned when all file systems are checked using the
-.B \-A
-option is the bit-wise OR of the exit codes for each
+The exit code returned when multiple file systems are checked
+is the bit-wise OR of the exit codes for each
file system that is checked.
.PP
In actuality,
static void usage(NOARGS)
{
fprintf(stderr,
- _("Usage: fsck [-ACNPRTV] [-t fstype] [fs-options] filesys\n"));
+ _("Usage: fsck [-ACNPRTV] [-t fstype] [fs-options] [filesys ...]\n"));
exit(EXIT_USAGE);
}
return check_all();
if (num_devices == 0) {
- fprintf(stderr, _("\nNo devices specified to be checked!\n"));
- exit(EXIT_ERROR);
+ serialize++;
+ interactive++;
+ return check_all();
}
for (i = 0 ; i < num_devices; i++) {
if (cancel_requested) {