From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: fractional file timestamps in tramp-adb Date: Fri, 15 Feb 2019 09:11:32 +0100 Message-ID: <87zhqxcvyj.fsf@gmx.de> References: <281200e8-bc54-e390-94f8-895345af524c@cs.ucla.edu> <878syidsrf.fsf@gmx.de> <27d01654-9b2e-3bf2-7eca-146854b68a0c@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="202582"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Emacs development discussions To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 15 09:12:05 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guYbM-000qaa-Pt for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2019 09:12:04 +0100 Original-Received: from localhost ([127.0.0.1]:34159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guYbL-0003dB-M0 for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2019 03:12:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guYbG-0003aw-2Z for emacs-devel@gnu.org; Fri, 15 Feb 2019 03:11:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guYbE-0002Fu-O9 for emacs-devel@gnu.org; Fri, 15 Feb 2019 03:11:57 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:58431) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1guYbE-0001b6-Cw for emacs-devel@gnu.org; Fri, 15 Feb 2019 03:11:56 -0500 Original-Received: from detlef.gmx.de ([212.86.59.221]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0ML72n-1gupi313zt-000PFd; Fri, 15 Feb 2019 09:11:34 +0100 In-Reply-To: <27d01654-9b2e-3bf2-7eca-146854b68a0c@cs.ucla.edu> (Paul Eggert's message of "Thu, 14 Feb 2019 15:41:31 -0800") X-Provags-ID: V03:K1:VugBfziDuG7Uc3h/QTMlAUSMTkAFSIgOIGTSTx2FC4mIFjcm07s Udzch1T17NaDPjts5zg09Tb83VOC0YU97JngEa6CQAzUfz8DziReNq/0v1i0hZVgpHnry9l rYJ7E8bJBKro6+jXRF03ZlyAsUQFSM6wIkp/Y+Te9phKF3BO1Oe+xJAz73i/BxI90321eSV 6Nyk9Y9UPu+sJpRhAR2UA== X-UI-Out-Filterresults: notjunk:1;V03:K0:oKvw23PjuXM=:sia8bbIKrGl5qfg1WlKyHe 4OmVN0qMOUDVmlEP/2BXEHvnnvkHvBdWFaz7UFvH7xX9Yzx0/4OeT9quQs07/GVZBLqKNgMyO nqKMiU22yaIFfnEFGOf0Y7ujF1OugT5JqSuzugVEcCdqgy/gujEE4/i+vk8wzijNf9D95H69j dspVKKGO1u8QdlU0YkgJMbXIsAuaRAdjGS+GMhTSR79SmT4yBHlsDiyUxu/zMdbXYLMk3Lahl AXpy8SrEP3k2DMssPk/go+/GdP168A89gonztKmAwNhwGai6CyMFqweo7InWWK3RqWlx0aEXX K3v/Bafoh0sRPu/4QRfYWaZUBpZDApfgR4M67r30Mnm7u4vrgJjO+EXbvuKTQGZ8hM9X92vwl HOrLEvl2tBpV5z6w/uojM1zqNU9oKVyCVmRACjZulgEUrOnncReLn3pRfnv9EclNpGUyIVIwj TaK1y+Kg8/X7tKxQoFEUgeePuDIH+cjCmAGKC/m6M2FL2zKbvPMVO92QrqB3SfeJ99aA8B4r0 uiBwH0E/pPXyEwjurXr/goGdlXjN1QExsRAco50DZpy/Ff3KkZJ/fA/ODVge1Wlpaf0HziJvf f8MvkJxPt44wJtsK9KCBjPMXyKYdqwpmMk7GoHTtF6Vub2YRJHFbBSGJulWDcBGsC/hmCsWP7 61ZT7TSJRpsJHy7VExpnKeJ0FqaPysKpMv0bQLpmchmS7yMh7B4HlF8fdqTUhJN5oekj5ZaCU nFyj9cvV8Ohm1RDxPyZhkHwjkGPQCgw+6BXVSQtovCyS9uIn9ziad1XZ5aKEy/nbp/kBAxNf X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233356 Archived-At: Paul Eggert 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 . 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.