Skip to contentSkip to conversation

if READA is intentionally ignored, that is not EIO, but EWOULDBLOCK

PATCH New Lars Ellenberg 1 participant 1 message Jul 25, 2008 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 if READA is intentionally ignored, that is not EIO, but EWOULDBLOCK

---
 drivers/md/dm-zero.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/md/dm-zero.c +1 -1
index bdec206..7b9f5e5 100644
@@ -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;
Signature · 7 lines
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 :