From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264546AbUAZRkN (ORCPT ); Mon, 26 Jan 2004 12:40:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264586AbUAZRkN (ORCPT ); Mon, 26 Jan 2004 12:40:13 -0500 Received: from 213-84-216-119.adsl.xs4all.nl ([213.84.216.119]:45698 "EHLO morannon.frodo.local") by vger.kernel.org with ESMTP id S264546AbUAZRkE (ORCPT ); Mon, 26 Jan 2004 12:40:04 -0500 From: Frodo Looijaard Date: Mon, 26 Jan 2004 18:39:49 +0100 To: hirofumi@mail.parknet.co.jp, linux-kernel@vger.kernel.org, linux-7110-psion@lists.sourceforge.net Subject: PATCH to access old-style FAT fs Message-ID: <20040126173949.GA788@frodo.local> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ZGiS0Q5IWpPtfppv" Content-Disposition: inline User-Agent: Mutt/1.5.5.1+cvs20040105i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi folks, I have created and attached a new version of my old-style FAT filesystem patch, this time for the 2.6.0 kernel. It can also be found on http://debian.frodo.looijaard.name/. Some old implementation of the FAT standard mark the end of the directory file index by inserting a filename beginning with a byte 00. All entries after it should be ignored, even though they are not marked as deleted. At least some EPOC releases (an OS used on Psion PDAs, for example) still use this policy. The included patch adds the `oldfat' mount option for FAT-based filesystems. Without it, doing an 'ls' on old-style FATs will show a lot of garbage, both old files that have been deleted, and bogus entries that have never been filled. If you do not use the `oldfat' mount option, FAT filesystems should work exactly as before. I have been very careful not to change the logic of the FAT driver, in order not to break anything. In fact, the patch could probably be optimized a bit, but I wanted to keep it as risk-free as possible. It should be safe to mount a normal FAT filesystem with the `oldfat' mount option. I have been doing that on and off with some local Win98 filesystems without any trouble. Actually, the only reason I have introduced the mount option is to keep the new logic strictly seperated from the old driver. All feedback would be very welcome. This patch is released under the GPL. Feel free to include it in stock kernels. Debian users can install the .deb on http://debian.frodo.looijaard.name and have the patch applied automatically when compiling 2.6.x kernels. Thanks, Frodo -- Frodo Looijaard PGP key and more: http://huizen.dds.nl/~frodol Defenestration n. (formal or joc.): The act of removing Windows from your computer in disgust, usually followed by the installation of Linux or some other Unix-like operating system. --ZGiS0Q5IWpPtfppv Content-Type: application/octet-stream Content-Disposition: attachment; filename="linux-fat-2.6.0.patch.gz" Content-Transfer-Encoding: base64 H4sICIdPFUAAA2xpbnV4LWZhdC0yLjYuMC5wYXRjaADNV1tv2zYUfnZ+xWkGpL5Itny/FEnT Lm5RIGmGJt3LMAiyRMVaZMogqThB6/32nUOKtmM7Xdr1YXqIIvLw47l852LXdeGWCc5SV2a5 CJnbqvfqXj1Lo0YsG3GgGlEi6mGp5Xkd12u6rS60mqO2N+q26559oOY1Pe+gVqvtA3saqDVq Dkbt/g7Q6Sm4zWHH6UCNXj04PT2AUsIVhNPUgcSBvxxIA6n83AHBJByD9wol0iyOfQWJP8+k AyH+NTs1fRZtQjVw5eLq7PLKv3pblpOKe5LNVZJxWTfbVlijM67EQwGO8ItpkrJyswJftIZo CWnY8lrOQGs4D4RkvmBhJqIRyqM+/MaXaaZWepSSGMqFIkdHUI6Ye8KDGfvD+xOOj2F8eea/ O3/zvlIBEi490qK5AlgvV7RYmHGV8JyRD7TAFuzZ+Hx8PS6gSWbjhLakO9SW9LqFJSV6bjKV FTaRIRq8tNQXPtcKLbzPir1mPLbjeYZsWdLutcmSdr9tWbPLiVcFlwRTP4se0KjCJU8fIJcs gsWUcQuXSFAiZ1Bt4K1anfDWN0lSrhQ6D7XOHW/lfUT7dcrCW4gzAeR7iJF55Acwd2o08k8i 7/AWYuR3cOt7qKVJ8ImFYx49n12PDpGJHUOwTn+TYFrqN+LXuaXX8v9tRm84IDP6zcFmTRLZ gjAlxjlUMMnjmAl/yoIIqpwt/Mn0aYZhSXRPEv876xAyWmruhrk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