]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/populate: fix _xfs_metadump usage in _scratch_populate_cached v2022.10.09
authorDarrick J. Wong <djwong@kernel.org>
Wed, 5 Oct 2022 22:31:06 +0000 (15:31 -0700)
committerZorro Lang <zlang@kernel.org>
Sun, 9 Oct 2022 02:20:55 +0000 (10:20 +0800)
_xfs_metadump requires that the caller pass in "none" for the log device
if it doesn't have a log device, so fix this call site.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/populate

index 4eee7e8c66d6a161bafa3832881b35979fd1366c..cfdaf766f02fe5e975e8055b1cdf015984abb66b 100644 (file)
@@ -891,7 +891,7 @@ _scratch_populate_cached() {
                _scratch_xfs_populate $@
                _scratch_xfs_populate_check
 
-               local logdev=
+               local logdev=none
                [ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_LOGDEV" ] && \
                        logdev=$SCRATCH_LOGDEV