From mint-bounce@lists.fishpool.fi Sat May 15 20:35:43 2010 Message-ID: <4BEF3D64.9090705@atari-source.org> Date: Sat, 15 May 2010 20:33:40 -0400 From: Mark Duckworth User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: mint@lists.fishpool.fi Subject: Re: [MiNT] Re-naming accs References: <442898.242359178-sendEmail@descaro> <1273872529.8894.140.camel@jetpack.demon.co.uk> <1273910399.8894.156.camel@jetpack.demon.co.uk> In-Reply-To: <1273910399.8894.156.camel@jetpack.demon.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: mduckworth@atari-source.org Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: On 5/15/10 3:59 AM, Alan Hourihane wrote: > On Sat, 2010-05-15 at 08:44 +0200, Helmut Karlowski wrote: > >> Am 15.05.2010, 08:19 Uhr, schrieb Helmut Karlowski >> : >> >> >>> Am 14.05.2010, 23:28 Uhr, schrieb Alan Hourihane: >>> >>> >>>>> On FAT I have this too. So maybe it's a bug. Remove works. >>>>> >>>>> Ext2 works. >>>>> >>>> It's a kernel bug that's already been fixed on the trunk. >>>> >>> I can't find it in the diffs. Which particular patch is it? >>> >> trunk-kernel has the bug too. >> >> #cat t >> set -x >> ./sleep.ttp 333& >> mv sleep.ttp xy >> >> t.out: >> >> + set -x >> + ./sleep.ttp 333 >> [1] 32 >> + /bin/mv -iv sleep.ttp xy >> `sleep.ttp' -> `xy' >> /bin/mv: cannot move `sleep.ttp' to `xy': Permission denied >> > And looking at the code it's purposely done that this should fail with > permission denied. I'm not sure why though. It's an easy fix. Look at > fatfs.c and the function fatfs_rename() and the first #if 1 statement > should be made into #if 0. Try that and see if it helps. > > Alan. > I recall reading something long long ago suggesting that if you rename or delete an executable on a fatfs partition while it is open, corruption results. I could be way off base but that's what I am remembering. Thanks, Mark