diff options
author | Carlos Maiolino <cmaiolino@redhat.com> | 2013-10-11 21:38:53 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-10-11 21:49:16 -0400 |
commit | 6c327e9ca47fa4e51efe3a6601ad661b8c1a3964 (patch) | |
tree | 799614a004b1f093a97f4be338a0bbb017b7ef4a /misc/e2image.8.in | |
parent | 57bde59a067c21ed924de4194344948f3c3ecb9a (diff) | |
download | android_external_e2fsprogs-6c327e9ca47fa4e51efe3a6601ad661b8c1a3964.tar.gz android_external_e2fsprogs-6c327e9ca47fa4e51efe3a6601ad661b8c1a3964.tar.bz2 android_external_e2fsprogs-6c327e9ca47fa4e51efe3a6601ad661b8c1a3964.zip |
e2image: complain if running e2image -r or -Q on a mounted filesystem
Several users have used e2image on a mounted RW filesystem, resulting in
inconsistent, useless e2images for debugging purposes.
This commit will forbid this and print an error message, although the
user can override this using a new force option.
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'misc/e2image.8.in')
-rw-r--r-- | misc/e2image.8.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/e2image.8.in b/misc/e2image.8.in index 84b97296..78f06828 100644 --- a/misc/e2image.8.in +++ b/misc/e2image.8.in @@ -30,6 +30,16 @@ recovering catastrophically corrupted filesystems. In the future, e2fsck will be enhanced to be able to use the image file to help recover a badly damaged filesystem. .PP +When saving an e2image for debugging purposes, using either the +.B \-r +or +.B \-Q +options, the filesystem must be unmounted or be mounted read/only, in order +for the image file to be in a consistent state. This requirement can be +overriden using the +.B -f +option, but the resulting image file is very likely not going to be useful. +.PP If .I image-file is \-, then the output of |