| Summary: | 5b3: stat not showing file's Birth date | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Bit Twister <bittwister2> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | coreutils-8.23-5.mga5 | CVE: | |
| Status comment: | |||
|
Description
Bit Twister
2015-03-20 14:38:57 CET
Bit Twister
2015-03-20 18:50:36 CET
Summary:
5b4: stat not showing file's Birth date =>
5b3: stat not showing file's Birth date This is INVALID. POSIX doesn't mandate that filesystems store a creation time attribute, only modify, access, and change times, and most filesystems only support those three attributes. They are a standard part of the inode structure. A filesystem optionally may store other attributes, such as a creation time, in extended file attributes. AFAIK, most filesystems do not do this. (ZFS and ext4 do) Furthermore, stat works (just as ls does when it reads the timestamps) by using the lstat system call, which is universal on UNIX systems. The lstat call contains a pointer to a stat struct in which the results are returned. This struct only contains slots for an atime, mtime, and ctime. Why the stat output has the "Birth" line is beyond me, but the fact that it's not populated is neither new nor unique. It does the same thing on Mageia 4 and Solaris 11, etc. Solaris 11 does have an ls option for viewing it "ls -l -%all filename," but Linux's doesn't have that. It requires ls to use an additional system call to retrieve the extended file attributes. You can take this up with upstream coreutils if you'd like :o) Status:
NEW =>
RESOLVED (In reply to David Walser from comment #1) > Why the stat output has the "Birth" line is beyond me, http://lists.gnu.org/archive/html/coreutils/2011-10/msg00071.html > but the fact that > it's not populated is neither new nor unique. It does the same thing on > Mageia 4 and Solaris 11, etc. > > You can take this up with upstream coreutils if you'd like :o) coreutils was waiting for xstat patch/update in kernel. Found this https://sourceware.org/ml/libc-alpha/2012-04/msg00711.html Should this bug be reopened with source rpm set to kernel or a new bug report or would still be invalid because Mageia is declared as "only POSIX compliant". It would be invalid because it's not a bug. It's not even an enhancement request in Mageia-land; it is upstream. So if this is ever implemented in the kernel and coreutils, then we'll pick it up once we have the versions of those that make it available. We won't backport it to existing releases. |