summaryrefslogtreecommitdiff
path: root/scrub/e2scrub_all.in
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2019-03-17 22:11:25 -0400
committerTheodore Ts'o <tytso@mit.edu>2019-03-21 11:29:40 -0400
commitfbd0c83877acdfb255762abaebc0ffe757e989a9 (patch)
tree1a9da1886ce3322c297ec3f8c4182752c81bc0e2 /scrub/e2scrub_all.in
parent02bfc2d3ff6691f1ab3654a5f12e8d0136c5a7fe (diff)
downloade2fsprogs-fbd0c83877acdfb255762abaebc0ffe757e989a9.tar.gz
e2scrub_all: add the -n option which shows what e2scrub_all would do
Also fix the copyright symbol so it is properly formatted when processed into postscript or pdf. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'scrub/e2scrub_all.in')
-rw-r--r--scrub/e2scrub_all.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/scrub/e2scrub_all.in b/scrub/e2scrub_all.in
index d725a7f2..8bc868aa 100644
--- a/scrub/e2scrub_all.in
+++ b/scrub/e2scrub_all.in
@@ -29,8 +29,9 @@ scrub_args=""
print_help() {
echo "Usage: $0 [OPTIONS]"
- echo " -A: Scrub all ext[234] filesystems even if not mounted."
+ echo " -n: Show what commands e2scrub_all would execute."
echo " -r: Remove e2scrub snapshots."
+ echo " -A: Scrub all ext[234] filesystems even if not mounted."
echo " -V: Print version information and exit."
}
@@ -60,10 +61,11 @@ exitcode() {
exit "${ret}"
}
-while getopts "ArV" opt; do
+while getopts "nrAV" opt; do
case "${opt}" in
- "A") scrub_all=1;;
+ "n") DBG="echo Would execute: " ;;
"r") scrub_args="${scrub_args} -r";;
+ "A") scrub_all=1;;
"V") print_version; exitcode 0;;
*) print_help; exitcode 2;;
esac