Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 14 Mar 2002 00:10:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 14 Mar 2002 00:10:34 -0500 Received: from mail.parknet.co.jp ([210.134.213.6]:10511 "EHLO mail.parknet.co.jp") by vger.kernel.org with ESMTP id ; Thu, 14 Mar 2002 00:10:24 -0500 To: Brian Gerst Cc: Linus Torvalds , Linux-Kernel Subject: Re: [PATCH] struct super_block cleanup - msdos/vfat In-Reply-To: <3C8FE8E3.2040204@didntduck.org> <87k7sfoi8c.fsf@devron.myhome.or.jp> From: OGAWA Hirofumi Date: Thu, 14 Mar 2002 14:10:12 +0900 In-Reply-To: <87k7sfoi8c.fsf@devron.myhome.or.jp> Message-ID: <87bsdrohu3.fsf@devron.myhome.or.jp> Lines: 36 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 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 OGAWA Hirofumi writes: > Hi, > > Brian Gerst writes: > > > diff -urN linux-2.5.7-pre1/fs/msdos/namei.c linux/fs/msdos/namei.c > > --- linux-2.5.7-pre1/fs/msdos/namei.c Thu Mar 7 21:18:32 2002 > > +++ linux/fs/msdos/namei.c Wed Mar 13 08:20:12 2002 > > @@ -603,17 +603,14 @@ > > > > int msdos_fill_super(struct super_block *sb,void *data, int silent) > > { > > - struct super_block *res; > > + int res; > > > > - MSDOS_SB(sb)->options.isvfat = 0; > > - res = fat_read_super(sb, data, silent, &msdos_dir_inode_operations); > > - if (IS_ERR(res)) > > - return PTR_ERR(res); > > - if (res == NULL) { > > + res = fat_fill_super(sb, data, silent, &msdos_dir_inode_operations, 0); > > + if (res) { > > if (!silent) > > printk(KERN_INFO "VFS: Can't find a valid" > > " MSDOS filesystem on dev %s.\n", sb->s_id); > > If the error is I/O error, I think we shouldn't output this message. ^^^^^^^^^^^^^^^^^^^^^^^^^^ If the error is except -EINVAL, Sorry. > What do you think about this? -- OGAWA Hirofumi - 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/