Messages in this thread | | | Date | Thu, 05 Apr 2001 03:29:45 +0200 | From | Xuan Baldauf <> | Subject | Re: [BUG] smbfs: caching problems |
| |
Urban Widmark wrote:
> On Sun, 1 Apr 2001, Xuan Baldauf wrote: > > > 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) > > Try the attached patch, as a workaround. >
Works for me. :-)
It survived codified test case at the end of this message.
Xuân.
#!/bin/bash #
if test -z "$1"; then LOCAL=0 fi
if test -n "$LOCAL"; then umount /mnt/n
rmmod smbfs
# mount ~/bin/lwc
cd /mnt/n/temp fi
rm -f /tmp/test.abc /tmp/test.xyz testfile
I=0 while test $I -lt 127; do echo "abc" >>/tmp/test.abc I=$((I+1)) done
I=0 while test $I -lt 129; do echo "xyz" >>/tmp/test.xyz I=$((I+1)) done
I=0
while test $I -lt 8; do cp /tmp/test.abc testfile tail -1 testfile cp /tmp/test.xyz testfile tail -1 testfile
I=$((I+1)) done
rm -f /tmp/test.abc /tmp/test.xyz testfile
if test -n "$LOCAL"; then umount /mnt/n fi
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |