Bug 802005

Summary: .glusterfs<anything_here> can be created but won't be listed in ls -a
Product: [Community] GlusterFS Reporter: M S Vishwanath Bhat <vbhat>
Component: coreAssignee: M S Vishwanath Bhat <vbhat>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: pre-releaseCC: gluster-bugs, mzywusko
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-13 09:31:28 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:

Description M S Vishwanath Bhat 2012-03-10 07:11:33 UTC
Description of problem:
On the mountpoint, creation of .glusterfs is not permitted, but creation of any directory .glusterfs_hidden or .glusterfs_blah_blah is permitted. So the creation succeeds but won't be listed in ls -a. 

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

How reproducible:
Always

Steps to Reproduce:
1. Create and start any volume.
2. Mount the volume and create a dir called .glusterfs_hidden
3. Run ls -a on mountpoint.
  
Actual results:
.glusterfs_hidden won't be listed.

Expected results:
.glusterfs_hidden directory should be listed in ls -a.

Additional info:

Comment 1 Anand Avati 2012-03-12 06:00:12 UTC
CHANGE: http://review.gluster.com/2910 (posix_fill_readdir: Using strcmp to compare GF_HIDDEN_PATH with entry->d_name instead of strncmp.) merged in master by Vijay Bellur (vijay)

Comment 2 M S Vishwanath Bhat 2012-03-13 09:31:28 UTC
Now the .glusterfs_hidden or .glusterfs_abc can be created and ls -a lists teh entries. Moving to closed upstream.