[Bug 254593] Show nanoseconds timestamp in stat command for ZFS (file system)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Mar 27 01:09:14 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254593

            Bug ID: 254593
           Summary: Show nanoseconds timestamp in stat command for ZFS
                    (file system)
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: pof10534 at cuoly.com

Description:

There are users who want to have nanoseconds in stat command, because these
users use file systems like ZFS which internally stores nanosecond timestamps.

https://forums.freebsd.org/threads/how-to-change-the-stat-command-time-format-because-of-nanoseconds.79045/#post-495945


I also agree that it must be displayed as standard.

That means

Current behavior only with stat command:
stat /
159 2 drwxr-xr-x 25 root wheel 1048 512 "Feb 24 19:25:21 2021" "Mar 27 02:39:54
2021" "Mar 27 02:39:54 2021" "Jan  1 00:59:59 1970" 32768 8 0 /


Expected behavior:
stat /
159 2 drwxr-xr-x 25 root wheel 1048 512 

Accessed: "Mar 27 02:39:54.640747015 2021" 
Modified: "Mar 27 02:39:54.640747015 2021" 
Changed:  "Mar 27 02:39:54.640747015 2021" 
Created:  "Jan  1 00:59:59.000000000 1970" 

32768 8 0 /

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list