Bug 1698078

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 NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs, nchilaka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1699703 1699709 (view as bug list) Environment:
Last Closed: 2019-04-15 02:24:17 UTC Type: Bug
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:    
Bug Blocks: 1699703, 1699709    

Description Kotresh HR 2019-04-09 14:55:05 UTC
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-09 14:59:38 UTC
REVIEW: https://review.gluster.org/22540 (posix/ctime: Fix stat(time attributes) inconsistency during readdirp) posted (#1) for review on master by Kotresh HR

Comment 2 Worker Ant 2019-04-15 02:24:17 UTC
REVIEW: https://review.gluster.org/22540 (posix/ctime: Fix stat(time attributes) inconsistency during readdirp) merged (#4) on master by Amar Tumballi