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

Log unlink() error

This commit is contained in:
Zdenek Kabelac 2011-09-06 18:11:21 +00:00
parent dd44cccefe
commit 7b83071708
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.89 -
==================================
Log unlink() error in cmirrord remove_lockfile().
Remove incorrect requirement for -j or -m from lvchange error message.
Fix unsafe table load when splitting off smaller mirror from a larger one.
Use size_t return type for text_vg_export_raw() and export_vg_to_buffer().

View File

@ -121,7 +121,8 @@ static void process_signals(void)
static void remove_lockfile(void)
{
unlink(CMIRRORD_PIDFILE);
if (unlink(CMIRRORD_PIDFILE))
LOG_ERROR("Unable to remove \"" CMIRRORD_PIDFILE "\" %s", strerror(errno));
}
/*