Mercurial > yaffs-ecoscentric-gpl
diff yaffs_fs.c @ 95:43bc1e9bab9d
Patch from Sergey Kubushyn [ksi@koi8.net]
Fix yaffs to return EINVALID rather than EPERM when mount fails.
| author | marty <marty> |
|---|---|
| date | Thu, 27 Oct 2005 22:24:04 +0000 |
| parents | 5e9c63f92163 |
| children | 4850556d44c6 |
line wrap: on
line diff
--- a/yaffs_fs.c +++ b/yaffs_fs.c @@ -31,7 +31,7 @@ */ const char *yaffs_fs_c_version = - "$Id: yaffs_fs.c,v 1.32 2005-10-27 07:22:49 marty Exp $"; + "$Id: yaffs_fs.c,v 1.33 2005-10-27 22:24:04 marty Exp $"; extern const char *yaffs_guts_c_version; #include <linux/config.h> @@ -1493,7 +1493,7 @@ static struct super_block *yaffs_interna 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, @@ -1530,7 +1530,7 @@ static DECLARE_FSTYPE(yaffs_fs_type, "ya 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,
