xfs_repair cannot proceed with a dirty log, and exits with
a status code of 2 in that case; fix the manpage to
reflect this.
(This has been the case for years, but was never documented).
Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---
diff --git a/man/man8/xfs_repair.8 b/man/man8/xfs_repair.8
index 1b4d9e3..57c970a 100644
--- a/man/man8/xfs_repair.8
+++ b/man/man8/xfs_repair.8
@@ -509,7 +509,9 @@ If the directory were small, the message would read
"junking entry ...".
will return a status of 1 if filesystem corruption was detected and
0 if no filesystem corruption was detected.
.B xfs_repair
-run without the \-n option will always return a status code of 0.
+run without the \-n option will return a status code of 2 if the log is
+dirty and needs to be replayed, otherwise it will always return a status
+code of 0.
.SH BUGS
The filesystem to be checked and repaired must have been
unmounted cleanly using normal system administration procedures
|