Bug 174067 - [patch][zfs] the birthtime is always set for st_ctime when getting a file's attributes
Summary: [patch][zfs] the birthtime is always set for st_ctime when getting a file's a...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Xin LI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-02 23:50 UTC by Enji Cooper
Modified: 2013-02-03 22:31 UTC (History)
0 users

See Also:


Attachments
file.diff (737 bytes, patch)
2012-12-02 23:50 UTC, Enji Cooper
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enji Cooper freebsd_committer freebsd_triage 2012-12-02 23:50:00 UTC
As noted by the submitter [1], the crtime attribute is always being incorrectly set to the CTIME (changetime) value.

This regression was committed in the ZFS v28 import [2].

The attached patch fixes the issue.

1. http://lists.freebsd.org/pipermail/freebsd-fs/2012-December/015860.html
2. http://svnweb.freebsd.org/base?view=revision&revision=219089

Fix: Patch attached with submission follows:
How-To-Repeat: - Create a file.
- Change the file.

Note that the birth time changes for the file.
Comment 1 Xin LI freebsd_committer freebsd_triage 2012-12-03 05:02:27 UTC
State Changed
From-To: open->patched

Mark as patched, pending MFC. 


Comment 2 Xin LI freebsd_committer freebsd_triage 2012-12-03 05:02:27 UTC
Responsible Changed
From-To: freebsd-bugs->delphij

Take.
Comment 3 Xin LI freebsd_committer freebsd_triage 2012-12-31 07:12:07 UTC
State Changed
From-To: patched->closed

MFC'ed to 9-STABLE and 8-STABLE.