summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/dht-common.h
diff options
context:
space:
mode:
authorN Balachandran <nbalacha@redhat.com>2018-08-31 12:25:32 +0530
committerN Balachandran <nbalacha@redhat.com>2018-09-07 08:55:32 +0000
commit82640b7109ef83ed6cc5054c81d076aa3398d249 (patch)
tree113eb07ecebfcfde321cab1487f09220fe6cf304 /xlators/cluster/dht/src/dht-common.h
parent527dffeb699e5ac857a798d462a3fba4aed3c5a5 (diff)
cluster/dht: Rework the debug xattr to get hashed subvol
The earlier implementation required the file to already exist when trying to get the hashed subvol. The reworked implementation allows a user to get the hashed subvol for any filename, whether it exists or not. Usage: getfattr -n "dht.file.hashed-subvol.<filename>" <parent dir> Eg:To get the hashed subvol for file-1 inside dir-1 getfattr -n "dht.file.hashed-subvol.file-1" /mnt/gluster/dir1 credit: rgowdapp@redhat.com Change-Id: Iae20bd5f56d387ef48c1c0a4ffa9f692866bf739 fixes: bz#1624244 Signed-off-by: N Balachandran <nbalacha@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.h')
-rw-r--r--xlators/cluster/dht/src/dht-common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-common.h b/xlators/cluster/dht/src/dht-common.h
index 2520671e35d..86b3eb3cbd2 100644
--- a/xlators/cluster/dht/src/dht-common.h
+++ b/xlators/cluster/dht/src/dht-common.h
@@ -48,7 +48,8 @@
/* Virtual xattrs for debugging */
-#define DHT_DBG_HASHED_SUBVOL_KEY "dht.file.hashed-subvol"
+#define DHT_DBG_HASHED_SUBVOL_PATTERN "dht.file.hashed-subvol.*"
+#define DHT_DBG_HASHED_SUBVOL_KEY "dht.file.hashed-subvol."
/* Array to hold custom xattr keys