From: Michael Albinus <michael.albinus@gmx.de>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: fractional file timestamps in tramp-adb
Date: Fri, 15 Feb 2019 09:11:32 +0100 [thread overview]
Message-ID: <87zhqxcvyj.fsf@gmx.de> (raw)
In-Reply-To: <27d01654-9b2e-3bf2-7eca-146854b68a0c@cs.ucla.edu> (Paul Eggert's message of "Thu, 14 Feb 2019 15:41:31 -0800")
Paul Eggert <eggert@cs.ucla.edu> writes:
Hi Paul,
> Interesting. Does it work without the ".318491822" but keep the "Z"?
Yes.
--8<---------------cut here---------------start------------->8---
$ touch -d 2019-02-14T18:23:17.318491822 /sdcard/tmp/foo
touch: '/sdcard/tmp/foo': Operation not permitted
--8<---------------cut here---------------end--------------->8---
> How about if you replace ".31849182" with ".000000000" while keeping
> the "Z"?
Doesn't work.
--8<---------------cut here---------------start------------->8---
$ touch -d 2019-02-14T18:23:17.000000000Z /sdcard/tmp/foo
touch: bad '2019-02-14T18:23:17.000000000': Value too large for defined data type
--8<---------------cut here---------------end--------------->8---
> Can you strace the 'touch' and see what system calls are failing and
> what their arguments are?
There's no strace on my Galaxy.
In older Android versions, most of the coreutils were implemented via
busybox. This has been replaced by toybox:
--8<---------------cut here---------------start------------->8---
$ which touch
/system/bin/touch
$ ls -l /system/bin/touch
lrwxrwxrwx 1 root root 6 2016-03-25 17:04 /system/bin/touch -> toybox
$ toybox --version
0.7.0--android
--8<---------------cut here---------------end--------------->8---
See also <https://lwn.net/Articles/629362/>. tramp-adb.el has already
some few checks for toybox, but not systematically. I suspect we need to
do it better, due to the differences in command parameters, and their
output.
I'm afraid, I'm not an experienced Android developer (tramp-adb.el was
written by somebody else). Any help appreciated!
Best regards, Michael.
next prev parent reply other threads:[~2019-02-15 8:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-14 18:43 fractional file timestamps in tramp-adb Paul Eggert
2019-02-14 20:23 ` Michael Albinus
2019-02-14 23:41 ` Paul Eggert
2019-02-15 8:11 ` Michael Albinus [this message]
2019-02-15 22:37 ` Paul Eggert
2019-02-16 8:33 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zhqxcvyj.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).