"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/features/bit-rot/src/stub/bit-rot-object-version.h" (16 Sep 2020, 779 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 "bit-rot-object-version.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2    Copyright (c) 2015 Red Hat, Inc. <http://www.redhat.com>
    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 __BIT_ROT_OBJECT_VERSION_H
   12 #define __BIT_ROT_OBJECT_VERSION_H
   13 
   14 /**
   15  * on-disk formats for ongoing version and object signature.
   16  */
   17 typedef struct br_version {
   18     unsigned long ongoingversion;
   19     uint32_t timebuf[2];
   20 } br_version_t;
   21 
   22 typedef struct __attribute__((__packed__)) br_signature {
   23     int8_t signaturetype;
   24 
   25     unsigned long signedversion;
   26 
   27     char signature[0];
   28 } br_signature_t;
   29 
   30 #endif