From 1340b01f3e7df73339c1cc36c2ec3d6855f77b78 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 6 Jul 2004 15:48:57 +0000 Subject: [PATCH] debug fix --- ChangeLog | 2 ++ lib/fuse.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b3676b8..2c92987 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ if FORGET was received earlier than the last RELEASE (bug found with the LTP test-suite) + * Minor fix in read: print debug info even if read size is zero + 2004-07-04 Miklos Szeredi * Fix race between truncate and writepage (fsx-linux now runs diff --git a/lib/fuse.c b/lib/fuse.c index ad0aaed..7ab996b 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -806,7 +806,7 @@ static void do_read(struct fuse *f, struct fuse_in_header *in, } size = 0; - if(res > 0) { + if(res >= 0) { size = res; res = 0; if(f->flags & FUSE_DEBUG) { -- 2.30.2