Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Feb 2021 12:42:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253370] Nanoseconds is not supported in stat command
Message-ID:  <bug-253370-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253370

            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: bugs@FreeBSD.org
          Reporter: jifil54609@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%nBir=
th=20
(btime): %SB" /test.txt

Access (atime): Nov 08 23:14:37 2020=20
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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253370-227>