Bug 403127 - Moving files across filesystems loses sub-second timestamp
Summary: Moving files across filesystems loses sub-second timestamp
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.53.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-12 06:08 UTC by Jin Liu
Modified: 2022-04-23 08:19 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jin Liu 2019-01-12 06:08:22 UTC
SUMMARY
In dolphin, when cut-and-paste a file from one filesystem to another, mtime is preserved to the second, but the sub-second part is zeroed out.

STEPS TO REPRODUCE
1. 
~ $ touch a
~ $ ls --full-time a
-rw-r--r-- 1 jin users 0 2019-01-12 14:03:02.624385832 +0800 a
~ $ mv a /run/media/jin/sg10/data/
~ $ ls --full-time /run/media/jin/sg10/data/a
-rw-r--r-- 1 jin users 0 2019-01-12 14:03:02.624385832 +0800 /run/media/jin/sg10/data/a

Above shows that both filesystems (ext4) support sub-second timestamp, and mv preserves it.

2. In dolphin, cut&paste /run/media/jin/sg10/data/a back to ~/
3. ~ $ ls --full-time a

OBSERVED RESULT
~ $ ls --full-time a
-rw-r--r-- 1 jin users 0 2019-01-12 14:03:02.000000000 +0800 a

EXPECTED RESULT
~ $ ls --full-time a
-rw-r--r-- 1 jin users 0 2019-01-12 14:03:02.624385832 +0800 a

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.53.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
Comment 1 Jin Liu 2022-04-23 08:19:06 UTC
Seems already fixed in some earlier release.