From: Miklos Szeredi Date: Wed, 5 Mar 2008 13:03:59 +0000 (+0000) Subject: Make example/null work with -odirect_io X-Git-Tag: fuse_2_8_0_pre2~26 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=230dc7115f1cbb3cb5030e6b89dc1fd3a9af691d;p=qemu-gpiodev%2Flibfuse.git Make example/null work with -odirect_io --- diff --git a/example/null.c b/example/null.c index a98226e..0845586 100644 --- a/example/null.c +++ b/example/null.c @@ -62,6 +62,9 @@ static int null_read(const char *path, char *buf, size_t size, if(strcmp(path, "/") != 0) return -ENOENT; + if (offset >= (1ULL << 32)) + return 0; + return size; }