Message ID | 20230523090050.373545-15-chandan.babu@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Metadump v2 | expand |
On Tue, May 23, 2023 at 02:30:40PM +0530, Chandan Babu R wrote: > The new option allows the user to explicitly specify which version of > metadump to use. However, we will default to using the v1 format. Needs SOB tag. --D > --- > db/xfs_metadump.sh | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/db/xfs_metadump.sh b/db/xfs_metadump.sh > index 9852a5bc2..9e8f86e53 100755 > --- a/db/xfs_metadump.sh > +++ b/db/xfs_metadump.sh > @@ -8,7 +8,7 @@ OPTS=" " > DBOPTS=" " > USAGE="Usage: xfs_metadump [-aefFogwV] [-m max_extents] [-l logdev] source target" > > -while getopts "aefgl:m:owFV" c > +while getopts "aefgl:m:owFv:V" c > do > case $c in > a) OPTS=$OPTS"-a ";; > @@ -20,6 +20,7 @@ do > f) DBOPTS=$DBOPTS" -f";; > l) DBOPTS=$DBOPTS" -l "$OPTARG" ";; > F) DBOPTS=$DBOPTS" -F";; > + v) OPTS=$OPTS"-v "$OPTARG" ";; > V) xfs_db -p xfs_metadump -V > status=$? > exit $status > -- > 2.39.1 >
On Tue, May 23, 2023 at 10:39:30 AM -0700, Darrick J. Wong wrote: > On Tue, May 23, 2023 at 02:30:40PM +0530, Chandan Babu R wrote: >> The new option allows the user to explicitly specify which version of >> metadump to use. However, we will default to using the v1 format. > > Needs SOB tag. I will add my SOB tag and resend the patchset.
diff --git a/db/xfs_metadump.sh b/db/xfs_metadump.sh index 9852a5bc2..9e8f86e53 100755 --- a/db/xfs_metadump.sh +++ b/db/xfs_metadump.sh @@ -8,7 +8,7 @@ OPTS=" " DBOPTS=" " USAGE="Usage: xfs_metadump [-aefFogwV] [-m max_extents] [-l logdev] source target" -while getopts "aefgl:m:owFV" c +while getopts "aefgl:m:owFv:V" c do case $c in a) OPTS=$OPTS"-a ";; @@ -20,6 +20,7 @@ do f) DBOPTS=$DBOPTS" -f";; l) DBOPTS=$DBOPTS" -l "$OPTARG" ";; F) DBOPTS=$DBOPTS" -F";; + v) OPTS=$OPTS"-v "$OPTARG" ";; V) xfs_db -p xfs_metadump -V status=$? exit $status