Bug 761869 (GLUSTER-137) - Parent directory mtime not reset after a create in self-heal
Summary: Parent directory mtime not reset after a create in self-heal
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-137
Product: GlusterFS
Classification: Community
Component: replicate
Version: 2.0.3
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Vikas Gorur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-14 10:42 UTC by Vikas Gorur
Modified: 2009-12-07 13:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

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.)


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