From: Alex Tomas Subject: Re: More ext4 acl/xattr corruption - 4th occurence now Date: Tue, 19 May 2009 19:16:20 +0400 Message-ID: <4A12CD44.1070808@sun.com> References: <20090514110659.GA5146@kulgan> <20090514132506.GD5146@kulgan> <20090514140732.GI11352@mit.edu> <20090514143014.GH5146@kulgan> <20090514161254.GJ11352@mit.edu> <20090514210244.GL5146@kulgan> <20090514212325.GG21316@mit.edu> <20090519113644.GA7927@mit.edu> <4A129FA0.9050500@sun.com> <20090519150430.GC7927@mit.edu> Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII; format=flowed Content-Transfer-Encoding: 7BIT Cc: Thierry Vignaud , Kevin Shanahan , Andreas Dilger , linux-ext4@vger.kernel.org To: Theodore Tso Return-path: Received: from gmp-eb-inf-2.sun.com ([192.18.6.24]:37520 "EHLO gmp-eb-inf-2.sun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752506AbZESPRB (ORCPT ); Tue, 19 May 2009 11:17:01 -0400 Received: from fe-emea-10.sun.com (gmp-eb-lb-1-fe3.eu.sun.com [192.18.6.10]) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n4JFGxvt018035 for ; Tue, 19 May 2009 15:17:02 GMT Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) id <0KJW00J00A6PXI00@fe-emea-10.sun.com> for linux-ext4@vger.kernel.org; Tue, 19 May 2009 16:16:59 +0100 (BST) In-reply-to: <20090519150430.GC7927@mit.edu> Sender: linux-ext4-owner@vger.kernel.org List-ID: Theodore Tso wrote: > On Tue, May 19, 2009 at 04:01:36PM +0400, Alex Tomas wrote: >> Theodore Tso wrote: >>> On the other hand, most of the time writes into the directory will >>> tend to be into pre-existing free space; but if you had two parallel >>> cp's copying a large number of files into the same directory, that >>> could certainly happen. >> isn't access to a directory protected with i_mutex ? > > Hmm, good point. Yes, that should prevent problems with directories. > So there should only be a problem when two processes are writing to > the same file at the same time. I guess reading can corrupt it as well ? thanks, Alex