mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-28 05:57:49 +03:00
lib/activate/activate.c:_lv_activate tries to monitor a device
regardless of whether it was successfully activated. Now fixed to only monitor if it was successfully activated.
This commit is contained in:
parent
38b6963c8b
commit
9dbf53fdb9
@ -1,5 +1,6 @@
|
||||
Version 2.02.28 -
|
||||
================================
|
||||
Don't try to monitor devices which we failed to create.
|
||||
Don't leak a file descriptor in fcntl_lock_file(), when fcntl fails.
|
||||
Remove create_dir function; use now-equivalent dm_create_dir instead
|
||||
Detect stream write failure reliably; new fn: lvm_fclose; use dm_fclose
|
||||
|
@ -963,7 +963,7 @@ static int _lv_activate(struct cmd_context *cmd, const char *lvid_s,
|
||||
memlock_dec();
|
||||
fs_unlock();
|
||||
|
||||
if (!monitor_dev_for_events(cmd, lv, 1))
|
||||
if (r && !monitor_dev_for_events(cmd, lv, 1))
|
||||
stack;
|
||||
|
||||
return r;
|
||||
|
Loading…
x
Reference in New Issue
Block a user