]> sourceware.org Git - lvm2.git/commitdiff
Log error from unlink failure
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 1 Dec 2010 12:41:49 +0000 (12:41 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 1 Dec 2010 12:41:49 +0000 (12:41 +0000)
WHATS_NEW
daemons/clvmd/clvmd.c

index eed8515ed290e4dcd21003b77bfecec05a47b90c..5528b0569509f64ce8f2f77c7a0e79fa72766018 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.78 - 
 ====================================
+  Add logging for unlink() error in clvmd remove_lockfile().
   Add logging for pipe write() and close() error in clvmd child_init_signal().
   Add test for existance of orphan vginfo in _lvmcache_update_vgname().
   Do a full rescan if some device is missing in read_pvs_in_vg().
index b4215fbc19d5e4e154245fac621b2863acbb360a..40d7feb844daa2787e024d04d0c63f7c6cf4fa43 100644 (file)
@@ -289,7 +289,8 @@ static const char *decode_cmd(unsigned char cmdl)
 
 static void remove_lockfile(void)
 {
-       unlink(CLVMD_PIDFILE);
+       if (unlink(CLVMD_PIDFILE))
+               log_sys_error("unlink", CLVMD_PIDFILE);
 }
 
 /*
This page took 0.048558 seconds and 5 git commands to generate.