Package: coreutils
Version: 8.23-4
Severity: minor

Dear Maintainer,

Stat does not seem to recognize any timestamps for file birth, even when they
are available and accurate. My filesystem is ext4.

To reproduce, I ran: touch /root/test. Then I ran: stat /root/test. Output:

-------------------------------------------------------------------------------
  File: ‘/root/test’
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: 802h/2050d      Inode: 13          Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2015-07-27 16:05:42.885356874 -0700
Modify: 2015-07-27 16:05:42.885356874 -0700
Change: 2015-07-27 16:05:42.885356874 -0700
 Birth: -
-------------------------------------------------------------------------------

Thereafter I ran: debugfs -R 'stat /root/test' /dev/sda2. Output below:

-------------------------------------------------------------------------------
debugfs 1.42.12 (29-Aug-2014)
Inode: 13   Type: regular    Mode:  0644   Flags: 0x80000
Generation: 840633321    Version: 0x00000000:00000001
User:     0   Group:     0   Size: 0
File ACL: 0    Directory ACL: 0
Links: 1   Blockcount: 0
Fragment:  Address: 0    Number: 0    Size: 0
 ctime: 0x55b6b946:d315e528 -- Mon Jul 27 16:05:42 2015
 atime: 0x55b6b946:d315e528 -- Mon Jul 27 16:05:42 2015
 mtime: 0x55b6b946:d315e528 -- Mon Jul 27 16:05:42 2015
crtime: 0x55b6b946:d315e528 -- Mon Jul 27 16:05:42 2015
Size of extra inode fields: 28
EXTENTS:
-------------------------------------------------------------------------------

The crtime (file birth) timestamp is is there and functioning normally. As far
as I know, this version of stat is supposed to have support for crtime on ext4.
I have not tested any other filesystem types yet.

As a side note, I know running as root is a bad idea, but debugfs complained
when I tried to use it with sudo.


-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages coreutils depends on:
ii  libacl1      2.2.52-2
ii  libattr1     1:2.4.47-2
ii  libc6        2.19-18
ii  libselinux1  2.3-2

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to