Ignore Permissions / Different mtimes on Android Sdcard

Seems to do what it’s supposed to here. Presumably you are not seeing buttons and so on here?

No, I had to revert.

Here’s another just now from an gocryptfs encrypted file system.

[XHTJH] DEBUG: mtimefs.go:71 basic /storage/B977-5AE1/Android/data/com.github.catfriend1.syncthingandroid.debug/st/crypted-shared Lstat C2j8NNXQ3wHPht9gP7SrHQ/3vOpfRpZp4BwAe8p-ZlJSg/3HuQOxuQc8-RIlDo40s1mA/0IbYz4jP0WVtZaYV4XaNyQ {0x4000fd18c0} <nil>
[XHTJH] DEBUG: load: loaded 2019-05-17 19:05:41 +0000 UTC / 2019-05-17 19:05:41.214081426 +0000 UTC for C2j8NNXQ3wHPht9gP7SrHQ/3vOpfRpZp4BwAe8p-ZlJSg/3HuQOxuQc8-RIlDo40s1mA/0IbYz4jP0WVtZaYV4XaNyQ
[XHTJH] DEBUG: mtimefs.go:71 basic /storage/B977-5AE1/Android/data/com.github.catfriend1.syncthingandroid.debug/st/crypted-shared Lstat C2j8NNXQ3wHPht9gP7SrHQ/3vOpfRpZp4BwAe8p-ZlJSg/3HuQOxuQc8-RIlDo40s1mA/0IbYz4jP0WVtZaYV4XaNyQ {0x40004ae300} <nil>
[XHTJH] DEBUG: load: loaded 2019-05-17 19:05:41 +0000 UTC / 2019-05-17 19:05:41.214081426 +0000 UTC for C2j8NNXQ3wHPht9gP7SrHQ/3vOpfRpZp4BwAe8p-ZlJSg/3HuQOxuQc8-RIlDo40s1mA/0IbYz4jP0WVtZaYV4XaNyQ
[XHTJH] DEBUG: receiveonly/cpdpj-ytgwa@0x4000185080 taking shortcut on C2j8NNXQ3wHPht9gP7SrHQ/3vOpfRpZp4BwAe8p-ZlJSg/3HuQOxuQc8-RIlDo40s1mA/0IbYz4jP0WVtZaYV4XaNyQ
[XHTJH] DEBUG: mtimefs.go:56 basic /storage/B977-5AE1/Android/data/com.github.catfriend1.syncthingandroid.debug/st/crypted-shared Chtimes C2j8NNXQ3wHPht9gP7SrHQ/3vOpfRpZp4BwAe8p-ZlJSg/3HuQOxuQc8-RIlDo40s1mA/0IbYz4jP0WVtZaYV4XaNyQ 2019-05-17 19:05:41.214081426 +0000 UTC 2019-05-17 19:05:41.214081426 +0000 UTC <nil>
[XHTJH] DEBUG: mtimefs.go:60 basic /storage/B977-5AE1/Android/data/com.github.catfriend1.syncthingandroid.debug/st/crypted-shared Lstat C2j8NNXQ3wHPht9gP7SrHQ/3vOpfRpZp4BwAe8p-ZlJSg/3HuQOxuQc8-RIlDo40s1mA/0IbYz4jP0WVtZaYV4XaNyQ {0x400035a840} <nil>
[XHTJH] DEBUG: save: saving 2019-05-17 19:05:41 +0000 UTC / 2019-05-17 19:05:41.214081426 +0000 UTC for C2j8NNXQ3wHPht9gP7SrHQ/3vOpfRpZp4BwAe8p-ZlJSg/3HuQOxuQc8-RIlDo40s1mA/0IbYz4jP0WVtZaYV4XaNyQ

===R

Looks like it’s doing the right thing.

I guess a longer log with the file arriving, being scanned (enabling scanner together with fs), becoming out of sync, and reverting would be more interesting ideally you should filter this down to a single file.

There’s quite a lot of reverted files. Can I use the 'taking shortcut' from 'model' to find a file of interest?

===R

Here’s a go enabling fs, model and scanner. It’s 13K so uploaded, too.

===Rst_paste3.txt (12.8 KB)

[XHTJH] DEBUG: mtimefs.go:71 basic /storage/B977-5AE1/Android/data/com.github.catfriend1.syncthingandroid.debug/st/crypted-shared Lstat C2j8NNXQ3wHPht9gP7SrHQ/3vOpfRpZp4BwAe8p-ZlJSg/3HuQOxuQc8-RIlDo40s1mA/0IbYz4jP0WVtZaYV4XaNyQ {0x40015972c0} <nil>
[XHTJH] DEBUG: load: loaded 2019-05-17 19:05:41 +0000 UTC / 2019-05-17 19:05:41.214081426 +0000 UTC for C2j8NNXQ3wHPht9gP7SrHQ/3vOpfRpZp4BwAe8p-ZlJSg/3HuQOxuQc8-RIlDo40s1mA/0IbYz4jP0WVtZaYV4XaNyQ
[XHTJH] DEBUG: rescan: File{Name:"C2j8NNXQ3wHPht9gP7SrHQ/3vOpfRpZp4BwAe8p-ZlJSg/3HuQOxuQc8-RIlDo40s1mA/0IbYz4jP0WVtZaYV4XaNyQ", Sequence:1774, Permissions:0750, ModTime:2019-05-17 19:05:41.214081426 +0000 UTC, Version:{[{NPAZACX 1} {WKOOOGB 1} {WR6WMT7 1} {2VVXIMR 1} {3ABJ3OJ 2}]}, Length:13131181, Deleted:false, Invalid:false, LocalFlags:0x0, NoPermissions:false, BlockSize:131072, Blocks:[Block{0/131072/3920915798/6fe58fd9cbb7e19de29295c710453d7a98dc4d0ac6492dedf3cd98e4429f0a2b} Block{131072/131072/55154110/00f5df6fb2877b4e252f1333391e3c7bf00600bb46373ef38aea72b3645f0a79} Block{262144/131072/3648095085/71ef26f4aa762df443caf458a0b9c6691f364771647f8da6d0ba84636c0f32ff} Block{393216/131072/2718853866/83e21bada7683f291b66f7b2c685ed5d8b84a4ed23c9d55818b49c5c17675304} Block{524288/131072/474282646/b68b717ee2470cb428f530942cdc10a60350afc9c9b750ddf36a011668a462e5} Block{655360/131072/598679759/4c2e648de7924587de108e8822f9a0e9ac4dd4453e64f39d66272cdaeaacb8a9} Block{786432/131072/2571126889/69923b3c6286c2a51e7e56fd4bfeee09b585ec6904cc427a70bf6791970019f3} Block{917504/131072/1360846349/cee2e0396488dae860d9967ebe8e31301ee1f219da0437ea2e5cc0d29aeb1cbc} Block{1048576/131072/1097097279/8714012e31004e05cea1eb111ba7a0fe721dd7cfa178f0453450a9dd89453c78} Block{1179648/131072/2630940416/4d7d9070a0428159dda9b5efb3041df7f3854cbbd5ccc5bd38d904b5c80edfa9} Block{1310720/131072/3795281701/dc7bfbefbe69aeb5b0434d80571c4ca6d12a0662988990de0f2223e1b070aba9} Block{1441792/131072/2874134457/12db166d20dff0936c3ced79e1d42a4e48e1d6ced2efa819d010b64943b0f3df} Block{1572864/131072/4163101715/8b13b372772ebd51c8b94767b2d50d0b12c200774ee29e05763f9c208ae57e0a} Block{1703936/131072/3098123671/29a8340e66685199a99feb9412e1b59e688d5aea4743675286bdbfe7565ec16f} Block{1835008/131072/1480136479/46c93340ad4592be1849a85b5ff6000a34df7d1464b62557049cc7423bf4fc76} Block{1966080/131072/4193584507/799d47e9be08090670e52358ca618915df452fec7d4943f2a72ede18ceb44366} Block{2097152/131072/762823171/83f2c5a4e4b0ede786b8c074ad5b868c23f7dcc21841659aae244fc28b67d399} Block{2228224/131072/920170385/0ef8cd900a25b8dfe5746b7bda2e6d4b63b1fd7fc90305c64d27dc93f7588def} Block{2359296/131072/2701320898/1480ba6c53dbdd7773524ba4dba03246d1e696af203dd545977910d77d570b85} Block{2490368/131072/1757613839/ed7c94c936e62e6b55e1cc68ae2e6dc11599614b6ee12eecaec650b7582e948d} Block{2621440/131072/3924627115/ec43801dc0d43add833f6f13809651e9227ec273564987f30d3629b5a6652763} Block{2752512/131072/4074562965/ad4f09cc67209bb3cf0cc1961c7865c99a8a2b44c815ea5f6c95f807f8d7fd7f} Block{2883584/131072/1900407944/1b975646bd3e73d3a7cf2dfd36c648cf8326cf26eb7856339490ed2faef3221f} Block{3014656/131072/1541517119/56caa128e30c960c4b01592c37c58143e2583eedd3def06d0a30132951fd6559} Block{3145728/131072/117022612/7318fb12c8a16527f24b3d8e333f18d82af9696402c59981c58cbb995f47fa83} Block{3276800/131072/1175726016/a31fc279eb830149d3256a3dd450df9b267415fb83313701e6589d2d695ae508} Block{3407872/131072/1133050906/dd0cbab332fb8bd3e13eb28817e7c0abe10f900d7ff030a58bc3a292809136c4} Block{3538944/131072/3260438469/08a6aea480ba04a15bc11b206329797846516a05d2a925f6cba5f78beb20b3a7} Block{3670016/131072/1319164946/5034165a57c3136dcd674d52f937ebaff3b748dea5dec606e0248864acf18074} Block{3801088/131072/76514149/4132602d997bb2f53390f41788d1297a9ec30c8e889a86c8cef383c3a8c2f1ae} Block{3932160/131072/3420012210/92054f9f666d28a2bfb15f7e189d33c9e2d13a26fa699e51dd7460011f673c81} Block{4063232/131072/1557871090/9ee6eda3fcb84c6ed214c5cec52463c4002b08fddcc14b78e8cfbe4bd738e12f} Block{4194304/131072/2742610123/06a1dd7219b12f999755a1c026de2ae8e3540c2d701adfd6a0f829c4402f75a8} Block{4325376/131072/3620206951/f1f2f2ba378f04c8397ab8821a90d131d77a325cb6a1416bbcc823f6a7af5e3d} Block{4456448/131072/2800568359/ca3a0e0bf56e94a565fff3e0d7dbceea04576bec56664f2345189da5588bbfda} Block{4587520/131072/1919051117/32c4a6dba0f81cfe2b663f3749dba4be3ea80c3be74bc1e0a9a7b646e1739683} Block{4718592/131072/4190749975/b4fcb993b6efc336b96a145aeae0c95933d0fa021290ba266ab0db4771c71937} Block{4849664/131072/3750754480/db696c8406060f007cd9765b35536ef969c0257fd270f992ac63144d05c2a81b} Block{4980736/131072/3236002196/b820057d93d0e77b6141cf1799a3eca7a801cd159a9fec31ff9b5d0cc8dcf28c} Block{5111808/131072/2511127078/49a967fa586278df8ec0f98d44af3e25da0d03c0159f1f0af94aab6caa32571c} Block{5242880/131072/3672539103/d33b4618b14b719aac3e5c5a5e2829fb7c50fcd5ef2752f2bd0afa22dcd4ee78} Block{5373952/131072/3165812632/53d1070fef1ef2f997614026301031032dfd9b527e0ddcc46312f546e466a258} Block{5505024/131072/1330770794/03854aaab818e9d8deb116bf40b1c4207625

Look at the attached file, not the inline paste, that didn’t go correctly.

===R

There is no part of the file arriving, just scanning straight away.

Actually, never mind, I think I see the issue.

MtimeFS handles Lstat, and I think Walk does not use that.

1 Like

Thanks for all your efforts on this.

===R

1 Like