From f2e54d6e2259f204530404e157b4d10af79392d6 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 10 May 1995 19:09:21 +0000 Subject: (block_getblk, inode_getblk): Return ENOSPC instead of EIO when we can't allocate a new block. --- ext2fs/getblk.c | 4 ++-- 1 file 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; -- cgit v1.2.3