Re: Deleting files on temporary network dropouts
Mo B <[email protected]> Fri, 16 Jan 2026 00:49:43 -0800 (PST)
| Newsgroups | gmane.network.unison.general |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_206322_1943219618.1768553383982 Content-Type: multipart/alternative; boundary="----=_Part_206323_866937417.1768553383982" ------=_Part_206323_866937417.1768553383982 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Friday, January 9, 2026 at 2:58:21=E2=80=AFPM UTC+1 Greg Troxel wrote: So, find some big direcotry. Write a script to do ls and save it (in=20 a date-stamped file) and do that repeatadly, during some time when you=20 don't touch that directory, and see if they are all the same. Then add=20 some command to clear your davfs2 cache in between.=20 I can't reproduce: while true;do ls /mnt/davfs/hidrive/public/bigdir/ > dav-debug/ls-$(date=20 --iso-8601=3Dseconds);sleep 1;done md5sum dav-debug/* I switched networks locally, switched interfaces off and on, switched VPNs,= =20 I also turned off the mobile uplink on the Android hotspot and stuff. The files are always all identical, or are 0-size when waiting for a=20 network. I'm not sure if some longer waiting would lead to a wrong ls. But as far as I can see, davfs2 is just blocking without network. My custom config differing from default: cat /etc/davfs2/davfs2.conf |grep -v "^#" |grep -v "^$" cache_size 96000 # MiByte delay_upload 2 minimize_mem 1 table_size 131072 # power of 2 use_compression 1 That means, I use a very huge local cache taking almost the complete webdav= =20 server content. Actually for unison that doesn't help much I guess because= =20 it needs to check the server stats anyway, but if unchanged and I need to= =20 read a file from server, then I almost have it already cached. Best regards, Mo To unsubscribe from this group and stop receiving emails from it, send an e= mail to [email protected]. ------=_Part_206323_866937417.1768553383982 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div><div dir=3D"auto">On Friday, January 9, 2026 at 2:58:21=E2=80=AFPM UTC= +1 Greg Troxel wrote:<br /></div><blockquote style=3D"margin: 0px 0px 0px 0= .8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br />= So, find some big direcotry. Write a script to do ls and save it (in <br />a date-stamped file) and do that repeatadly, during some time when yo= u <br />don't touch that directory, and see if they are all the same. Then = add <br />some command to clear your davfs2 cache in between. <br /></blockquote><div><br /></div><div>I can't reproduce:</div><div><br /= ></div><div><span style=3D"font-family: Courier New;">while true;do ls /mnt= /davfs/hidrive/public/bigdir/ > dav-debug/ls-$(date --iso-8601=3Dseconds= );sleep 1;done</span></div><div><span style=3D"font-family: Courier New;">m= d5sum dav-debug/*</span></div><div><span style=3D"font-family: Courier New;= "><br /></span></div><div><font face=3D"Sans Serif">I switched networks loc= ally, switched interfaces off and on, switched VPNs, I also turned off the = mobile uplink on the Android hotspot and stuff.</font></div><div><font face= =3D"Sans Serif">The files are always all identical, or are 0-size when wait= ing for a network. I'm not sure if some longer waiting would lead to a wron= g ls.</font></div><div><font face=3D"Sans Serif">But as far as I can see, d= avfs2 is just blocking without network.</font></div><div><font face=3D"Sans= Serif"><br /></font></div><div><font face=3D"Sans Serif">My custom config = differing from default:</font></div><div><span style=3D"font-family: Courie= r New;"><br /></span></div><div><span style=3D"font-family: Courier New;">c= at /etc/davfs2/davfs2.conf |grep -v "^#" |grep -v "^$"<br />cache_size =C2= =A0 =C2=A0 =C2=A096000 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # M= iByte<br />delay_upload =C2=A0 =C2=A02<br />minimize_mem =C2=A0 =C2=A01<br = />table_size =C2=A0 =C2=A0 =C2=A0131072 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0# power of 2<br />use_compression 1</span><br /><br /></div><d= iv>That means, I use a very huge local cache taking almost the complete web= dav server content. Actually for unison that doesn't help much I guess beca= use it needs to check the server stats anyway, but if unchanged and I need = to read a file from server, then I almost have it already cached.</div><div= ><br /></div><div>Best regards,</div><div>Mo</div></div> <p></p> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">unison-u= [email protected]</a>.<br /> ------=_Part_206323_866937417.1768553383982-- ------=_Part_206322_1943219618.1768553383982--