Linux Device Mapper development
 help / color / mirror / Atom feed
* [PATCH] if READA is intentionally ignored, that is not EIO, but EWOULDBLOCK
@ 2008-07-25 12:54 Lars Ellenberg
  0 siblings, 0 replies; only message in thread
From: Lars Ellenberg @ 2008-07-25 12:54 UTC (permalink / raw)
  To: dm-devel

Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
---
 drivers/md/dm-zero.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/md/dm-zero.c b/drivers/md/dm-zero.c
index bdec206..7b9f5e5 100644
--- a/drivers/md/dm-zero.c
+++ b/drivers/md/dm-zero.c
@@ -37,7 +37,7 @@ static int zero_map(struct dm_target *ti, struct bio *bio,
 		break;
 	case READA:
 		/* readahead of null bytes only wastes buffer cache */
-		return -EIO;
+		return -EWOULDBLOCK;
 	case WRITE:
 		/* writes get silently dropped */
 		break;
-- 
1.5.5.GIT


-- 
: Lars Ellenberg                            Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH      Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe    http://www.linbit.com :

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-25 12:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-25 12:54 [PATCH] if READA is intentionally ignored, that is not EIO, but EWOULDBLOCK Lars Ellenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox