Bug 430819 - Creation time (crtime/btime) is not displayed for devices with these file systems FAT, FAT32, exFAT and NTFS
Summary: Creation time (crtime/btime) is not displayed for devices with these file sys...
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: panels: information (show other bugs)
Version: 20.12.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-26 03:04 UTC by filefolderneon
Modified: 2021-10-22 09:25 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
stat command and Dolphin do not show creation time on a bootable Live USB (588.98 KB, image/png)
2021-01-03 16:46 UTC, filefolderneon
Details
KDE neon installed on the computer with ext4 file system (503.95 KB, image/png)
2021-01-03 17:05 UTC, filefolderneon
Details
External USB flash drive (FAT32) connected to the computer (495.52 KB, image/png)
2021-01-03 17:26 UTC, filefolderneon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description filefolderneon 2020-12-26 03:04:46 UTC
SUMMARY
When users create and use a bootable Live USB (KDE neon) the creation time (crtime/btime) for local folders and files is not displayed in Dolphin. Same problem also when creating a local file and folder in Dolphin.

STEPS TO REPRODUCE
1. Create a bootable Live USB for KDE neon with Etcher 1.5.113. Use for example the Etcher AppImage version.

https://github.com/balena-io/etcher/releases/tag/v1.5.113

2. Then restart the computer and boot the Live USB.

3. Open Dolphin, activate Details view and add "Created" to the column.

4. View a file and folder via column and info. You can also create a .txt file or folder.

5. The creation time (crtime/btime) is not shown, neither in the column nor under info for files and folders. It does not show the timestamp and is empty.



OBSERVED RESULT
A bootable Live USB for KDE neon does not support the display in Dolphin of creation time (crtime/btime) for local folders and files. Support for bootable Live USB is missing.

EXPECTED RESULT
I expect KDE neon to boot from a bootable live USB also showing creation time in Dolphin.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 5.20
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This problem only exists when KDE neon is used on a bootable Live USB.

If KDE neon is installed on a hard disk then this problem does not exist.


The problem is most likely that the KDE neon developers do not use a filesystem that supports creation time (crtime/btime) by default for bootable Live USB. An up-to-date file system should be used for bootable Live USB. Maybe it is also a bug.
Comment 1 Elvis Angelaccio 2020-12-28 21:28:36 UTC
> The problem is most likely that the KDE neon developers do not use a filesystem that supports creation time (crtime/btime) by default for bootable Live USB. An up-to-date file system should be used for bootable Live USB. Maybe it is also a bug.

Right, so there is nothing we can do from the dolphin side, unfortunately.
Comment 2 filefolderneon 2020-12-30 18:33:04 UTC
(In reply to Elvis Angelaccio from comment #1)
> > The problem is most likely that the KDE neon developers do not use a filesystem that supports creation time (crtime/btime) by default for bootable Live USB. An up-to-date file system should be used for bootable Live USB. Maybe it is also a bug.
> 
> Right, so there is nothing we can do from the dolphin side, unfortunately.

Hello,

Part 1:
It is a bug after all. I tested it again and now used rufus on Windows 10 to create a KDE neon bootable Live USB.
https://rufus.ie/

rufus creates FAT32 as file system by default.

I immediately opened Dolphin and created a folder and a .txt file and can confirm that "Created" is not displayed under Properties. When I switch to Details view mode I can manually add "Created" here for the column, but it doesn't show any time, the entry is empty.

Part 2:
After part 1 I just installed KDE neon on my computer and by default ext4 is used as filesystem. Here it shows for the local files and folders "Created" under Properties and in the column the entry is not empty, exactly what I expected, so no problems.

But I have now mounted a USB flash drive with FAT, FAT32 exFAT and NTFS and can confirm that KDE neon does not show "Created". It lacks support for these filesystems.

Note: On Windows 10 File Explorer shows "Date created" files and folders on my USB flash drive (FAT, FAT32, exFAT and NTFS).
Comment 3 Elvis Angelaccio 2021-01-02 18:32:56 UTC
It's not up to dolphin to populate the creation time.

Please run "stat <affected file>" and check whether the creation time is displayed in the output.
Comment 4 filefolderneon 2021-01-03 16:46:18 UTC
Created attachment 134514 [details]
stat command and Dolphin do not show creation time on a bootable Live USB
Comment 5 filefolderneon 2021-01-03 16:46:53 UTC
(In reply to Elvis Angelaccio from comment #3)
> It's not up to dolphin to populate the creation time.
> 
> Please run "stat <affected file>" and check whether the creation time is
> displayed in the output.

Here is a screenshot and I have started KDE neon on a bootable Live USB (FAT32) created with rufus.

You see in the screentshot that I tried a .txt file with the command "stat" and it does not show creation time (Birth time). You also see that I am using Dolphin in Details view mode and "Created" is added to the column. In the column under "Created" there is no entry and when I open the .txt file via Properties the "Created" entry is completely missing.
Comment 6 filefolderneon 2021-01-03 17:05:43 UTC
Created attachment 134515 [details]
KDE neon installed on the computer with ext4 file system

Here is another screenshot. I have installed KDE neon on the computer and by default ext4 is used as the file system.

I have used Dolphin in Details view mode and "Created" is already added in column. Then I show the .txt file and it shows creation time in the column and under Properties.

But when I use stat command it doesn't show creation time (Birth time) because most likely there is a bug in KDE neon.

Additional information:
I later edited the same .txt file, added some words and saved it. Then checked again if the timestamps are updated and as expected only modified time was updated. Creation time was not updated to the same time as modified time. This is logical and correct.
Comment 7 filefolderneon 2021-01-03 17:26:25 UTC
Created attachment 134517 [details]
External USB flash drive (FAT32) connected to the computer

KDE neon is already installed on the computer. Here I have mounted an external USB flash drive (FAT32) and the creation time is not displayed.

Additional information:
Same problem with FAT, exFAT and NTFS external USB flash drive.

If I do the same here with Windows 10, it works, it shows the creation time on the external USB flash drive.
Comment 8 Méven Car 2021-10-22 09:25:10 UTC
(In reply to filefolderneon from comment #7)

> Here is a screenshot and I have started KDE neon on a bootable Live USB (FAT32) created with rufus.

> You see in the screentshot that I tried a .txt file with the command "stat" and it does not show creation time (Birth time). You also > see that I am using Dolphin in Details view mode and "Created" is added to the column. In the column under "Created" there is no > entry and when I open the .txt file via Properties the "Created" entry is completely missing.

Then the type of the mounted filesystem is not FAT32 but squashfs itself mounted from the FAT32 partition.

> Created attachment 134517 [details]
> External USB flash drive (FAT32) connected to the computer
> 
> KDE neon is already installed on the computer. Here I have mounted an
> external USB flash drive (FAT32) and the creation time is not displayed.
> 
> Additional information:
> Same problem with FAT, exFAT and NTFS external USB flash drive.
> 
> If I do the same here with Windows 10, it works, it shows the creation time
> on the external USB flash drive.

https://gitlab.gnome.org/GNOME/nautilus/-/issues/1734 is a good reference.
or https://www.reddit.com/r/linuxquestions/comments/fycd7q/date_created_on_linux/

tldr; Linux usually has 4 timestamps, the third one being "metadata change time" and Window has three the third being "creation time".
And statx does not differentiate the field depending on the filesystem, and the filesystem implementation does not expose this either or at least not correctly.

We could handle it at our end though, but currently our file access implementation does not know the fs type it operates on.
But really we would want an upstream fix in the Kernel.