Opened 3 years ago
Last modified 3 years ago
#17241 closed bug
stat command does not display file creation time correctly — at Initial Version
Reported by: | fuhllrdv | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta4 |
Component: | File Systems/BFS | Version: | R1/beta3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
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.
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.