Bug 763081 (GLUSTER-1349)

Summary: dotfiles do not get distributed evenly
Product: [Community] GlusterFS Reporter: Vikas Gorur <vikas>
Component: distributeAssignee: Anand Avati <aavati>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0.5CC: chrisw, gluster-bugs, vijay
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
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 2010-08-12 22:16:50 UTC
Files whose names begin with a dot (".foo") do not get distributed among the subvolumes. All of them end up on the same subvolume.

This happens with any distribute setup. My test environment is:

4-subvolume distribute over storage/posix

# cd /mnt
# mkdir dot nodot

# cd nodot
# for i in {1..64}; do touch file.$i; done

This created files on the four subvolumes:

subvol 1: 19
subvol 2: 14
subvol 3: 14
subvol 4: 17

# cd dot
# for i in {1..64}; do touch .file.$i; done

subvol 1: 64
subvol 2: 0
subvol 3: 0
subvol 4: 0

This is 100% reproducible. min-free-disk is not a factor. There is ample disk space available, and all four subvolumes reside on the same disk.

Comment 1 Anand Avati 2010-08-13 03:28:57 UTC
This is a feature, not a bug.

See dht-hashfn.c:55:#define MAKE_RSYNC_FRIENDLY_NAME ...