Bug 1699703

Summary: ctime: Creation of tar file on gluster mount throws warning "file changed as we read it"
Product: [Community] GlusterFS Reporter: Kotresh HR <khiremat>
Component: ctimeAssignee: Kotresh HR <khiremat>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6CC: bugs, nchilaka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-6.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1698078 Environment:
Last Closed: 2019-04-16 10:58:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1698078, 1699709    
Bug Blocks:    

Description Kotresh HR 2019-04-15 03:24:48 UTC
+++ This bug was initially created as a clone of Bug #1698078 +++

Description of problem:
On latest master where ctime feature is enabled by default, creation of tar file throws warning that 'file changed as we read it'

Version-Release number of selected component (if applicable):
mainline

How reproducible:
Always

Steps to Reproduce:
1. Create a replica 1*3 gluster volume and mount it.
2. Untar a file onto gluster mount
   #tar xvf ~/linux-5.0.6.tar.xz -C /gluster-mnt/
3. Create tar file from untarred files
   #mkdir /gluster-mnt/test-untar/
   #cd /gluster-mnt
   #tar -cvf ./test-untar/linux.tar ./linux-5.0.6

Actual results:
Creation of tar file from gluster mount throws warning 'file changed as we read it'

Expected results:
Creation of tar file from gluster mount should not throw any warning.

Additional info:

Comment 1 Worker Ant 2019-04-15 03:28:51 UTC
REVIEW: https://review.gluster.org/22561 (posix/ctime: Fix stat(time attributes) inconsistency during readdirp) posted (#1) for review on release-6 by Kotresh HR

Comment 2 Worker Ant 2019-04-16 10:58:01 UTC
REVIEW: https://review.gluster.org/22561 (posix/ctime: Fix stat(time attributes) inconsistency during readdirp) merged (#2) on release-6 by Shyamsundar Ranganathan

Comment 3 Shyamsundar 2019-04-22 13:33:17 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-6.1, please open a new bug report.

glusterfs-6.1 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] https://lists.gluster.org/pipermail/announce/2019-April/000124.html
[2] https://www.gluster.org/pipermail/gluster-users/