Debian Codegraph @

xlators/storage/posix/src/posix-metadata-disk.h

raw symbols SCIP
1 /*
2 Copyright (c) 2018 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 _POSIX_METADATA_DISK_H
12 #define _POSIX_METADATA_DISK_H
13
14 typedef struct gf_timespec_disk {
15 uint64_t tv_sec;
16 uint64_t tv_nsec;
17 } gf_timespec_disk_t;
18
19 /* posix_mdata_t on disk structure */
20
21 typedef struct __attribute__((__packed__)) posix_mdata_disk {
22 /* version of structure, bumped up if any new member is added */
23 uint8_t version;
24 /* flags indicates valid fields in the structure */
25 uint64_t flags;
26 gf_timespec_disk_t ctime;
27 gf_timespec_disk_t mtime;
28 gf_timespec_disk_t atime;
29 } posix_mdata_disk_t;
30
31 #endif /* _POSIX_METADATA_DISK_H */