"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/cluster/ec/src/ec.h" (16 Sep 2020, 1169 Bytes) of package /linux/misc/glusterfs-8.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ec.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 8.0_vs_8.1.

    1 /*
    2   Copyright (c) 2012-2014 DataLab, s.l. <http://www.datalab.es>
    3   This file is part of GlusterFS.
    4 
    5   This file is licensed to you under your choice of the GNU Lesser
    6   General Public License, version 3 or any later version (LGPLv3 or
    7   later), or the GNU General Public License, version 2 (GPLv2), in all
    8   cases as published by the Free Software Foundation.
    9 */
   10 
   11 #ifndef __EC_H__
   12 #define __EC_H__
   13 
   14 #include "ec-method.h"
   15 
   16 #define EC_XATTR_PREFIX "trusted.ec."
   17 #define EC_XATTR_CONFIG EC_XATTR_PREFIX "config"
   18 #define EC_XATTR_SIZE EC_XATTR_PREFIX "size"
   19 #define EC_XATTR_VERSION EC_XATTR_PREFIX "version"
   20 #define EC_XATTR_HEAL EC_XATTR_PREFIX "heal"
   21 #define EC_XATTR_HEAL_NEW EC_XATTR_PREFIX "heal-new"
   22 #define EC_XATTR_DIRTY EC_XATTR_PREFIX "dirty"
   23 #define EC_STRIPE_CACHE_MAX_SIZE 10
   24 #define EC_VERSION_SIZE 2
   25 #define EC_SHD_INODE_LRU_LIMIT 10
   26 
   27 #define EC_MAX_FRAGMENTS EC_METHOD_MAX_FRAGMENTS
   28 /* The maximum number of nodes is derived from the maximum allowed fragments
   29  * using the rule that redundancy cannot be equal or greater than the number
   30  * of fragments.
   31  */
   32 #define EC_MAX_NODES min(EC_MAX_FRAGMENTS * 2 - 1, EC_METHOD_MAX_NODES)
   33 
   34 #endif /* __EC_H__ */