xfs
[Top] [All Lists]

[PATCH] xfs_metadump: include F in getopts string

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfs_metadump: include F in getopts string
From: Eric Sandeen <sandeen@xxxxxxxxxx>
Date: Tue, 25 Feb 2014 10:23:13 -0600
Cc: Boris Ranto <branto@xxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
I added an F case, but didn't add it to the bash
getopts string last go-round.

/usr/sbin/xfs_metadump: illegal option -- F

I sure thought I tested this, I'm not sure how it got lost.

Reported-by: Boris Ranto <branto@xxxxxxxxxx>
Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---

diff --git a/db/xfs_metadump.sh b/db/xfs_metadump.sh
index 7ce7a6d..71f579d 100755
--- a/db/xfs_metadump.sh
+++ b/db/xfs_metadump.sh
@@ -7,7 +7,7 @@ OPTS=" "
 DBOPTS=" "
 USAGE="Usage: xfs_metadump [-efFogwV] [-m max_extents] [-l logdev] source 
target"
 
-while getopts "efgl:m:owV" c
+while getopts "efgl:m:owFV" c
 do
        case $c in
        e)      OPTS=$OPTS"-e ";;

<Prev in Thread] Current Thread [Next in Thread>