From: Theodore Ts'o Date: Mon, 20 Jun 2005 01:04:12 +0000 (-0400) Subject: Make the e2fsck man page clear that the -c, -l, and -L options are X-Git-Tag: E2FSPROGS-1_38-WIP-0620~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73d1d49ac192214cc07356a28d13c84356eaebd1;p=thirdparty%2Fe2fsprogs.git Make the e2fsck man page clear that the -c, -l, and -L options are never safe to use on a mounted filesystem, and in general, running e2fsck on mounted filesystems is a bad idea. --- diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index 9b21d2fd0..ff24b42ef 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,9 @@ +2005-06-19 Theodore Ts'o + + * e2fsck.8.in: Make it clear that the -c, -l, and -L options are + never safe to use on a mounted filesystem, and in general, + running e2fsck on mounted filesystems is a bad idea. + 2005-06-16 Theodore Ts'o * message.c: Add @m (multiply-claimed) and @n (invalid) diff --git a/e2fsck/e2fsck.8.in b/e2fsck/e2fsck.8.in index c1b63b699..7012a064d 100644 --- a/e2fsck/e2fsck.8.in +++ b/e2fsck/e2fsck.8.in @@ -53,6 +53,25 @@ indicates that further checking is required. .I device is the device file where the filesystem is stored (e.g. .IR /dev/hdc1 ). +.PP +Note that in general it is not safe to run +.B e2fsck +on mounted filesystems. The only exception is if the +.B \-n +option is specified, and +.BR \-c , +.BR \-l , +or +.B -L +options are +.I not +specified. However, even if it is safe to do so, the results printed by +.B e2fsck +are not valid if the filesystem is mounted. If +.B e2fsck +asks whether or not you should check a filesystem which is mounted, +the only correct answer is ``no''. Only experts who really know what +they are doing should consider answering this question in other way. .SH OPTIONS .TP .B \-a