Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Device-mapper Development (http://www.linux-archive.org/device-mapper-development/)
-   -   if READA is intentionally ignored, that is not EIO, but EWOULDBLOCK (http://www.linux-archive.org/device-mapper-development/131516-if-reada-intentionally-ignored-not-eio-but-ewouldblock.html)

Lars Ellenberg 07-25-2008 12:54 PM

if READA is intentionally ignored, that is not EIO, but EWOULDBLOCK
 
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 :

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel


All times are GMT. The time now is 04:10 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.