[Bugme-new] [Bug 33372] New: ecrypts does not preserve correctly timestamps for "cp -p"

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Sat Apr 16 22:18:11 PDT 2011


https://bugzilla.kernel.org/show_bug.cgi?id=33372

           Summary: ecrypts does not preserve correctly timestamps for "cp
                    -p"
           Product: File System
           Version: 2.5
    Kernel Version: 2.6.39-rc3
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: ecryptfs
        AssignedTo: fs_ecryptfs at kernel-bugs.osdl.org
        ReportedBy: rockorequin at hotmail.com
        Regression: Yes


With the 2.6.39-rc3 kernel, assuming I have a file tt in a non-ecryptfs file
system and I do the following:

 mkdir test
 sudo mount -t ecryptfs test test -o
ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_passthrough=n,ecryptfs_enable_filename_crypto=y
 cd test
 cp -p ../tt .

then the recently-copied file 'tt' in ecrypts has its modified timestamp set to
when it was copied rather than that of original file.

This also happens when copying within the ecryptfs system.

Strangely, it doesn't always happen immediately - the timestamp may be correct
for a minute or so - so maybe there is some caching involved.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Bugme-new mailing list