Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262025AbVCZEDs (ORCPT ); Fri, 25 Mar 2005 23:03:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262041AbVCZEDr (ORCPT ); Fri, 25 Mar 2005 23:03:47 -0500 Received: from anchor-post-33.mail.demon.net ([194.217.242.91]:36363 "EHLO anchor-post-33.mail.demon.net") by vger.kernel.org with ESMTP id S262025AbVCZEC6 (ORCPT ); Fri, 25 Mar 2005 23:02:58 -0500 Message-ID: <4244C57A.6040609@lougher.demon.co.uk> Date: Sat, 26 Mar 2005 02:14:18 +0000 From: Phillip Lougher User-Agent: Mozilla Thunderbird 0.8 (X11/20041012) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "H. Peter Anvin" CC: Phil Lougher , Kyle Moffett , linux-kernel@vger.kernel.org Subject: Re: Squashfs without ./.. References: <20050323174925.GA3272@zero> <20050324133628.196a4c41.Tommy.Reynolds@MegaCoder.com> <3e74c9409b6e383b7b398fe919418d54@mac.com> <4244DC6A.3020304@zytor.com> In-Reply-To: <4244DC6A.3020304@zytor.com> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1199 Lines: 35 H. Peter Anvin wrote: > Phil Lougher wrote: > >> >> Making readdir return '.' and '..' is trivially easy, as all the >> required information to fake '.' and '..' entries are present. >> >> The lack of '.' and '..' entries hasn't caused any problems despite >> cramfs/squashfs being used for a large number of years. I'm inclined >> to believe any application that _relies_ on seeing '.' and '..' >> returned by readdir is broken. This situation is easily fixed within >> the application rather than forcing the filesystem to unnecessarily >> fake '.' and '..' entries which are never used. >> > > > > Yeah, let's fix every broken application on the planet instead of fixing > it in one place... > > > Fixing it in Squashfs implies Squashfs is broken. It isn't. If it has to be "fixed" in the kenel, fix it in the VFS, it is after all the VFS which makes '.' and '..' handling redundant in the filesystem. > -hpa > - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/