mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
Missing dev_close_all()s
This commit is contained in:
parent
cd24222379
commit
3b8fe25248
@ -64,6 +64,7 @@ static int _become_daemon(struct cmd_context *cmd)
|
|||||||
strncpy(*cmd->argv, "(pvmove)", strlen(*cmd->argv));
|
strncpy(*cmd->argv, "(pvmove)", strlen(*cmd->argv));
|
||||||
|
|
||||||
reset_locking();
|
reset_locking();
|
||||||
|
dev_close_all();
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -124,6 +125,8 @@ static struct volume_group *_get_vg(struct cmd_context *cmd, const char *vgname)
|
|||||||
int consistent = 1;
|
int consistent = 1;
|
||||||
struct volume_group *vg;
|
struct volume_group *vg;
|
||||||
|
|
||||||
|
dev_close_all();
|
||||||
|
|
||||||
if (!lock_vol(cmd, vgname, LCK_VG_WRITE)) {
|
if (!lock_vol(cmd, vgname, LCK_VG_WRITE)) {
|
||||||
log_error("Can't get lock for %s", vgname);
|
log_error("Can't get lock for %s", vgname);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user