summaryrefslogtreecommitdiff
path: root/tools/lvmcmdline.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2022-05-27 12:38:43 -0500
committerDavid Teigland <teigland@redhat.com>2022-05-27 12:38:43 -0500
commit9dfa6f38793f6b5f7de2a4148ab2f7790e3c39da (patch)
treef14b6c6db6a28d9a9f04b71dc4a75b3e31d54d48 /tools/lvmcmdline.c
parenta30013ff4f5981afd7778597172e0e834ca99cd4 (diff)
downloadlvm2-9dfa6f38793f6b5f7de2a4148ab2f7790e3c39da.tar.gz
devices file: move clean up after command is run
devices_file_exit wasn't being called between lvm_shell commands, so the file lock wouldn't be released.
Diffstat (limited to 'tools/lvmcmdline.c')
-rw-r--r--tools/lvmcmdline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index 1e3547ed7..b052d698f 100644
--- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c
@@ -3305,6 +3305,7 @@ int lvm_run_command(struct cmd_context *cmd, int argc, char **argv)
hints_exit(cmd);
lvmcache_destroy(cmd, 1, 1);
label_scan_destroy(cmd);
+ devices_file_exit(cmd);
if ((config_string_cft = remove_config_tree_by_source(cmd, CONFIG_STRING)))
dm_config_destroy(config_string_cft);