Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 19 Feb 2002 06:04:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 19 Feb 2002 06:03:54 -0500 Received: from insgate.stack.nl ([131.155.140.2]:18447 "HELO skynet.stack.nl") by vger.kernel.org with SMTP id ; Tue, 19 Feb 2002 06:03:42 -0500 Date: Tue, 19 Feb 2002 12:03:39 +0100 (CET) From: Jos Hulzink To: Denis Vlasenko Cc: OGAWA Hirofumi , Linux Kernel Development Subject: Re: VFS issues (was: Re: 2.5.5-pre1: mounting NTFS partitions -t VFAT) In-Reply-To: <200202191025.g1JAPMm11153@Port.imtp.ilyichevsk.odessa.ua> Message-ID: <20020219115519.C97916-100000@snail.stack.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Feb 2002, Denis Vlasenko wrote: > > The type of a partition is written in the partition table, or something > > similar. Maybe we should check that ? > > Partition type isn't available to fs driver. Think about mounting > floppy/loopback/etc. True. I never use floppys anymore :) > Seems you guys are discussing non-problem here. What really needs to be done > is to add more sanity checks to FAT superblock detection/validation code: > * signatures like 55AA at end of 1st sector > * sane values for various superblock data (if you see "FAT copies: 146" > it is more than enough to tell it's not a FAT, right?) > > If anyone feels so inclined, please go to fs/fat/inode.c:fat_read_super() > and hack on it. Send your patches to Alexander Viro > and tighten your seatbelt ;-) Will hack tonight and see if my seatbelt is strong enough :) It has never been used before, so maybe... Jos - 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/