1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Missing dev_close_all()s

This commit is contained in:
Alasdair Kergon 2004-03-31 18:41:39 +00:00
parent cd24222379
commit 3b8fe25248

View File

@ -64,6 +64,7 @@ static int _become_daemon(struct cmd_context *cmd)
strncpy(*cmd->argv, "(pvmove)", strlen(*cmd->argv));
reset_locking();
dev_close_all();
return 1;
}
@ -124,6 +125,8 @@ static struct volume_group *_get_vg(struct cmd_context *cmd, const char *vgname)
int consistent = 1;
struct volume_group *vg;
dev_close_all();
if (!lock_vol(cmd, vgname, LCK_VG_WRITE)) {
log_error("Can't get lock for %s", vgname);
return NULL;