aboutsummaryrefslogtreecommitdiff
path: root/misc/e2undo.8.in
diff options
context:
space:
mode:
Diffstat (limited to 'misc/e2undo.8.in')
-rw-r--r--misc/e2undo.8.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/misc/e2undo.8.in b/misc/e2undo.8.in
index da8b9189..d8265b16 100644
--- a/misc/e2undo.8.in
+++ b/misc/e2undo.8.in
@@ -17,8 +17,16 @@ e2undo \- Replay an undo log for an ext2/ext3/ext4 filesystem
.B \-n
]
[
+.B \-o
+.I offset
+]
+[
.B \-v
]
+[
+.B \-z
+.I undo_file
+]
.I undo_log device
.SH DESCRIPTION
.B e2undo
@@ -53,6 +61,16 @@ Specify the filesystem's
.TP
.B \-v
Report which block we're currently replaying.
+.TP
+.BI \-z " undo_file"
+Before overwriting a file system block, write the old contents of the block to
+an undo file. This undo file can be used with e2undo(8) to restore the old
+contents of the file system should something go wrong. If the empty string is
+passed as the undo_file argument, the undo file will be written to a file named
+e2undo-\fIdevice\fR.e2undo in the directory specified via the
+\fIE2FSPROGS_UNDO_DIR\fR environment variable.
+
+WARNING: The undo file cannot be used to recover from a power or system crash.
.SH AUTHOR
.B e2undo
was written by Aneesh Kumar K.V. (aneesh.kumar@linux.vnet.ibm.com)