From 4518d7869078e9ea14b58f2fe8fd3caf8e891bc0 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 20 Apr 1995 14:14:57 +0000 Subject: Formerly dir.c.~9~ --- ext2fs/dir.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ext2fs/dir.c b/ext2fs/dir.c index 591a0b27..afdd23dc 100644 --- a/ext2fs/dir.c +++ b/ext2fs/dir.c @@ -445,8 +445,7 @@ diskfs_direnter(struct node *dp, assert (ds->type == CREATE); - if (diskfs_readonly) - return EROFS; + assert (!diskfs_readonly); switch (ds->stat) { @@ -588,8 +587,7 @@ diskfs_dirremove(struct node *dp, assert (ds->type == REMOVE); assert (ds->stat == HERE_TIS); - if (diskfs_readonly) - return EROFS; + assert (!diskfs_readonly); if (ds->preventry == 0) ds->entry->inode = 0; @@ -630,8 +628,7 @@ diskfs_dirrewrite(struct node *dp, assert (ds->type == RENAME); assert (ds->stat == HERE_TIS); - if (diskfs_readonly) - return EROFS; + assert (!diskfs_readonly); ds->entry->inode = np->dn->number; -- cgit v1.2.3