> This could be about your OS support for cifs, vs cifs itself. Is this
> linux? How are you mounting?
This is a Linux machine, Kubuntu 19.10, mounting samba server running
on another linux server.
I tried two ways. The first one was with these options:
rw,relatime,vers=3.1.1,cache=strict,username=...,uid=1000,forceuid,gid=1000,forcegid,addr=...,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=4194304,wsize=4194304,bsize=1048576,echo_interval=60,actimeo=1
then I tried without caches:
rw,relatime,vers=3.1.1,cache=none,username=...,uid=1000,forceuid,gid=1000,forcegid,addr=...,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=4194304,wsize=4194304,bsize=1048576,echo_interval=60,actimeo=1
The test with hexdump above was using the second mount option set.
> Do you have an option to mount differently, via fuse, instead of native?
According to what I read online, I guess cifs kernel driver is the
modern typical way of mounting shares. I read about smbnetfs but it
seems to fail on my machine.
> Could be. Try
>
> (dd if=/dev/urandom count=$((5*1024)) bs=1024; sleep 120) > test &
>
> and see if you can read it before the command finishes.
Yes, I can read it properly both while sleep is running and even while
dd is still running. I tried many times and I got no error response
from hexdump, not even with the cache enabled.
Regards.
> >> It may also be that there is a gc bug; that is labeled dangerous for a
> >> reason (not enough experience to be comfortable).
> >
> > Yes, I read about it. I opened this discussion cause I thought it could be
> > a possible improvement or fix for bup.
>
> It's great to work on making it work right. I just wanted to caution
> you that you are in semi-charted territory; perhaps "gc AND cifs" is
> uncharted. Works for anybody else?
>
> > Thanks for your answers.
>
> You're very welcome - figuring these things out helps everybody.
--
Dr. Luca Carlon
Software Engineer