Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269399AbUICIkk (ORCPT ); Fri, 3 Sep 2004 04:40:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269392AbUICIkd (ORCPT ); Fri, 3 Sep 2004 04:40:33 -0400 Received: from hermine.aitel.hist.no ([158.38.50.15]:35847 "HELO hermine.aitel.hist.no") by vger.kernel.org with SMTP id S269597AbUICIj0 (ORCPT ); Fri, 3 Sep 2004 04:39:26 -0400 Message-ID: <41382EC0.8080309@hist.no> Date: Fri, 03 Sep 2004 10:43:44 +0200 From: Helge Hafting User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040830) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Frank van Maarseveen CC: viro@parcelfarce.linux.theplanet.co.uk, Dave Kleikamp , Alan Cox , Linus Torvalds , Jamie Lokier , Horst von Brand , Adrian Bunk , Hans Reiser , Christoph Hellwig , fsdevel , Linux Kernel Mailing List , Alexander Lyamin aka FLX , ReiserFS List Subject: Re: The argument for fs assistance in handling archives (was: silent semantic changes with reiser4) References: <20040902203854.GA4801@janus> <1094160994.31499.19.camel@shaggy.austin.ibm.com> <20040902214806.GA5272@janus> <20040902220027.GD23987@parcelfarce.linux.theplanet.co.uk> <20040902220242.GA5414@janus> <20040902220640.GE23987@parcelfarce.linux.theplanet.co.uk> <20040902221133.GB5414@janus> <20040902221722.GF23987@parcelfarce.linux.theplanet.co.uk> <20040902222650.GA5523@janus> <20040902223324.GG23987@parcelfarce.linux.theplanet.co.uk> <20040902225634.GA5756@janus> In-Reply-To: <20040902225634.GA5756@janus> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1310 Lines: 36 Frank van Maarseveen wrote: >On Thu, Sep 02, 2004 at 11:33:24PM +0100, viro@parcelfarce.linux.theplanet.co.uk wrote: > > >>RTFS and you'll see. Individual fs generally knows how to check if it >>would be immediately unhappy with given image (not all types do, BTW). >>Exact form of checks depends on fs type; for crying out loud, there's >>not even a promise that they are mutually exclusive! >> >> > >so? > >A user can stick an USB memory card with _any_ malformed fs data and >make troubles via the automounter or user mounts. Yes, mount might do >some more checks but it sure won't do an fsck. > >The user gets what he deserves when sticking crap in an USB port. > >And that doesn't mean that the kernel should accept any fs image >when a user tries to cd into the file. > > You don't need kernel support for cd'ing into fs images. You need a shell (or GUI app) that: 1. notices that user tries to CD into a file, not a directory 2. Attempts fs type detection and do a loop mount. 3. Give error message if it wasn't a supported fs image. Helge Hafting - 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/