Please describe the problem.
Hello!
I am running Termux
on a Huawei P20
running Android 9.x
; when syncing content, I seem to keep getting this on most / all annexed objects:
/data/data/com.termux/files/home/git-annex.linux/shimmed/cp/cp: preserving times for '.git/annex/othertmp/*': Operation not permitted
where *
is replaced by whatever object is in the folder. I don't know if this is a permissions issue or not, but it is kind of annoying, and takes time from the sync process itself.
Is there any way to change the shimmed cp
to ignore times?
Thank you kindly for the help!
What steps will reproduce the problem?
Simply adding or syncing content in a git annex repository in Termux on Android.
What version of git-annex are you using? On what operating system?
Version 8.20200227-ge156a2b74
Please provide any additional information below.
# If you can, paste a complete transcript of the problem occurring here.
# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log
# End of transcript or log.
Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
This is a bloody awesome project, and while I've just started using it, I'm eagre to learn more! Thank you kindly for the all the work put into this!
What git-annex could do is avoid passing -p to cp when it's running on android.
Utility.Android.osAndroid already has a way to detect that, but running uname on every file copy is not an acceptable performance hit, so it would need to somehow only do it once.
I am not currently seeing a satisfactory way to do that, everything adds at least some overhead (ie a MVar lookup) to every file copy in the non-android case, and it's just not acceptable that a niche use case like android adversely affect linux.
Also, I don't think I saw this when I used git-annex on android, although I'm not sure if I tried anything that does copy a file. And it probably happens when the repo is in the sdcard, but not when it's in other locations, like the termux home directory, that are not on the mess of a filesystem stack that android uses for the sdcard.