Bug 761981 (GLUSTER-249) - Self heal of a file that does not exist on the first subvolume
Summary: Self heal of a file that does not exist on the first subvolume
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-249
Product: GlusterFS
Classification: Community
Component: replicate
Version: mainline
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Vikas Gorur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-07 13:02 UTC by Vikas Gorur
Modified: 2009-11-24 13:23 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-09-07 13:02:47 UTC
Fix this "known issue" in replicate:

 Self-heal of a file that does not exist on the first subvolume:

If a file does not exist on the first subvolume but exists on some other subvolume, it will not show up in the output of 'ls'. This is because the replicate translator fetches the directory listing only from the first subvolume. Thus, the file that does not exist on the first subvolume is never seen and never healed. However, if you know the name of the file and do a 'stat' on the file or try to access it in any other way, the file will be properly healed and created on the first subvolume.

Comment 1 Anand Avati 2009-11-13 07:13:35 UTC
PATCH: http://patches.gluster.com/patch/2194 in master (cluster/dht: Do readdir in dht_readdir instead of readdirp)

Comment 2 Anand Avati 2009-11-13 07:13:38 UTC
PATCH: http://patches.gluster.com/patch/2195 in master (mount/fuse: Do readdirp in fuse_readdir.)

Comment 3 Anand Avati 2009-11-13 07:13:42 UTC
PATCH: http://patches.gluster.com/patch/2196 in master (cluster/afr: Refactored inode context bitmasks.)

Comment 4 Anand Avati 2009-11-13 07:13:46 UTC
PATCH: http://patches.gluster.com/patch/2197 in master (cluster/afr: Ensure directory contents are in sync during opendir.)

Comment 5 Anand Avati 2009-11-19 05:53:01 UTC
PATCH: http://patches.gluster.com/patch/2308 in master (cluster/afr: Handle op_ret properly in opendir_cbk)

Comment 6 Anand Avati 2009-11-24 10:23:03 UTC
PATCH: http://patches.gluster.com/patch/2340 in master (cluster/afr: Fix double-free in opendir self-heal callback.)

Comment 7 Anand Avati 2009-11-24 10:23:07 UTC
PATCH: http://patches.gluster.com/patch/2345 in master (cluster/afr: Fix inode context bitmasks.)


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