/*
  Copyright (c) 2013 Red Hat, Inc. <http://www.redhat.com>
  This file is part of GlusterFS.

  This file is licensed to you under your choice of the GNU Lesser
  General Public License, version 3 or any later version (LGPLv3 or
  later), or the GNU General Public License, version 2 (GPLv2), in all
  cases as published by the Free Software Foundation.
*/

#ifndef _DHT_MESSAGES_H_
#define _DHT_MESSAGES_H_

#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif

#include "glfs-message-id.h"



/* NOTE: Rules for message additions
 * 1) Each instance of a message is _better_ left with a unique message ID, even
 *    if the message format is the same. Reasoning is that, if the message
 *    format needs to change in one instance, the other instances are not
 *    impacted or the new change does not change the ID of the instance being
 *    modified.
 * 2) Addition of a message,
 *       - Should increment the GLFS_NUM_MESSAGES
 *       - Append to the list of messages defined, towards the end
 *       - Retain macro naming as glfs_msg_X (for redability across developers)
 * NOTE: Rules for message format modifications
 * 3) Check across the code if the message ID macro in question is reused
 *    anywhere. If reused then then the modifications should ensure correctness
 *    everywhere, or needs a new message ID as (1) above was not adhered to. If
 *    not used anywhere, proceed with the required modification.
 * NOTE: Rules for message deletion
 * 4) Check (3) and if used anywhere else, then cannot be deleted. If not used
 *    anywhere, then can be deleted, but will leave a hole by design, as
 *    addition rules specify modification to the end of the list and not filling
 *    holes.
 */

#define GLFS_COMP_BASE          GLFS_MSGID_COMP_DHT
#define GLFS_NUM_MESSAGES       218
#define GLFS_MSGID_END          (GLFS_COMP_BASE + GLFS_NUM_MESSAGES + 1)

/* Messages with message IDs */

#define dht_msg_start_x GLFS_COMP_BASE, "Invalid: Start of messages"

#define dht_msg_1       (GLFS_COMP_BASE + 1), "Alloc or fill failure"
#define dht_msg_2       (GLFS_COMP_BASE + 2), "Attempting to migrate hardlink %s with gfid %s from %s -> %s"
#define dht_msg_3       (GLFS_COMP_BASE + 3), "Cannot create linkfile file for %s on %s: hashed subvolume cannot be found."
#define dht_msg_4       (GLFS_COMP_BASE + 4), "Cannot parse glusterd node uuid"
#define dht_msg_5       (GLFS_COMP_BASE + 5), "Cannot parse rebalance-filter (%s)"
#define dht_msg_6       (GLFS_COMP_BASE + 6), "Catastrophic error layout with unknown type found %d"
#define dht_msg_7       (GLFS_COMP_BASE + 7), "Check \"scheduler.switch.case\" option in unify volume. Exiting."
#define dht_msg_8       (GLFS_COMP_BASE + 8), "Child loc build failed"
#define dht_msg_9       (GLFS_COMP_BASE + 9), "chown failed for %s on %s (%s)"
#define dht_msg_10      (GLFS_COMP_BASE + 10), "Compiling regex %s failed"
#define dht_msg_11      (GLFS_COMP_BASE + 11), "Completed migration of %s from subvolume %s to %s"
#define dht_msg_12      (GLFS_COMP_BASE + 12), "Could not create task for rebalance"
#define dht_msg_13      (GLFS_COMP_BASE + 13), "Could not find hostname (%s)"
#define dht_msg_14      (GLFS_COMP_BASE + 14), "Could not set ACL_ACCESS xattr"
#define dht_msg_15      (GLFS_COMP_BASE + 15), "Could not set ACL_DEFAULT xattr"
#define dht_msg_16      (GLFS_COMP_BASE + 16), "Could not set pre-set layout for subvolume %s"
#define dht_msg_17      (GLFS_COMP_BASE + 17), "Couldn't find a local brick"
#define dht_msg_18      (GLFS_COMP_BASE + 18), "Creating %s on %s (got create on %s)"
#define dht_msg_19      (GLFS_COMP_BASE + 19), "Dangling volume. check volfile"
#define dht_msg_20      (GLFS_COMP_BASE + 20), "Data movement attempted from node (%s) with higher disk space to a node (%s) with lesser disk space (%s)"
#define dht_msg_21      (GLFS_COMP_BASE + 21), "Data movement attempted from node (%s) with to node (%s) which does not have required free space for %s"
#define dht_msg_22      (GLFS_COMP_BASE + 22), "Data to bin failed"
#define dht_msg_23      (GLFS_COMP_BASE + 23), "Decommissioning subvolume %s"
#define dht_msg_24      (GLFS_COMP_BASE + 24), "Deleting stale linkfile %s on %s"
#define dht_msg_25      (GLFS_COMP_BASE + 25), "dht aggregate dict set failed"
#define dht_msg_26      (GLFS_COMP_BASE + 26), "Dict is NULL, need to make sure gfids are same"
#define dht_msg_27      (GLFS_COMP_BASE + 27), "dict_new failed"
#define dht_msg_28      (GLFS_COMP_BASE + 28), "Dict set failed"
#define dht_msg_29      (GLFS_COMP_BASE + 29), "Disk layout has invalid count %d"
#define dht_msg_30      (GLFS_COMP_BASE + 30), "Disk space on subvolume '%s' is getting full (%.2f %%), consider adding more nodes"
#define dht_msg_31      (GLFS_COMP_BASE + 31), "Distribute needs more than one subvolume"
#define dht_msg_32      (GLFS_COMP_BASE + 32), "%d subvolumes down -- not fixing"
#define dht_msg_33      (GLFS_COMP_BASE + 33), "%d subvolumes have unrecoverable errors"
#define dht_msg_34      (GLFS_COMP_BASE + 34), "Error no layout on disk for merge"
#define dht_msg_35      (GLFS_COMP_BASE + 35), "Error while finding anomalies in %s -- not good news"
#define dht_msg_36      (GLFS_COMP_BASE + 36), "Failed lookup %s on %s (%s)"
#define dht_msg_37      (GLFS_COMP_BASE + 37), "Failed to create fd"
#define dht_msg_38      (GLFS_COMP_BASE + 38), "Failed to create local_t's memory pool"
#define dht_msg_39      (GLFS_COMP_BASE + 39), "Failed to create %s on %s (%s)"
#define dht_msg_40      (GLFS_COMP_BASE + 40), "Failed to fstat file %s on %s (%s)"
#define dht_msg_41      (GLFS_COMP_BASE + 41), "Failed to get cached subvol for %s"
#define dht_msg_42      (GLFS_COMP_BASE + 42), "Failed to get cached subvol for %s on %s"
#define dht_msg_43      (GLFS_COMP_BASE + 43), "Failed to get disk info from %s"
#define dht_msg_44      (GLFS_COMP_BASE + 44), "Failed to get hashed subvol for %s"
#define dht_msg_45      (GLFS_COMP_BASE + 45), "Failed to get hashed subvol for %s on %s"
#define dht_msg_46      (GLFS_COMP_BASE + 46), "Failed to get linkto subvol for %s"
#define dht_msg_47      (GLFS_COMP_BASE + 47), "Failed to get node-uuid for %s"
#define dht_msg_48      (GLFS_COMP_BASE + 48), "Failed to get node-uuid from dict for %s"
#define dht_msg_49      (GLFS_COMP_BASE + 49), "Failed to get statfs of %s on %s (%s)"
#define dht_msg_50      (GLFS_COMP_BASE + 50), "Failed to link the layout in inode"
#define dht_msg_51      (GLFS_COMP_BASE + 51), "Failed to lookup %s on %s (%s)"
#define dht_msg_52      (GLFS_COMP_BASE + 52), "Failed to open dir %s"
#define dht_msg_53      (GLFS_COMP_BASE + 53), "Failed to open file %s on %s (%s)"
#define dht_msg_54      (GLFS_COMP_BASE + 54), "Failed to open %s on %s"
#define dht_msg_55      (GLFS_COMP_BASE + 55), "Failed to open the fd (%p, flags=0%o) on file %s @ %s"
#define dht_msg_56      (GLFS_COMP_BASE + 56), "Failed to send open the fd (%p, flags=0%o) on file %s @ %s"
#define dht_msg_56      (GLFS_COMP_BASE + 56), "Failed to send open the fd (%p, flags=0%o) on file %s @ %s"
#define dht_msg_57      (GLFS_COMP_BASE + 57), "Failed to set dict str"
#define dht_msg_58      (GLFS_COMP_BASE + 58), "Failed to set dict value."
#define dht_msg_59      (GLFS_COMP_BASE + 59), "Failed to set dict value for %s"
#define dht_msg_60      (GLFS_COMP_BASE + 60), "Failed to set failure count"
#define dht_msg_61      (GLFS_COMP_BASE + 61), "Failed to set file count"
#define dht_msg_62      (GLFS_COMP_BASE + 62), "Failed to set internal dict key for %s"
#define dht_msg_63      (GLFS_COMP_BASE + 63), "Failed to set key %s"
#define dht_msg_64      (GLFS_COMP_BASE + 64), "Failed to set layout for subvol %s"
#define dht_msg_65      (GLFS_COMP_BASE + 65), "Failed to set layout for subvolume %s"
#define dht_msg_66      (GLFS_COMP_BASE + 66), "Failed to set linkto key"
#define dht_msg_67      (GLFS_COMP_BASE + 67), "Failed to set linkto key in dict"
#define dht_msg_68      (GLFS_COMP_BASE + 68), "Failed to set linkto xattr in dict for %s"
#define dht_msg_69      (GLFS_COMP_BASE + 69), "Failed to set lookedup file count"
#define dht_msg_70      (GLFS_COMP_BASE + 70), "Failed to set marker dont account key for %s"
#define dht_msg_71      (GLFS_COMP_BASE + 71), "Failed to set mode on %s in %s (%s)"
#define dht_msg_72      (GLFS_COMP_BASE + 72), "Failed to set quota limit key on %s"
#define dht_msg_73      (GLFS_COMP_BASE + 73), "Failed to set run-time"
#define dht_msg_74      (GLFS_COMP_BASE + 74), "Failed to set size of xfer"
#define dht_msg_75      (GLFS_COMP_BASE + 75), "Failed to set '%s' key"
#define dht_msg_76      (GLFS_COMP_BASE + 76), "Failed to set skipped file count"
#define dht_msg_77      (GLFS_COMP_BASE + 77), "Failed to set status"
#define dht_msg_78      (GLFS_COMP_BASE + 78), "Failed to set uid/gid on %s on %s subvol (%s)"
#define dht_msg_79      (GLFS_COMP_BASE + 79), "Failed to set xattr in dict for %s (linkto:%s)"
#define dht_msg_80      (GLFS_COMP_BASE + 80), "Failed to set xattr on %s in %s (%s)"
#define dht_msg_81      (GLFS_COMP_BASE + 81), "Failed to unlink listener socket %s, error: %s"
#define dht_msg_82      (GLFS_COMP_BASE + 82), "Failed to write (%s)"
#define dht_msg_83      (GLFS_COMP_BASE + 83), "File %s exists in %s with different gfid"
#define dht_msg_84      (GLFS_COMP_BASE + 84), "Files migrated: %"PRIu64", size: %" PRIu64", lookups: %"PRIu64", failures: %"PRIu64", skipped: %"PRIu64
#define dht_msg_85      (GLFS_COMP_BASE + 85), "Fixing the layout of %s"
#define dht_msg_86      (GLFS_COMP_BASE + 86), "Fix layout failed for %s"
#define dht_msg_87      (GLFS_COMP_BASE + 87), "Fix layout on %s failed"
#define dht_msg_88      (GLFS_COMP_BASE + 88), "Found anomalies in %s. holes=%d overlaps=%d"
#define dht_msg_89      (GLFS_COMP_BASE + 89), "Found local subvol, %s"
#define dht_msg_90      (GLFS_COMP_BASE + 90), "ftruncate failed for %s on %s (%s)"
#define dht_msg_91      (GLFS_COMP_BASE + 91), "getxattr err (%s) for dir"
#define dht_msg_92      (GLFS_COMP_BASE + 92), "Got non-linkfile %s:%s"
#define dht_msg_93      (GLFS_COMP_BASE + 93), "Hash computation failed for type=%d name=%s"
#define dht_msg_94      (GLFS_COMP_BASE + 94), "inodes on subvolume '%s' are at (%.2f %%), consider adding more nodes"
#define dht_msg_95      (GLFS_COMP_BASE + 95), "Invalid number format \"%s\""
#define dht_msg_96      (GLFS_COMP_BASE + 96), "Layout is NULL"
#define dht_msg_97      (GLFS_COMP_BASE + 97), "Layout merge from subvolume %s failed"
#define dht_msg_98      (GLFS_COMP_BASE + 98), "Linkfile found in revalidate for %s"
#define dht_msg_99      (GLFS_COMP_BASE + 99), "Linkfile not having link subvolume. path=%s"
#define dht_msg_100     (GLFS_COMP_BASE + 100), "Link/file %s on %s failed (%s)"
#define dht_msg_101     (GLFS_COMP_BASE + 101), "link of %s -> %s failed on  subvol %s (%s)"
#define dht_msg_102     (GLFS_COMP_BASE + 102), "Linkto setxattr failed %s -> %s (%s)"
#define dht_msg_103     (GLFS_COMP_BASE + 103), "!local, should not happen"
#define dht_msg_104     (GLFS_COMP_BASE + 104), "loc->gfid is NULL for %s"
#define dht_msg_105     (GLFS_COMP_BASE + 105), "loc->pargfid is NULL for %s"
#define dht_msg_106     (GLFS_COMP_BASE + 106), "Lookup failed on %s"
#define dht_msg_107     (GLFS_COMP_BASE + 107), "Lookup of %s on %s (following linkfile) failed (%s)"
#define dht_msg_108     (GLFS_COMP_BASE + 108), "Lookup of %s on %s (following linkfile) reached dir"
#define dht_msg_109     (GLFS_COMP_BASE + 109), "Lookup of %s on %s (following linkfile) reached link"
#define dht_msg_110     (GLFS_COMP_BASE + 110), "Look up on / failed"
#define dht_msg_111     (GLFS_COMP_BASE + 111), "Memory accounting init failed"
#define dht_msg_112     (GLFS_COMP_BASE + 112), "Memory allocation failed"
#define dht_msg_113     (GLFS_COMP_BASE + 113), "migrate data called on %s"
#define dht_msg_114     (GLFS_COMP_BASE + 114), "migrate-data failed for %s"
#define dht_msg_115     (GLFS_COMP_BASE + 115), "migrate-data on %s failed: %s"
#define dht_msg_116     (GLFS_COMP_BASE + 116), "Migration of file:%s size:%"PRIu64" bytes took %.2f secs"
#define dht_msg_117     (GLFS_COMP_BASE + 117), "Migration operation on dir %s took %.2f secs"
#define dht_msg_118     (GLFS_COMP_BASE + 118), "Mismatching filetypes 0%o v/s 0%o for %s"
#define dht_msg_119     (GLFS_COMP_BASE + 119), "Mismatching layouts for %s"
#define dht_msg_120     (GLFS_COMP_BASE + 120), "Multiple subvolumes (%s and %s) have file %s (preferably rename the file in the backend, and do a fresh lookup)"
#define dht_msg_121     (GLFS_COMP_BASE + 121), "No cached subvolume for path=%s"
#define dht_msg_122     (GLFS_COMP_BASE + 122), "node-uuid not specified"
#define dht_msg_123     (GLFS_COMP_BASE + 123), "No nodes left for pattern '*'. Exiting"
#define dht_msg_124     (GLFS_COMP_BASE + 124), "No pre-set layout for subvolume %s"
#define dht_msg_125     (GLFS_COMP_BASE + 125), "No subvolume for hash (value) = %u"
#define dht_msg_126     (GLFS_COMP_BASE + 126), "No subvolume in layout for path=%s"
#define dht_msg_127     (GLFS_COMP_BASE + 127), "Not able to form layout for the directory"
#define dht_msg_128     (GLFS_COMP_BASE + 128), "One of the subvolumes down (%s)"
#define dht_msg_129     (GLFS_COMP_BASE + 129), "opendir on %s for %s failed (%s)"
#define dht_msg_130     (GLFS_COMP_BASE + 130), "Path %s exists as a file on one subvolume and directory on another."
#define dht_msg_131     (GLFS_COMP_BASE + 131), "'*' pattern will be taken by default for all the unconfigured child nodes hence neglecting current option"
#define dht_msg_132     (GLFS_COMP_BASE + 132), "Readdir returned %s. Aborting fix-layout"
#define dht_msg_133     (GLFS_COMP_BASE + 133), "Readdir returned %s. Aborting migrate-data"
#define dht_msg_134     (GLFS_COMP_BASE + 134), "Readdir returned %s. Aborting migrate-data"
#define dht_msg_135     (GLFS_COMP_BASE + 135), "Rebalance is %s. Time taken is %.2f secs"
#define dht_msg_136     (GLFS_COMP_BASE + 136), "Received CHILD_DOWN. Exiting"
#define dht_msg_137     (GLFS_COMP_BASE + 137), "Received stop command on rebalance"
#define dht_msg_138     (GLFS_COMP_BASE + 138), "Reconfigure: lookup-unhashed should be boolean, not (%s), defaulting to (%d)"
#define dht_msg_139     (GLFS_COMP_BASE + 139), "Rename %s -> %s on %s failed (%s)"
#define dht_msg_140     (GLFS_COMP_BASE + 140), "%s: attempting to move from %s to %s"
#define dht_msg_141     (GLFS_COMP_BASE + 141), "%s: creating symlink failed (%s)"
#define dht_msg_142     (GLFS_COMP_BASE + 142), "%s - disk layout has invalid count %d"
#define dht_msg_143     (GLFS_COMP_BASE + 143), "%s - disk layout missing"
#define dht_msg_144     (GLFS_COMP_BASE + 144), "selfhealing directory %s failed: %s"
#define dht_msg_145     (GLFS_COMP_BASE + 145), "setattr of uid/gid on %s :<gfid:%s> failed (%s)"
#define dht_msg_146     (GLFS_COMP_BASE + 146), "Setxattr failed for %s"
#define dht_msg_147     (GLFS_COMP_BASE + 147), "%s: failed to create a new synctask"
#define dht_msg_148     (GLFS_COMP_BASE + 148), "%s: failed to delete the linkfile (%s)"
#define dht_msg_149     (GLFS_COMP_BASE + 149), "%s: failed to do a stat on %s (%s)"
#define dht_msg_150     (GLFS_COMP_BASE + 150), "%s: failed to fsync on %s (%s)"
#define dht_msg_151     (GLFS_COMP_BASE + 151), "%s: failed to get "GF_XATTR_LINKINFO_KEY" key - %s"
#define dht_msg_152     (GLFS_COMP_BASE + 152), "%s: failed to get the destination node"
#define dht_msg_153     (GLFS_COMP_BASE + 153), "%s: failed to get the 'linkto' xattr from dict"
#define dht_msg_154     (GLFS_COMP_BASE + 154), "%s: failed to get the 'linkto' xattr %s"
#define dht_msg_155     (GLFS_COMP_BASE + 155), "%s: failed to get xattr from %s (%s)"
#define dht_msg_156     (GLFS_COMP_BASE + 156), "%s: failed to initialize linkfile data"
#define dht_msg_157     (GLFS_COMP_BASE + 157), "%s: failed to lookup file (%s)"
#define dht_msg_158     (GLFS_COMP_BASE + 158), "%s: failed to lookup the file on %s"
#define dht_msg_159     (GLFS_COMP_BASE + 159), "%s: failed to merge layouts"
#define dht_msg_160     (GLFS_COMP_BASE + 160), "%s: failed to migrate data"
#define dht_msg_161     (GLFS_COMP_BASE + 161), "%s: failed to migrate file with link"
#define dht_msg_162     (GLFS_COMP_BASE + 162), "%s: failed to perform removexattr on %s (%s)"
#define dht_msg_163     (GLFS_COMP_BASE + 163), "%s: failed to perform setattr on %s (%s)"
#define dht_msg_164     (GLFS_COMP_BASE + 164), "%s: failed to perform truncate on %s (%s)"
#define dht_msg_165     (GLFS_COMP_BASE + 165), "%s: failed to perform unlink on %s (%s)"
#define dht_msg_166     (GLFS_COMP_BASE + 166), "%s: failed to reset target size back to 0 (%s)"
#define dht_msg_167     (GLFS_COMP_BASE + 167), "%s: failed to set gfid"
#define dht_msg_168     (GLFS_COMP_BASE + 168), "%s: failed to set gfid in dict"
#define dht_msg_169     (GLFS_COMP_BASE + 169), "%s: failed to set gfid in dict for create"
#define dht_msg_170     (GLFS_COMP_BASE + 170), "%s: failed to set inode ctx"
#define dht_msg_171     (GLFS_COMP_BASE + 171), "%s: failed to set inode-ctx target file at %s"
#define dht_msg_172     (GLFS_COMP_BASE + 172), "%s: failed to set layout for subvol %s"
#define dht_msg_173     (GLFS_COMP_BASE + 173), "%s: failed to set 'linkto' key in dict"
#define dht_msg_174     (GLFS_COMP_BASE + 174), "%s: failed to set '%s' key"
#define dht_msg_175     (GLFS_COMP_BASE + 175), "%s: failed to set the new layout"
#define dht_msg_176     (GLFS_COMP_BASE + 176), "%s: failed to set xattr on %s (%s)"
#define dht_msg_177     (GLFS_COMP_BASE + 177), "%s: fd create failed (destination) (%s)"
#define dht_msg_178     (GLFS_COMP_BASE + 178), "%s: fd create failed (source)"
#define dht_msg_179     (GLFS_COMP_BASE + 179), "%s: file exists in destination"
#define dht_msg_180     (GLFS_COMP_BASE + 180), "%s: file has hardlinks"
#define dht_msg_181     (GLFS_COMP_BASE + 181), "%s found on cached subvol %s"
#define dht_msg_182     (GLFS_COMP_BASE + 182), "%s: gfid different on data file on %s"
#define dht_msg_183     (GLFS_COMP_BASE + 183), "%s: gfid different on %s"
#define dht_msg_184     (GLFS_COMP_BASE + 184), "%s: gfid different on the target file on %s"
#define dht_msg_185     (GLFS_COMP_BASE + 185), "%s: gfid differs on subvolume %s"
#define dht_msg_186     (GLFS_COMP_BASE + 186), "%s: gfid set failed"
#define dht_msg_187     (GLFS_COMP_BASE + 187), "%s: internal-fop set failed"
#define dht_msg_188     (GLFS_COMP_BASE + 188), "%s is not a subvolume of %s. pattern can only be scheduled only to a subvolume of %s"
#define dht_msg_189     (GLFS_COMP_BASE + 189), "%s lookup failed"
#define dht_msg_190     (GLFS_COMP_BASE + 190), "%s: lookup failed on %s (%s)"
#define dht_msg_191     (GLFS_COMP_BASE + 191), "%s: lookup failed (%s)"
#define dht_msg_192     (GLFS_COMP_BASE + 192), "%s: migrate-file called on directory"
#define dht_msg_193     (GLFS_COMP_BASE + 193), "%s: mknod failed (%s)"
#define dht_msg_194     (GLFS_COMP_BASE + 194), "%s: no pre-set layout for subvolume %s"
#define dht_msg_195     (GLFS_COMP_BASE + 195), "%s on %s found to be not a linkfile (type=0%o)"
#define dht_msg_196     (GLFS_COMP_BASE + 196), "sort failed?! how the ...."
#define dht_msg_197     (GLFS_COMP_BASE + 197), "%s: readlink on symlink failed (%s)"
#define dht_msg_198     (GLFS_COMP_BASE + 198), "%s: rename on %s failed (%s)"
#define dht_msg_199     (GLFS_COMP_BASE + 199), "%s/%s gfid not present"
#define dht_msg_200     (GLFS_COMP_BASE + 200), "%s: (subvol %s) failed to extract disk layout"
#define dht_msg_201     (GLFS_COMP_BASE + 201), "%s: (subvol %s) failed to set xattr dictionary"
#define dht_msg_202     (GLFS_COMP_BASE + 202), "subvol: %s; inode layout - %"PRIu32" - %"PRIu32"; disk layout - %"PRIu32" - %"PRIu32
#define dht_msg_203     (GLFS_COMP_BASE + 203), "Subvolume %s for %s returned -1 (%s)"
#define dht_msg_204     (GLFS_COMP_BASE + 204), "Subvolume %s returned -1 (%s)"
#define dht_msg_205     (GLFS_COMP_BASE + 205), "%s: unlink failed (%s)"
#define dht_msg_206     (GLFS_COMP_BASE + 206), "%s: unlink on %s failed (%s)"
#define dht_msg_207     (GLFS_COMP_BASE + 207), "%s - xattr dictionary is NULL"
#define dht_msg_208     (GLFS_COMP_BASE + 208), "Unable to find local subvolume, switching to dht mode"
#define dht_msg_209     (GLFS_COMP_BASE + 209), "Unknown local->xsel (%s)"
#define dht_msg_210     (GLFS_COMP_BASE + 210), "Unlinking linkfile %s on %s failed (%s)"
#define dht_msg_211     (GLFS_COMP_BASE + 211), "Unlinking %s on %s (given path %s)"
#define dht_msg_212     (GLFS_COMP_BASE + 212), "Using regex %s = %s"
#define dht_msg_213     (GLFS_COMP_BASE + 213), "Using specified subvol %s"
#define dht_msg_214     (GLFS_COMP_BASE + 214), "Using the first local subvol %s"
#define dht_msg_215     (GLFS_COMP_BASE + 215), "%u subvolume(s) are down. Skipping fix layout."
#define dht_msg_216     (GLFS_COMP_BASE + 216), "uuid_parse failed for %s",
#define dht_msg_217     (GLFS_COMP_BASE + 217), "Wrong 'directory-spread-count' value (%s)"
#define dht_msg_218     (GLFS_COMP_BASE + 218), "xattr dict set failed"

#define dht_msg_end_x GLFS_MSGID_END, "Invalid: End of messages"




/*Remove the following:*/

/**
100: Failed to set key value in dict
*/
#define DHT_SET_DICT_FAILED     100
#define DHT_SET_DICT_SUCCESS    101

gf_msg2("dht", GF_LOG_ERROR, DHT_SET_DICT_FAILED, "Failed to set xattr %s in dict ", xattr_name);




#endif