"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/features/read-only/src/worm-helper.h" (16 Sep 2020, 1457 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 "worm-helper.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2    Copyright (c) 2016 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 gf_boolean_t
   12 gf_worm_write_disabled(struct iatt *stbuf);
   13 
   14 int32_t
   15 worm_init_state(xlator_t *this, gf_boolean_t fop_with_fd, void *file_ptr);
   16 
   17 int32_t
   18 worm_set_state(xlator_t *this, gf_boolean_t fop_with_fd, void *file_ptr,
   19                worm_reten_state_t *retention_state, struct iatt *stbuf);
   20 
   21 int32_t
   22 worm_get_state(xlator_t *this, gf_boolean_t fop_with_fd, void *file_ptr,
   23                worm_reten_state_t *reten_state);
   24 
   25 void
   26 gf_worm_state_lookup(xlator_t *this, gf_boolean_t fop_with_fd, void *file_ptr,
   27                      worm_reten_state_t *reten_state, struct iatt *stbuf);
   28 
   29 void
   30 gf_worm_serialize_state(worm_reten_state_t *reten_state, char *val);
   31 
   32 void
   33 gf_worm_deserialize_state(char *val, worm_reten_state_t *reten_state);
   34 
   35 int32_t
   36 gf_worm_set_xattr(xlator_t *this, worm_reten_state_t *reten_state,
   37                   gf_boolean_t fop_with_fd, void *file_ptr);
   38 
   39 int
   40 gf_worm_state_transition(xlator_t *this, gf_boolean_t fop_with_fd,
   41                          void *file_ptr, glusterfs_fop_t op);
   42 
   43 int32_t
   44 is_wormfile(xlator_t *this, gf_boolean_t fop_with_fd, void *file_ptr);