summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-05-10 19:09:21 +0000
committerMiles Bader <miles@gnu.org>1995-05-10 19:09:21 +0000
commitf2e54d6e2259f204530404e157b4d10af79392d6 (patch)
tree065d0cd8082e80a6c9a0ca7065a08ca794319833
parent5e0a1aa551c18349d14bb8169d73f71fbf32b1af (diff)
(block_getblk, inode_getblk): Return ENOSPC instead of EIO when we can't
allocate a new block.
-rw-r--r--ext2fs/getblk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext2fs/getblk.c b/ext2fs/getblk.c
index 808717e2..d3fd4df8 100644
--- a/ext2fs/getblk.c
+++ b/ext2fs/getblk.c
@@ -154,7 +154,7 @@ inode_getblk (struct node *node, int nr, int create, int zero,
create ? "" : "no", hint, goal, *result);
if (!*result)
- return EIO;
+ return ENOSPC;
node->dn->info.i_data[nr] = *result;
@@ -203,7 +203,7 @@ block_getblk (struct node *node, block_t block, int nr, int create, int zero,
*result = ext2_alloc_block (node, goal, zero);
if (!*result)
- return EIO; /* XXX? */
+ return ENOSPC;
((u32 *)bh)[nr] = *result;