]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2scrub_all: add the -n option which shows what e2scrub_all would do
authorTheodore Ts'o <tytso@mit.edu>
Mon, 18 Mar 2019 02:11:25 +0000 (22:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 21 Mar 2019 15:29:40 +0000 (11:29 -0400)
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>
scrub/e2scrub_all.8.in
scrub/e2scrub_all.in

index ba3b8735e82f526fba0eb97f133455941e5066c3..e2cd5e44a579fee3870887613ee5d481c63d90b5 100644 (file)
@@ -20,12 +20,23 @@ See the
 manual page for more information about how the checking is performed.
 .SH OPTIONS
 .TP
-\fB-A\fR
-Scrub all ext[234] filesystems even if they are not mounted.
+\fB-n\fR
+Print what commands
+.B e2scrub_all
+would execute to initiate the e2scrub operations.
+(Note: these commands will not actually be executed; however, since
+.B e2scrub_all
+needs to run some additional, privileged commands to query the
+system to determine which
+.B e2scrub
+commands would be executed, it still needs to be run as root.)
 .TP
 \fB-r\fR
 Remove e2scrub snapshots but do not check anything.
 .TP
+\fB-A\fR
+Scrub all ext[234] filesystems even if they are not mounted.
+.TP
 \fB-V\fR
 Print version information and exit.
 .SH SEE ALSO
@@ -33,4 +44,4 @@ Print version information and exit.
 .SH AUTHOR
 Darrick J. Wong <darrick.wong@oracle.com>
 .SH COPYRIGHT
-Copyright ©2018 Oracle.  License is GPLv2+. <http://www.gnu.org/licenses/gpl-2.0.html>
+Copyright \[co]2018 Oracle.  License is GPLv2+. <http://www.gnu.org/licenses/gpl-2.0.html>
index d725a7f2edb801f86d3619a119d76aec3df68672..8bc868aa0927d714b340b0fce09e8669587cf9b3 100644 (file)
@@ -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