From: yarikoptic Date: Tue, 2 Sep 2025 15:06:43 +0000 (+0000) Subject: Added a comment: odd odd filesystem X-Git-Tag: archive/raspbian/10.20251029-1+rpi1~1^2~3^2~160 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=534762702582c003bb9ac427a055f098f734ef90;p=git-annex.git Added a comment: odd odd filesystem --- diff --git a/doc/bugs/35_failed_tests_on_beegfs/comment_3_4b2a63e6bb5bb4e35a2858361ffa917d._comment b/doc/bugs/35_failed_tests_on_beegfs/comment_3_4b2a63e6bb5bb4e35a2858361ffa917d._comment new file mode 100644 index 0000000000..30a8d21122 --- /dev/null +++ b/doc/bugs/35_failed_tests_on_beegfs/comment_3_4b2a63e6bb5bb4e35a2858361ffa917d._comment @@ -0,0 +1,67 @@ +[[!comment format=mdwn + username="yarikoptic" + avatar="http://cdn.libravatar.org/avatar/f11e9c84cb18d26a1748c33b48c924b4" + subject="odd odd filesystem" + date="2025-09-02T15:06:43Z" + content=""" +eh, it is indeed quite a f...un filesystem: even `chmod` might endup unhappy + +``` +chmod +w -R test-repo +chmod: changing permissions of 'test-repo/.git/annex/objects/91/9x/SHA256E-s4--b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c/SHA256E-s4--b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c': No such file or directory +chmod: changing permissions of 'test-repo/.git/annex/objects/g7/9v/SHA256E-s4--7d865e959b2466918c9863afca942d0fb89d7c9ac0c99bafc3749504ded97730/SHA256 +E-s4--7d865e959b2466918c9863afca942d0fb89d7c9ac0c99bafc3749504ded97730': No such file or directory +``` + +and it might indeed take minute(s) for filesytem to become \"consistent\" with expected state. And it seems that even a minute might not be enough!!! + +``` +ok +(recording state in git...) +(test_script.sh:14): +sleep 1m +(test_script.sh:14): +cat bar +cat: bar: No such file or directory +``` + +
+with this full tune up script + +``` +#!/bin/bash + +if [ -e test-repo ]; then + chmod +w -R test-repo; + rm -rf test-repo; +fi +mkdir test-repo; cd test-repo; git init; git annex init; + +echo foo > foo +git-annex add foo; cat foo +echo bar > bar +# git-annex add bar; sleep 1m; cat bar +git-annex add bar +start_time=$(date +%s) +while ! cat bar 2>/dev/null; do + sleep 1 + echo -n . +done +end_time=$(date +%s) +wait_time=$((end_time - start_time)) +cat bar +echo \"Waited ${wait_time} seconds for bar to appear\" +``` + +
+ +it `Waited 450 seconds for bar to appear`... and on this funny system bash would report that file is available so symlink would not be broken to those tests: + +``` +$> test -e bar || echo fail +$> cat bar +cat: bar: No such file or directory +``` + +I will report to sysadmins -- may be they have ideas/feedback ;-) +"""]]