]> sourceware.org Git - lvm2.git/commitdiff
Add sys_debug loging for unlink
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 5 Jan 2011 15:06:10 +0000 (15:06 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 5 Jan 2011 15:06:10 +0000 (15:06 +0000)
This unlink intentionally silently ignores any errors.
It's still worth to trace its error status in debug mode.

lib/format_text/archiver.c

index 3d291c8f847f2e6ea24d8e46a46793a9eef77424..e0212a216ad80aacc9d168b940a0bdb7e2eb9b97 100644 (file)
@@ -261,7 +261,9 @@ int backup_remove(struct cmd_context *cmd, const char *vg_name)
        /*
         * Let this fail silently.
         */
-       unlink(path);
+       if (unlink(path))
+               log_sys_debug("unlink", path);
+
        return 1;
 }
 
This page took 0.037176 seconds and 5 git commands to generate.