RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 591068 - btrfs doesn't update ctime after link/mkfifo/truncate
Summary: btrfs doesn't update ctime after link/mkfifo/truncate
Keywords:
Status: CLOSED DUPLICATE of bug 663749
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Josef Bacik
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks: 584197
TreeView+ depends on / blocked
 
Reported: 2010-05-11 11:20 UTC by Eryu Guan
Modified: 2011-01-12 21:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-12 21:37:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Eryu Guan 2010-05-11 11:20:30 UTC
Description of problem:
When testing btrfs with posix-test-suite, three tests related to ctime failed.
job link: http://rhts.redhat.com/cgi-bin/rhts/jobs.cgi?id=155834

Dig into this problem shows the real cause is btrfs doesn't update ctime after link/mkfifo/truncate operations (as link count/size changed).

Version-Release number of selected component (if applicable):
kernel: 2.6.32-23.el6.x86_64
btrfs-progs: 2.6.32-23.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
schedule /kernel/filesystems/posix-test-suite against to RHEL6
single_package.py \
        -u USERNAME             \
        -S rhts.redhat.com              \
        -a x86_64                    \
        -w "posix test on btrfs"             \
        -t /kernel/filesystems/posix-test-suite \
        --test-params="FSTYP=btrfs" \
        -d RHEL6.0-Snapshot-2 \
        -v Server \
        -i xfsprogs-devel \
        -i e2fsprogs-devel \
        -i libacl-devel \
        -i libattr-devel \
        -i libuuid-devel \
        -i libaio-devel \
        -i perl-Test-Harness \
        -i btrfs-progs
Failed tests are link:56,63 truncate:15

Or you can reproduce this manually
modprobe btrfs
yum install btrfs-progs
wget http://porkchop.devel.redhat.com/qa/rhts/lookaside/pjd-fstest-20080816.tgz
tar xzf pjd-fstest-20080816.tgz
make -C pjd-fstest-20080816
cp pjd-fstest-20080816/fstest /usr/local/bin  # just for convenience

dd if=/dev/null of=/home/img bs=1G seek=5
losetup /dev/loop0 /home/img
mkfs.btrfs /dev/loop0
mkdir -p /mnt/btrfs
mount /dev/loop0 /mnt/btrfs
cd /mnt/btrfs
/path/to/pjd-fstest-20080816/tests/link/00.t
/path/to/pjd-fstest-20080816/tests/truncate/00.t

Or more verbose
fstest create testfile 0644
fstest stat testfile ctime
# a timestamp outputed ctime1
sleep 1
fstest link testfile testfile.link
fstest stat testfile ctime
# another timestamp outputed ctime2

truncate/mkfifo tests are similar
  
Actual results:
ctime1 = ctime2

Expected results:
ctime1 < ctime2

Additional info:

Comment 2 RHEL Program Management 2010-05-11 13:12:21 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Eryu Guan 2010-05-18 05:58:50 UTC
Hi Josef,

How about this bug now?

Comment 4 Josef Bacik 2010-05-18 14:57:42 UTC
I'll get to it, I promise, I'm in the middle of getting DIO/AIO working right, and I have to get it done before the merge window closes, so thats a bit higher on the list atm.

Comment 6 Eryu Guan 2010-05-20 08:23:59 UTC
FYI. Seem that a patch is already sent out.

http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg04992.html

Comment 7 RHEL Program Management 2010-07-15 15:09:00 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release. It has
been denied for the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 10 RHEL Program Management 2011-01-07 04:44:39 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 11 Suzanne Logcher 2011-01-07 16:08:49 UTC
This request was erroneously denied for the current release of Red Hat
Enterprise Linux.  The error has been fixed and this request has been
re-proposed for the current release.

Comment 12 Josef Bacik 2011-01-12 21:37:54 UTC

*** This bug has been marked as a duplicate of bug 663749 ***


Note You need to log in before you can comment on or make changes to this bug.