touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #127477
[Bug 997093] Re: stat does not display ext4 crtime
** Bug watch added: Debian Bug tracker #793831
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=793831
** Also affects: coreutils (Debian) via
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=793831
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/997093
Title:
stat does not display ext4 crtime
Status in coreutils package in Ubuntu:
Confirmed
Status in coreutils package in Debian:
Unknown
Bug description:
This is an Oneiric install which was upgraded to Precise.
-(cmsj@kiryo)-(~)- mount | head -1
/dev/sda1 on / type ext4 (rw,noatime,errors=remount-ro)
Note that / is mounted as ext4
-(cmsj@kiryo)-(~)- rm /tmp/statlol
-(cmsj@kiryo)-(~)- date
Wed May 9 13:50:18 BST 2012
-(cmsj@kiryo)-(~)- touch /tmp/statlol
-(cmsj@kiryo)-(~)- stat -c "%w" /tmp/statlol
-
This should have shown the current time as the "birth" time of the
file.
-(cmsj@kiryo)-(~)- stat /tmp/statlol
File: `/tmp/statlol'
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 801h/2049d Inode: 396056 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/ cmsj) Gid: ( 1000/ cmsj)
Access: 2012-05-09 13:50:21.927574000 +0100
Modify: 2012-05-09 13:50:21.927574000 +0100
Change: 2012-05-09 13:50:21.927574000 +0100
Birth: -
Full stat output shows that all other time fields are shown, but
"Birth" (crtime) is not.
-(cmsj@kiryo)-(~)- sudo debugfs -R 'stat /tmp/statlol' /dev/sda1
Inode: 396056 Type: regular Mode: 0664 Flags: 0x80000
Generation: 4155105282 Version: 0x00000000:00000001
User: 1000 Group: 1000 Size: 0
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 0
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x4faa680d:dd269fc0 -- Wed May 9 13:50:21 2012
atime: 0x4faa680d:dd269fc0 -- Wed May 9 13:50:21 2012
mtime: 0x4faa680d:dd269fc0 -- Wed May 9 13:50:21 2012
crtime: 0x4faa680d:dd269fc0 -- Wed May 9 13:50:21 2012
Size of extra inode fields: 28
EXTENTS:
-(cmsj@kiryo)-(~)-
Calling stat() directly with debugfs shows that crtime is indeed
populated correctly, which suggests that coreutils' stat(1) is not
able to display it correctly.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: coreutils 8.13-3ubuntu3
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic i686
ApportVersion: 2.0.1-0ubuntu6
Architecture: i386
Date: Wed May 9 13:49:31 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
ProcEnviron:
LANGUAGE=en_GB:en
TERM=xterm
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: coreutils
UpgradeStatus: Upgraded to precise on 2012-04-11 (28 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/997093/+subscriptions