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

            Bug ID: 253370
           Summary: Nanoseconds is not supported in stat command
           Product: Base System
           Version: 12.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: gnu
          Assignee: b...@freebsd.org
          Reporter: jifil54...@wirese.com

I am using FreeBSD but it does not show nanoseconds for the file with stat
command. The file system is ZFS.

stat -f "Access (atime): %Sa%nModify (mtime): %Sm%nChange (ctime): %Sc%nBirth 
(btime): %SB" /test.txt

Access (atime): Nov 08 23:14:37 2020 
Modify (mtime): Nov 08 23:14:37 2020
Change (ctime): Nov 08 23:14:37 2020
Birth  (btime): Nov 08 23:14:37 2020


When I test with GNU/Linux it supports nanoseconds with stat command.

stat '/test.txt'
File: /test.txt
Size: 0             Blocks: 0
IO Block: 4096   regular empty file
Device: fd00h/64768d    Inode: 11949       Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/liveuser)   Gid: ( 1000/liveuser)
Context: unconfined_u:object_r:user_home_t:s0
Access: 2021-01-28 23:14:03.117698491 +0100
Modify: 2021-01-28 23:14:03.117698491 +0100
Change: 2021-01-28 23:14:03.117698491 +0100
 Birth: 2021-01-28 23:14:03.117698491 +0100

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to