From: "Xin Zhao" <uszhaoxin@gmail.com>
To: "Chris Wedgwood" <cw@f00f.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
linux-fsdevel@vger.kernel.org
Subject: Re: HELP! vfs_readv() issue
Date: Wed, 17 May 2006 17:44:07 -0400 [thread overview]
Message-ID: <4ae3c140605171444o66de4caqdbe38e028aed94bf@mail.gmail.com> (raw)
In-Reply-To: <20060516043107.GA5321@taniwha.stupidest.org>
Thank you for your care. What I am trying to do is to rewrite NFS in
the virtual machine environment so that network communication can be
replaced with inter-VM communication.
But after I remove the original rpc stuff, I ran into some strange
problem, including this one. Interesting thing is that I noticed that
even with standard NFS implementation, it is still possible that
nfsd_read() return resp->count to be 0. At this time, eof is also
equal to 1. This seems to be right since NFSD already reach the end of
the file. But question is since 0 byte is read this time, NFS should
detect EOF in previous read. Why need one more read?
Xin
On 5/16/06, Chris Wedgwood <cw@f00f.org> wrote:
> On Mon, May 15, 2006 at 07:57:21PM -0400, Xin Zhao wrote:
>
> > I am writing a file system, but vfs_read() sometimes return 0. What
> > could cause this problem?
>
> EOF?
>
next prev parent reply other threads:[~2006-05-17 21:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-15 23:57 Xin Zhao
2006-05-16 4:31 ` Chris Wedgwood
2006-05-17 21:44 ` Xin Zhao [this message]
2006-05-18 18:00 ` Avishay Traeger
2006-05-18 18:12 ` Petr Vandrovec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ae3c140605171444o66de4caqdbe38e028aed94bf@mail.gmail.com \
--to=uszhaoxin@gmail.com \
--cc=cw@f00f.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®