public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] smbfs: caching problems
@ 2001-04-01  1:19 Xuan Baldauf
  2001-04-03 20:06 ` Urban Widmark
  2001-04-04 23:00 ` Urban Widmark
  0 siblings, 2 replies; 4+ messages in thread
From: Xuan Baldauf @ 2001-04-01  1:19 UTC (permalink / raw)
  To: Urban Widmark; +Cc: linux-kernel

Hello,

there is something wrong with smbfs caching which makes my
applications fail. The behaviour happens with
linux-2.4.3-pre4 and linux-2.4.3-final.

Consider following shell script: (where /mnt/n is a
smbmounted smb share from a Win98SE box)

router|/mnt/n/temp/smbfs> I=0; while test $I -lt 127; do
echo "abc" >>/tmp/test.abc; I=$((I+1)); done # create a 508
bytes file
router|/mnt/n/temp/smbfs> I=0; while test $I -lt 129; do
echo "xyz" >>/tmp/test.xyz; I=$((I+1)); done # create a 516
bytes file
router|/mnt/n/temp/smbfs> while true; do cp /tmp/test.abc
testfile; tail -1 testfile; cp /tmp/test.xyz testfile; tail
-1 testfile; done # copy the files alternatingly and read
the destination file after it has bean overwritten
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
[...Ctrl-C...]
router|/mnt/n/temp/smbfs> cd /tmp # the same on reiserfs
router|/tmp> while true; do cp /tmp/test.abc testfile; tail
-1 testfile; cp /tmp/test.xyz testfile; tail -1 testfile;
done # here it works
abc
xyz
abc
xyz
abc
xyz
abc
xyz
abc
xyz
abc
xyz
abc
xyz
abc
xyz
abc
xyz
abc
xyz
abc
xyz
abc
xyz
abc
xyz
abc
[...Ctrl-C...]
router|/tmp> uname -a
Linux router 2.4.3 #5 Fri Mar 30 14:02:24 CEST 2001 i586
unknown
router|/tmp>

Obviously, the smbfs behaviour is wrong. Interstingly, the
change in the filesize of the file overwritten seems to need
to cross a 512-block-boundary in order to show the bug.

Contact me if you need more info.

Xuân.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-04-05  1:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-01  1:19 [BUG] smbfs: caching problems Xuan Baldauf
2001-04-03 20:06 ` Urban Widmark
2001-04-04 23:00 ` Urban Widmark
2001-04-05  1:29   ` Xuan Baldauf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox