Skip to contentSkip to conversation

ext3: Return EIO if new block allocation returns block from system zone.

PATCH New Aneesh Kumar K.V 1 participant 1 message Mar 11, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext3: Return EIO if new block allocation returns block from system zone.

If the block allocator gets blocks out of system zone ext3 calls ext3_error. But if the file system is mounted with errors=continue return with -EIO.

System zone is the block range mapping block bitmap, inode bitmap and inode table.

---
 fs/ext3/balloc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ext3/balloc.c +1 -1
index da0cb2c..6ce7f7d 100644
@@ -1642,7 +1642,7 @@ allocated:
 			    "Allocating block in system zone - "
 			    "blocks from "E3FSBLK", length %lu",
 			     ret_block, num);
-		goto out;
+		goto io_error;
 	}
 
 	performed_allocation = 1;
Signature · 1 line
1.5.4.4.481.g5075.dirty