From: torvalds@transmeta.com (Linus Torvalds)
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH][RFT] smbfs bugfixes for 2.4.4
Date: 7 May 2001 10:44:59 -0700 [thread overview]
Message-ID: <9d6mur$df1$1@penguin.transmeta.com> (raw)
In-Reply-To: <Pine.LNX.4.30.0103162326530.28939-200000@cola.teststation.com> <3AF4974C.D5D85498@baldauf.org>
In article <3AF4974C.D5D85498@baldauf.org>,
Xuan Baldauf <xuan--lkml@baldauf.org> wrote:
>
>it does not fix|work around the bug completely:
>
>1. windows: Create a file, e.g. with 741 bytes.
>2. linux: "ls -la" will show you the file with the correct size (741)
>3. linux: read the file into your smbfs cache (e.g. "less file")
>4. windows: add some contents to the file, e.g. so that it is now 896 bytes
>long
>5. linux: "ls -la" will show you the file with the correct size (896)
>6. linux: read the file (e.g. "less file")
>
>What you should see, on the linux box, are the new contents of the file. What
>you will see are the old contents of the file plus a lot "^@^@^@^@^@^@^@"
>(which mean null bytes) at the end of the old contents.
This is a different problem. Apparently the Linux client does not
invalidate its caches sufficiently often. The smb client should at least
do a "invalidate_inode_pages(inode);" when it notices that the file size
has changed.
It has code to do that in smb_revalidate_inode(), but it may be that
something else refreshes the inode size _without_ doing the proper
invalidation checks. Or maybe Urban broke that logic by mistake while
fixing the other one ;)
Linus
next prev parent reply other threads:[~2001-05-07 17:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-02 21:59 [PATCH][RFT] smbfs bugfixes for 2.4.4 Urban Widmark
2001-05-06 0:14 ` Xuan Baldauf
2001-05-06 10:16 ` Urban Widmark
2001-05-07 17:44 ` Linus Torvalds [this message]
2001-05-08 20:43 ` Urban Widmark
2001-05-08 22:02 ` James H. Puttick
2001-05-21 11:00 ` Xuan Baldauf
2001-05-21 18:03 ` Urban Widmark
2001-05-22 22:25 ` Urban Widmark
2001-05-22 22:57 ` Xuan Baldauf
2001-05-22 23:12 ` Urban Widmark
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='9d6mur$df1$1@penguin.transmeta.com' \
--to=torvalds@transmeta.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.