Bug 761869 (GLUSTER-137)

Summary: Parent directory mtime not reset after a create in self-heal
Product: [Community] GlusterFS Reporter: Vikas Gorur <vikas>
Component: replicateAssignee: Vikas Gorur <vikas>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 2.0.3CC: gluster-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vikas Gorur 2009-07-14 10:42:46 UTC
Whenever a new entry is created during self-heal (whether in entry self heal or directory self heal), the mtime of its parent directory on "sink" nodes will have changed. We need to reset it to be in sync with the "source" node.

Deferring a fix until the protocol and FOP prototypes are changed to include stat info of parent directories (for 2.1).

Comment 1 Anand Avati 2009-10-13 10:23:06 UTC
PATCH: http://patches.gluster.com/patch/1875 in master (posix/client/server: Send postparent in lookup even if lookup fails on the entry itself.)

Comment 2 Anand Avati 2009-10-13 10:23:09 UTC
PATCH: http://patches.gluster.com/patch/1877 in master (cluster/afr: Set mtime of parent directory in self-heal properly.)

Comment 3 Anand Avati 2009-10-22 08:15:46 UTC
PATCH: http://patches.gluster.com/patch/1979 in master (cluster/afr: entry self-heal: Set parent directory's attributes using a new frame.)

Comment 4 Anand Avati 2009-10-22 10:05:15 UTC
PATCH: http://patches.gluster.com/patch/1980 in master (cluster/afr: entry self-heal: Store parent_loc on the heap for impunge_parent_setattr.)

Comment 5 Anand Avati 2009-12-07 10:31:39 UTC
PATCH: http://patches.gluster.com/patch/2600 in master (cluster/afr: Sync the parent directory's mtime during missing entries self-heal.)