From owner-freebsd-geom@FreeBSD.ORG Fri Nov 9 13:06:44 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8AE016A41A; Fri, 9 Nov 2007 13:06:44 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from ns.trinitel.com (186.161.36.72.static.reverse.ltdomains.com [72.36.161.186]) by mx1.freebsd.org (Postfix) with ESMTP id 9893C13C4C2; Fri, 9 Nov 2007 13:06:44 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from proton.storspeed.com (209-163-168-124.static.twtelecom.net [209.163.168.124]) (authenticated bits=0) by ns.trinitel.com (8.14.1/8.14.1) with ESMTP id lA9Ccibp084341; Fri, 9 Nov 2007 06:38:44 -0600 (CST) (envelope-from anderson@freebsd.org) Message-Id: <6EBC07A8-054F-476A-8DF5-B54124CEB339@freebsd.org> From: Eric Anderson To: Andriy Gapon In-Reply-To: <47343AC5.8090103@icyb.net.ua> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v912) Date: Fri, 9 Nov 2007 06:38:44 -0600 References: <4732E3C6.5060205@icyb.net.ua> <47343AC5.8090103@icyb.net.ua> X-Mailer: Apple Mail (2.912) X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on ns.trinitel.com Cc: Pawel Jakub Dawidek , freebsd-geom@freebsd.org Subject: Re: gjournal on 6.2: Cannot delete /var/.deleted/#613759 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 13:06:45 -0000 On Nov 9, 2007, at 4:47 AM, Andriy Gapon wrote: > on 08/11/2007 12:24 Andriy Gapon said the following: >> I use gjournal6.patch on FreeBSD 6.2 amd64 system. >> >> Everything was perfect until today when I got some minor problems >> from >> gjournal. While building a port, compilation aborted with an error >> that >> said something like the following (I didn't save the message, >> unfortunately): "can not create temporary file: interrupted system >> call". >> I had to restart compilation several times because of such errors and >> eventually it finished successfully. Along the compilation errors the >> following message appeared in system log: >> UFS_GJGC: Cannot delete /var/.deleted/#613759 (error=2) >> UFS_GJGC: Cannot delete /var/.deleted/#1202391 (error=2) >> UFS_GJGC: Cannot delete /var/.deleted/#1202391 (error=2) >> UFS_GJGC: Cannot delete /var/.deleted/#1202390 (error=2) >> UFS_GJGC: Cannot delete /var/.deleted/#1202390 (error=2) >> > > Well, given that errno 2 is ENOENT, it is interesting what happens > here. > Entry appearing twice on the list of GC items, name clash, something > else ? Is this something harmless or a result of a more serious > issue ? > > My guess is that it could be a result of fast creation and deletion of > some tmp files, so that inode number is reused before an entry is > actually deleted from .deleted and thus there is a name clash. > Should be harmless if this is true. Or not ? When inodes are reused, their gen count should go up (or NFS handles would get broken quickly). The file is probably being removed in- between the readdir and the remove. Eric