summaryrefslogtreecommitdiff
path: root/ext2fs/dir.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-20 14:14:57 +0000
committerMiles Bader <miles@gnu.org>1995-04-20 14:14:57 +0000
commit4518d7869078e9ea14b58f2fe8fd3caf8e891bc0 (patch)
treec23cfc33b02eac12af7bcb87ab9b044dea40c53a /ext2fs/dir.c
parent5e9eb09cf128c50ce1b6427605979ad971c0f027 (diff)
Formerly dir.c.~9~
Diffstat (limited to 'ext2fs/dir.c')
-rw-r--r--ext2fs/dir.c9
1 files 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;