summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ufs/alloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ufs/alloc.c b/ufs/alloc.c
index c881454b..4464dfa0 100644
--- a/ufs/alloc.c
+++ b/ufs/alloc.c
@@ -546,6 +546,7 @@ diskfs_alloc_node (struct node *dir,
goto noinodes;
error = iget (ino, &np);
assert ("duplicate allocation" && !np->dn_stat.st_mode);
+ assert (!np->istranslated);
if (np->dn_stat.st_blocks) {
printf("free inode %d had %d blocks\n",
ino, np->dn_stat.st_blocks);