#17241: stat command does not display file creation time correctly
-------------------------------+----------------------
Reporter: fuhllrdv | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: R1/beta4
Component: File Systems/BFS | Version: R1/beta3
Resolution: | Keywords:
Blocked By: | Blocking:
Platform: All |
-------------------------------+----------------------
Description changed by fuhllrdv:
Old description:
Under Haiku OS stat command shows for file creation time, at the name
Change. This is not correct. Change is not file creation time.
[[Image(https://i.imgur.com/xeNKlmD.png)]]
Correct is, shows file creation time under Birth.
https://man7.org/linux/man-pages/man2/statx.2.html
{{{
stx_btime
The file's creation timestamp.
}}}
I know that Haiku OS uses the word ctime to indicate file creation time,
https://www.haiku-
os.org/docs/api/classBStatable.html#ac80b82a49b8c757d4bf0034d70c33eb1.
{{{
Fills out ctime with the creation time of the node.
}}}
But Haiku OS ctime is not the same as Linux/Unix ctime.
Linux/Unix ctime means this here.
{{{
stx_ctime
The file's last status change timestamp.
}}}
The first solution is to do the same as with stat command under Linux.
If you don't like the first solution, I recommend to customize stat
command under Haiku OS. That is Birth is removed as a word and Created is
added and what was under Change is transferred to Created. So the user
has the same word (Created) as in Tracker.