"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/cluster/ec/src/ec-combine.h" (16 Sep 2020, 1358 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-combine.h" see the Fossies "Dox" file reference documentation.

    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_COMBINE_H__
   12 #define __EC_COMBINE_H__
   13 
   14 #define EC_COMBINE_DICT 0
   15 #define EC_COMBINE_XDATA 1
   16 
   17 typedef int32_t (*ec_combine_f)(ec_fop_data_t *fop, ec_cbk_data_t *dst,
   18                                 ec_cbk_data_t *src);
   19 
   20 void
   21 ec_iatt_rebuild(ec_t *ec, struct iatt *iatt, int32_t count, int32_t answers);
   22 
   23 int32_t
   24 ec_iatt_combine(ec_fop_data_t *fop, struct iatt *dst, struct iatt *src,
   25                 int32_t count);
   26 int32_t
   27 ec_dict_compare(dict_t *dict1, dict_t *dict2);
   28 int32_t
   29 ec_vector_compare(struct iovec *dst_vector, int32_t dst_count,
   30                   struct iovec *src_vector, int32_t src_count);
   31 int32_t
   32 ec_flock_compare(struct gf_flock *dst, struct gf_flock *src);
   33 void
   34 ec_statvfs_combine(struct statvfs *dst, struct statvfs *src);
   35 
   36 int32_t
   37 ec_dict_combine(ec_cbk_data_t *cbk, int32_t which);
   38 
   39 void
   40 ec_combine(ec_cbk_data_t *cbk, ec_combine_f combine);
   41 
   42 int32_t
   43 ec_combine_write(ec_fop_data_t *fop, ec_cbk_data_t *dst, ec_cbk_data_t *src);
   44 #endif /* __EC_COMBINE_H__ */