Hide Forgot
PATCH: http://patches.gluster.com/patch/7873 in release-3.2 (storage/posix: set all keys present in 'params' dict while creating an entry)
PATCH: http://patches.gluster.com/patch/7874 in master (storage/posix: set all keys present in 'params' dict while creating an entry)
The new change bought in for bypassing acl check for setxattr() which used to follow entry creation in few cluster translators by passing those keys with the entry creation API itself is not working because in posix layer we are not handling this.
It is fixed now... I created two files in a 2 node dht set-up and made sure that each of them are in different subvolume. Now when I did mv of one file to other, and did getfattr on the backend of dest file, I get "linkto" extended attributes set to other subvolume. root@tortuga:/mnt# ls file1 file2 file3 file4 root@tortuga:/mnt# ls /tmp/brick* /tmp/brick1: file3 file4 /tmp/brick2: file1 file2 root@tortuga:/mnt# mv file1 file3 root@tortuga:/mnt# ls /tmp/brick* /tmp/brick1: file3 file4 /tmp/brick2: file2 file3 root@tortuga:/mnt# getfattr -d -m trusted /tmp/brick1/file3 getfattr: Removing leading '/' from absolute path names # file: tmp/brick1/file3 trusted.gfid=0sj5duIpP5RUmsZqhB4591uw== trusted.glusterfs.dht.linkto="hosdu-client-1