From: "Jeff V. Merkey" <jmerkey@drdos.com>
To: "Jeff V. Merkey" <jmerkey@drdos.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>,
Jeff Garzik <jgarzik@pobox.com>, Brad Campbell <brad@wasp.net.au>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: nfs stale filehandle issues with 2.6.10-rc1 in-kernel server
Date: Wed, 03 Nov 2004 14:38:08 -0700 [thread overview]
Message-ID: <41894FC0.6080609@drdos.com> (raw)
In-Reply-To: <41890D5F.4000006@drdos.com>
Jeff V. Merkey wrote:
> Trond Myklebust wrote:
>
>>
>>>> Connect 2.4.18 and 2.6.9 with NFS 3 enabled. I am seeing problems
>>>> connecting and file size mismatches. I also see errors with zero
>>>> length files (host side) that get opened and populated with data
>>>> and the remote side is unable to read them -- keeps seeing them as
>>>> zero length.
>>>
>>
>> That's entirely expected. NFS has always been forced to use a polling
>> model for attribute cache consistency. "man 5 nfs" and read all about
>> the "actimeo" mount options that control this behaviour.
>>
>> Cheers,
>> Trond
>>
>>
>>
> Trond,
>
> Thanks for the update. I noticed from another post on this thread
> that the problems with
> /etc/exports are being addressed. This was the other problem I was
> seeing but it appears
> to be getting fixed.
>
> Jeff
>
>
>
Trond,
While you are running down this problem, I've located another odd
behavior you
may (or may not) chose to address. In my dsfs file system, I use sector
runs (large ones)
that can sometimes return odd sizes during running down a file for
reading.
i.e. I can return 4096,4096,4096,512,1024,4096,4096 block sizes on size
returns
from vfs_read() for 512 or 4096 block requests when the file is read
sequentially.
Under NTFS and other OS architectures, unless the final read attempt
returns 0 size
denoting end of file, this seems to be allowed. I noticed that all of
the linux code with
the exception of NFS also handles this situation quite nicely. NFS does
not. I have
noted that if NFS receives a read size smaller than the requested block,
it always assumes
end of file and terminates the next read. I hace modified dsfs to
always return
block sizes in a uniform manner so NFS will work properly, even though
the rest
of the Linux apps work just fine without assuming the end of file has
been reached.
I personally think this is a broken behavior, but perhaps it's in line
with some NFS
spec somewhere. I have coded around it, but thout I would mention it to
you.
Jeff
next prev parent reply other threads:[~2004-11-03 21:22 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-02 12:02 Brad Campbell
2004-11-02 16:37 ` Trond Myklebust
2004-11-02 19:49 ` Jeff Garzik
2004-11-02 20:09 ` Jakob Oestergaard
2004-11-05 2:47 ` Jeff Garzik
2004-11-05 2:59 ` Trond Myklebust
2004-11-05 3:07 ` Jeff Garzik
2004-11-05 13:43 ` Jakob Oestergaard
2004-11-02 21:05 ` Jeff V. Merkey
2004-11-02 21:37 ` Trond Myklebust
[not found] ` <20041102225304.GA11441@galt.devicelogics.com>
2004-11-03 0:19 ` Jeff V. Merkey
2004-11-03 1:13 ` Trond Myklebust
2004-11-03 16:54 ` Jeff V. Merkey
2004-11-03 21:38 ` Jeff V. Merkey [this message]
2004-11-03 23:32 ` Trond Myklebust
2004-11-04 0:12 ` Jeff V. Merkey
2004-11-02 21:36 ` Trond Myklebust
2004-11-05 2:57 ` Jeff Garzik
2004-11-05 3:09 ` Trond Myklebust
2004-11-05 7:27 ` Jeff Garzik
2004-11-02 21:51 ` J. Bruce Fields
2004-11-08 20:53 ` J. Bruce Fields
2004-11-03 15:10 ` Jakob Oestergaard
2004-11-03 16:02 ` J. Bruce Fields
2004-11-03 16:05 ` Trond Myklebust
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=41894FC0.6080609@drdos.com \
--to=jmerkey@drdos.com \
--cc=brad@wasp.net.au \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=trond.myklebust@fys.uio.no \
/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
Powered by JetHome