]> git.proxmox.com Git - ceph.git/blob - ceph/src/mds/fscrypt.h
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / mds / fscrypt.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3 /*
4 * Ceph - scalable distributed file system
5 *
6
7 *
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
12 *
13 */
14
15 #ifndef CEPHFS_FSCRYPT_H
16 #define CEPHFS_FSCRYPT_H
17
18 struct ceph_fscrypt_last_block_header {
19 __u8 ver;
20 __u8 compat;
21
22 /* If the last block is located in a file hole the length
23 * will be sizeof(i_version + file_offset + block_size),
24 * or will plus to extra BLOCK SIZE.
25 */
26 uint32_t data_len;
27
28 /* inode change attr version */
29 uint64_t change_attr;
30
31 /*
32 * For a file hole, this will be 0, or it will be the offset from
33 * which will write the last block
34 */
35 uint64_t file_offset;
36
37 /* It should always be the fscrypt block size */
38 uint32_t block_size;
39 };
40
41 #endif