From bb3d5584f491da311e7474cb73b0ff60a59f1928 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 19 Apr 1995 01:23:55 +0000 Subject: Formerly inode.c.~14~ --- ext2fs/inode.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3