Bug 403127

Summary: Moving files across filesystems loses sub-second timestamp
Product: [Frameworks and Libraries] frameworks-kio Reporter: Jin Liu <ad.liu.jin>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: elvis.angelaccio, kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 5.53.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.