From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12725 invoked by alias); 5 Jan 2011 15:06:11 -0000 Received: (qmail 12614 invoked by uid 9737); 5 Jan 2011 15:06:10 -0000 Date: Wed, 05 Jan 2011 15:06:00 -0000 Message-ID: <20110105150610.12612.qmail@sourceware.org> From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/lib/format_text archiver.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2011-01/txt/msg00020.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2011-01-05 15:06:10 Modified files: lib/format_text: archiver.c Log message: Add sys_debug loging for unlink This unlink intentionally silently ignores any errors. It's still worth to trace its error status in debug mode. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/archiver.c.diff?cvsroot=lvm2&r1=1.36&r2=1.37 --- LVM2/lib/format_text/archiver.c 2010/12/22 13:45:33 1.36 +++ LVM2/lib/format_text/archiver.c 2011/01/05 15:06:10 1.37 @@ -261,7 +261,9 @@ /* * Let this fail silently. */ - unlink(path); + if (unlink(path)) + log_sys_debug("unlink", path); + return 1; }