diff options
author | David Teigland <teigland@redhat.com> | 2018-06-01 10:04:54 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2018-06-01 13:15:22 -0500 |
commit | b6f0f20da25ac4ab6b5294129fd2f383bf818062 (patch) | |
tree | 23ff265c1ac7d7b58e64b8e61ccf0d1853628a57 /tools/vgcreate.c | |
parent | c4497ee9e849d2d6c74412de21c6c3823d4de5f1 (diff) | |
download | lvm2-b6f0f20da25ac4ab6b5294129fd2f383bf818062.tar.gz |
lvmlockd: primarily use vg_is_shared
to check if a vg uses an lvmlockd lock_type,
instead of the equivalent but longer is_lockd_type.
Diffstat (limited to 'tools/vgcreate.c')
-rw-r--r-- | tools/vgcreate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgcreate.c b/tools/vgcreate.c index e9f9073a9..52c4825b5 100644 --- a/tools/vgcreate.c +++ b/tools/vgcreate.c @@ -207,7 +207,7 @@ int vgcreate(struct cmd_context *cmd, int argc, char **argv) * used after this command completes (otherwise, the VG can only be * read without locks until the lockspace is done starting.) */ - if (is_lockd_type(vg->lock_type)) { + if (vg_is_shared(vg)) { const char *start_opt = arg_str_value(cmd, lockopt_ARG, NULL); if (!lockd_start_vg(cmd, vg, 1)) { |