Mercurial > yaffs-ecoscentric
changeset 98:0da5cd5a9ac0
Patch from Sergey Kubushyn [ksi@koi8.net]
Fix yaffs to return EINVALID rather than EPERM when mount fails.
| author | marty |
|---|---|
| date | Thu, 27 Oct 2005 23:24:04 +0100 |
| parents | a39f723d20f1 |
| children | b15e9cbc3f7f |
| files | yaffs_fs.c |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/yaffs_fs.c +++ b/yaffs_fs.c @@ -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,
