[PATCH] support for setting file modification times
Reported by Nikias Bassen | October 31st, 2009 @ 02:03 AM | in 1.0 Release
Hi,
it's not really a surprise, but apple built in a new AFC
function for setting
the modification time of a file. I named the function
afc_set_file_time and
the operation AFC_OP_SET_FILE_TIME.
Attached three patches; the first one for libiphone, the second for
ifuse and
the third for gvfs.
Have a good time ;)
Comments and changes to this ticket
-
Martin S. October 31st, 2009 @ 11:29 AM
As usual, awesome stuff!
Some questions though:
- I am not sure if this is rather 1.2.0 material...
- How does this work if ifuse/gvfs-afc attempt to use this on pre 3.1 devices?
-
Matt Colyer November 2nd, 2009 @ 06:02 AM
I don't have strong opinions about waiting or not for 1.0 here so I'll defer to what you guys think is best. It would be good to know what happens on devices that don't support these features though.
-
Nikias Bassen November 2nd, 2009 @ 01:11 PM
I would say it is a non-API/ABI-breaking extension so it is not critical to include the patches.
Concerning the compatibility with pre-3.1 devices: With the above patches an error is reported, e.g. ifuse reports an IO error.
I reworked the patches so that the AFC_E_UNKNOWN_PACKET_TYPE error reported by pre-3.1 devices is ignored. So that the operation seems to success for those devices.I removed the gvfs and ifuse patches from above. The libiphone patch (the one with 0002) remains valid. Attached is the patch for ifuse, I'll forward the gvfs patch directly to the responsible person.
-
Matt Colyer November 3rd, 2009 @ 04:54 AM
- State changed from open to resolved
(from [549f4389e3009d9f78b94d4a3570e29f428968ab]) AFC: new function afc_set_file_time
This function allows to set the modification time of a file. The
time value needs to be specified as nanoseconds since epoch.[#81 state:resolved]
Signed-off-by: Matt Colyer matt@colyer.name
http://github.com/MattColyer/libiphone/commit/549f4389e3009d9f78b94...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A project around supporting the iPhone in Linux.
See http://libimobiledevice.org