1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
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.
15 #ifndef CEPHFS_FSCRYPT_H
16 #define CEPHFS_FSCRYPT_H
18 struct ceph_fscrypt_last_block_header
{
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.
28 /* inode change attr version */
32 * For a file hole, this will be 0, or it will be the offset from
33 * which will write the last block
37 /* It should always be the fscrypt block size */