I followed the advice of Mr.Walton and let strace monitor the copying of a file 
to a NTFS partition.
The log is attached.

I did the following:
I opened gnome-commander with /data/Antoon/Temp/Test on the left (this is a 
folder on a NTFS partition) and 
/home/antoon/Backup/home/antoon/Pictures/Seville on the right.
I checked the PID of gnome-commander: 7154
>From a terminal window I gave the command:  strace -Ff -tt -p 7154 2>&1 | tee 
>strace-gc-ntfs.log
In gnome-commander I selected the file 1979_Cadillac_Seville_Elegante1.6.jpg 
and copied this file with F5 to the NTFS partition.
After that CTRL-C in the terminal window to stop strace.

What I notice when I try to analyze the log file:

At 11:04:43.416287, a new PID appears: 8752
At 11:04:43.437215 PID 8752 checks if the target folder is OK
At 11:04:43.442787 PID 8752 if the destination file already exists
At 11:04:43.444902 PID 8752 opens the source file
At 11:04:43.445088 PID 8752 opens the destination file
Then I see read / write operations until 11:04:43.479351
At 11:04:43.480918 PID 8752 tries to chmod and ´utime´ the destination file 
(which I understand is not allowed)
[pid  8752] 11:04:43.480918 
chmod("/data/Antoon/Temp/Test/1979_Cadillac_Seville_Elegante1.6.jpg", 0770) = 
-1 EPERM (Operation not permitted)

[pid  8752] 11:04:43.481267
utime("/data/Antoon/Temp/Test/1979_Cadillac_Seville_Elegante1.6.jpg",
[2008/12/25-12:03:21, 2007/11/21-22:19:40]) = -1 EPERM (Operation not
permitted)

Please note that 2007/11/21-22:19:40 was the original timestamp (of the
source file). So here something goes wrong.

I also logged the same copy operation when copying the same file to an Ext3 
partition, then I see that (PID 9053) successfully ends the chmod, chown and 
utime commands:
[pid  9053] 11:56:38.624436 
chmod("/home/antoon/Pictures/Test/1979_Cadillac_Seville_Elegante1.6.jpg", 0770) 
= 0

[pid  9053] 11:56:38.624543
chown("/home/antoon/Pictures/Test/1979_Cadillac_Seville_Elegante1.6.jpg",
1000, 1000) = 0

[pid  9053] 11:56:38.624608
utime("/home/antoon/Pictures/Test/1979_Cadillac_Seville_Elegante1.6.jpg",
[2009/01/11-11:04:43, 2007/11/21-22:19:40]) = 0


** Attachment added: "Strace log"
   http://launchpadlibrarian.net/21100922/strace-gc-ntfs.log

-- 
New timestamp when copying to NTFS partition
https://bugs.launchpad.net/bugs/314860
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to