RE: [Yaffs] Make YAFFS2 work as a root FS, patch

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Martin Fouts
Date:  
To: Sergey Kubushyn, yaffs-list
Subject: RE: [Yaffs] Make YAFFS2 work as a root FS, patch
Thank you for the patch. I've added it to my patch queue, and will test
it as soon as I have time available.

Marty

> -----Original Message-----
> From:
> [mailto:yaffs-bounces@stoneboat.aleph1.co.uk] On Behalf Of
> Sergey Kubushyn
> Sent: Wednesday, October 12, 2005 10:21 AM
> To: yaffs-list
> Subject: [Yaffs] Make YAFFS2 work as a root FS, patch
>
> This one is also tiny but critical. Linux kernel will NOT
> mount YAFFS2 filesystem without it. I will not be explaining
> why leaving it as an exercize for a reader.
>
> === Cut ===
> diff -urN linux-2.6.12.orig/fs/yaffs2/yaffs_fs.c 
> linux-2.6.12/fs/yaffs2/yaffs_fs.c
> --- linux-2.6.12.orig/fs/yaffs2/yaffs_fs.c    2005-10-11 
> 18:01:36.000000000 -0700
> +++ linux-2.6.12/fs/yaffs2/yaffs_fs.c    2005-10-11 
> 18:15:57.000000000 -0700
> @@ -1492,7 +1492,7 @@
>  static int yaffs_internal_read_super_mtd(struct super_block 
> *sb, void *data,
>                       int silent)
>  {
> -    return yaffs_internal_read_super(1, sb, data, silent) ? 0 : -1;
> +    return yaffs_internal_read_super(1, sb, data, silent) ? 
> 0 : -EINVAL;
>  }

>
>  static struct super_block *yaffs_read_super(struct 
> file_system_type *fs, @@ -1529,7 +1529,7 @@  static int 
> yaffs2_internal_read_super_mtd(struct super_block *sb, void *data,
>                        int silent)
>  {
> -    return yaffs_internal_read_super(2, sb, data, silent) ? 0 : -1;
> +    return yaffs_internal_read_super(2, sb, data, silent) ? 
> 0 : -EINVAL;
>  }

>
> static struct super_block *yaffs2_read_super(struct
> file_system_type *fs, === Cut ===
>
> ---
> ******************************************************************
> *  KSI@home    KOI8 Net  < >  The impossible we do immediately.  *
> *  Las Vegas   NV, USA   < >  Miracles require 24-hour notice.   *
> ******************************************************************

>
>
> _______________________________________________
> yaffs mailing list
>
> http://stoneboat.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>