summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-19 01:23:55 +0000
committerMiles Bader <miles@gnu.org>1995-04-19 01:23:55 +0000
commitbb3d5584f491da311e7474cb73b0ff60a59f1928 (patch)
treefbb7f2fb38074200ed806806aba7c1c9b93b8603
parent9a0a8ea4354cb7ccbc113fb31a98d9731944634b (diff)
Formerly inode.c.~14~
-rw-r--r--ext2fs/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext2fs/inode.c b/ext2fs/inode.c
index 3b172037..7e8df678 100644
--- a/ext2fs/inode.c
+++ b/ext2fs/inode.c
@@ -399,6 +399,8 @@ error_t
diskfs_set_translator (struct node *np, char *name, u_int namelen,
struct protid *cred)
{
+ if (diskfs_readonly)
+ return EROFS;
#ifdef XXX
daddr_t blkno;
error_t err;