Hide Forgot
currently afr returns only a single pathinfo entry (as chosen by read_child child number). For HDFS we need realpath information about all replicas for map/reduce hints api call.
PATCH: http://patches.gluster.com/patch/7705 in master (afr/stripe: collect pathinfo xattrs from all childs)
need same functionality for 3.{2,1} branch
CHANGE: http://review.gluster.com/237 (Change-Id: Iec8b609e66ef21f4fdd6ee2ff3060f0b71d47ca0) merged in release-3.2 by Vijay Bellur (vijay)
On master it is working. But in glusterfs-3.2.4qa2 it works for files, for directories getfattr of the attribute trusted.glusterfs.pathinfo says No such attribute. getfattr -n trusted.glusterfs.pathinfo o/ o/: trusted.glusterfs.pathinfo: No such attribute root@hyperspace:/mnt/client# getfattr -n trusted.glusterfs.pathinfo o/ o/: trusted.glusterfs.pathinfo: No such attribute root@hyperspace:/mnt/client# getfattr -m . -n trusted.glusterfs.pathinfo o/ o/: trusted.glusterfs.pathinfo: No such attribute root@hyperspace:/mnt/client# getfattr -m . -n trusted.glusterfs.pathinfo m # file: m trusted.glusterfs.pathinfo="(<REPLICATE:okpa-replicate-0> <POSIX:hyperspace:/mnt/sda8/export/m> <POSIX:hyperspace:/mnt/sda7/export/m>) root@hyperspace:/mnt/client# getfattr -m . -n trusted.glusterfs.pathinfo o/* getfattr: o/*: No such file or directory root@hyperspace:/mnt/client# touch o/o root@hyperspace:/mnt/client# getfattr -m . -n trusted.glusterfs.pathinfo o/* # file: o/o trusted.glusterfs.pathinfo="(<REPLICATE:okpa-replicate-0> <POSIX:hyperspace:/mnt/sda8/export/o/o> <POSIX:hyperspace:/mnt/sda7/export/o/o>) root@hyperspace:/mnt/client# getfattr -m . -n trusted.glusterfs.pathinfo o o: trusted.glusterfs.pathinfo: No such attribute
This is working fine now. Please reopen if found again. mkdir okpa root@hyperspace:/mnt/client# getfattr -m . -n trusted.glusterfs.pathinfo Usage: getfattr [-hRLP] [-n name|-d] [-e en] [-m pattern] path... Try `getfattr --help' for more information. root@hyperspace:/mnt/client# getfattr -m . -n trusted.glusterfs.pathinfo okpa # file: okpa trusted.glusterfs.pathinfo="(mirror-dht-layout (mirror-client-0 2147483647 4294967295) (mirror-client-1 0 2147483646)) root@hyperspace:/mnt/client# touch l root@hyperspace:/mnt/client# getfattr -m . -n trusted.glusterfs.pathinfo l # file: l trusted.glusterfs.pathinfo="(<DISTRIBUTE:mirror-dht> <POSIX:hyperspace:/mnt/sda8/export1/l>) root@hyperspace:/mnt/client#