diff options
author | David Teigland <teigland@redhat.com> | 2020-04-22 14:08:54 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2020-04-22 14:08:54 -0500 |
commit | 4047a321285fc0d1a70fd519fb53fc778fe6093b (patch) | |
tree | 73af78cabab375458b1d4c83a30c12914d511053 /tools/vgimportclone.c | |
parent | a509776588a5c0c0bfc2394e4d1ed717531b0257 (diff) | |
download | lvm2-4047a321285fc0d1a70fd519fb53fc778fe6093b.tar.gz |
use refresh_filters only where needed
Filters are changed and need refresh in only one
place (vgimportclone), so avoid doing the refresh
for every other command that doesn't need it.
Diffstat (limited to 'tools/vgimportclone.c')
-rw-r--r-- | tools/vgimportclone.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/vgimportclone.c b/tools/vgimportclone.c index be0186101..ee1c28fae 100644 --- a/tools/vgimportclone.c +++ b/tools/vgimportclone.c @@ -315,6 +315,8 @@ retry_name: goto_out; log_debug("Using new VG name %s.", vp.new_vgname); + lvmcache_destroy(cmd, 1, 0); + /* * Create a device filter so that we are only working with the devices * in arg_import. With the original devs hidden (that arg_import were @@ -325,7 +327,7 @@ retry_name: init_internal_filtering(1); dm_list_iterate_items(vd, &vp.arg_import) internal_filter_allow(cmd->mem, vd->dev); - lvmcache_destroy(cmd, 1, 0); + refresh_filters(cmd); log_debug("Changing VG %s to %s.", vp.old_vgname, vp.new_vgname); |