<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:vmiklos@collabora.com" title="Miklos Vajna <vmiklos@collabora.com>"> <span class="fn">Miklos Vajna</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - FILESAVE: Saving a document creates a new file (new inode number) thereby messing-up with the creation time of the document"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=125401">bug 125401</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>NOTOURBUG
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - FILESAVE: Saving a document creates a new file (new inode number) thereby messing-up with the creation time of the document"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=125401#c14">Comment # 14</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - FILESAVE: Saving a document creates a new file (new inode number) thereby messing-up with the creation time of the document"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=125401">bug 125401</a>
from <span class="vcard"><a class="email" href="mailto:vmiklos@collabora.com" title="Miklos Vajna <vmiklos@collabora.com>"> <span class="fn">Miklos Vajna</span></a>
</span></b>
<pre>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.)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>