Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130864
b: refs/heads/master
c: a2b9df3
h: refs/heads/master
v: v3
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Jan 29, 2009
1 parent b654a2a commit 304e80d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b466f17d780c5b72427f36aef22ecdec9f1d0689
refs/heads/master: a2b9df3ff691db8e5e521dccd231a8098bbf7416
2 changes: 1 addition & 1 deletion trunk/fs/ubifs/master.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ int ubifs_write_master(struct ubifs_info *c)
int err, lnum, offs, len;

if (c->ro_media)
return -EINVAL;
return -EROFS;

lnum = UBIFS_MST_LNUM;
offs = c->mst_offs + c->mst_node_alsz;
Expand Down
11 changes: 3 additions & 8 deletions trunk/fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1085,12 +1085,7 @@ static int check_free_space(struct ubifs_info *c)
ubifs_err("insufficient free space to mount in read/write mode");
dbg_dump_budg(c);
dbg_dump_lprops(c);
/*
* We return %-EINVAL instead of %-ENOSPC because it seems to
* be the closest error code mentioned in the mount function
* documentation.
*/
return -EINVAL;
return -ENOSPC;
}
return 0;
}
Expand Down Expand Up @@ -1790,15 +1785,15 @@ static int ubifs_remount_fs(struct super_block *sb, int *flags, char *data)
if ((sb->s_flags & MS_RDONLY) && !(*flags & MS_RDONLY)) {
if (c->ro_media) {
ubifs_msg("cannot re-mount due to prior errors");
return -EINVAL;
return -EROFS;
}
err = ubifs_remount_rw(c);
if (err)
return err;
} else if (!(sb->s_flags & MS_RDONLY) && (*flags & MS_RDONLY)) {
if (c->ro_media) {
ubifs_msg("cannot re-mount due to prior errors");
return -EINVAL;
return -EROFS;
}
ubifs_remount_ro(c);
}
Expand Down

0 comments on commit 304e80d

Please sign in to comment.