1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +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:
Jonathan Earl Brassow 2007-08-01 20:29:07 +00:00
parent b58a94fed4
commit 5efd97f108
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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;