# HG changeset patch # User marty # Date 1130451844 0 # Node ID 43bc1e9bab9d3f9bdc6420e82767183341fcf6b9 # Parent 5e9c63f92163914c6a3b217116ac40290db819a5 Patch from Sergey Kubushyn [ksi@koi8.net] Fix yaffs to return EINVALID rather than EPERM when mount fails. diff --git a/yaffs_fs.c b/yaffs_fs.c --- 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 @@ -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,