summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2020-10-28 16:50:47 -0500
committerDavid Teigland <teigland@redhat.com>2020-10-28 16:50:47 -0500
commit63169594385ed4b02d93c2e8f422bbeb0b8225af (patch)
treeb8bb342c2e7ca2a71a7af73f1dff60c59d3616dc
parent125da10d47f4c1f72d3df99f2451c1eb031b9f3a (diff)
downloadlvm2-63169594385ed4b02d93c2e8f422bbeb0b8225af.tar.gz
pvck: fix previous commit
line to setup bcache was misplaced in commit 5a94126e7a28
-rw-r--r--tools/pvck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/pvck.c b/tools/pvck.c
index 06fd01733..c36e18216 100644
--- a/tools/pvck.c
+++ b/tools/pvck.c
@@ -3064,11 +3064,11 @@ int pvck(struct cmd_context *cmd, int argc, char **argv)
return ECMD_FAILED;
}
+ label_scan_setup_bcache();
+
if (dev) {
char buf[4096];
- label_scan_setup_bcache();
-
/*
* This buf is not used, but bcache data is used for subsequent
* reads in the filters and by _read_bytes for other disk structs.