]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] struct super_block cleanup - msdos/vfat
authorBrian Gerst <bgerst@didntduck.org>
Fri, 15 Mar 2002 07:16:12 +0000 (23:16 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 15 Mar 2002 07:16:12 +0000 (23:16 -0800)
Don't print out FAT superblock warnings if the IO failed.

fs/msdos/namei.c
fs/vfat/namei.c

index 89194a5b18bd71bdb42b6717b38e76b7caa7aa74..a61b26a8086fbf6b447146413a084e9726456022 100644 (file)
@@ -607,7 +607,7 @@ int msdos_fill_super(struct super_block *sb,void *data, int silent)
 
        res = fat_fill_super(sb, data, silent, &msdos_dir_inode_operations, 0);
        if (res) {
-               if (!silent)
+               if (res == -EINVAL && !silent)
                        printk(KERN_INFO "VFS: Can't find a valid"
                               " MSDOS filesystem on dev %s.\n", sb->s_id);
                return res;
index 6fb299d74d22cedc544acf165f43136e2abf8f1a..3e5c175b50d258b46131bbd3143994f0ba5fe29d 100644 (file)
@@ -1290,7 +1290,7 @@ int vfat_fill_super(struct super_block *sb, void *data, int silent)
   
        res = fat_fill_super(sb, data, silent, &vfat_dir_inode_operations, 1);
        if (res) {
-               if (!silent)
+               if (res == -EINVAL && !silent)
                        printk(KERN_INFO "VFS: Can't find a valid"
                               " VFAT filesystem on dev %s.\n", sb->s_id);
                return res;