[Libreoffice-bugs] [Bug 125401] FILESAVE: Saving a document creates a new file (new inode number) thereby messing-up with the creation time of the document

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jul 9 10:46:03 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=125401

Miklos Vajna <vmiklos at collabora.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTOURBUG

--- Comment #14 from Miklos Vajna <vmiklos at collabora.com> ---
I got back to this and I'm afraid 'cp -a' can't copy the creation time of the
destination document after all.

Here is what I tried:

1) Save test.odt using Writer.

2) Check creation time:

$ sudo debugfs -R "stat $PWD/test.odt" /dev/mapper/system-root | grep crtime
crtime: 0x5d246d4a:24aeed68 -- Tue Jul  9 12:32:42 2019

3) 'cp -a test.odt test2.odt'

4) Check creation time of test2.odt:

$ sudo debugfs -R "stat $PWD/test2.odt" /dev/mapper/system-root | grep crtime
crtime: 0x5d246eaf:7a4c63cc -- Tue Jul  9 12:38:39 2019

Based on this, I still think we can't do much here -> closing, sorry. The
document has meta.xml BTW, which always contains the creation / modification
time, and that is correct.

If it is discovered that there is some sane API we can use, similar to stat()
and S_ISLNK(), then it would make sense to reopen this.

(Marking as "not our bug", given that this works fine on Windows, it's a
shorcoming of the APIs we have available inside #ifdef UNX, I would say.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190709/fa33e06a/attachment.html>


More information about the Libreoffice-bugs mailing list