Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\policy.c Create Date:2022-07-28 20:24:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:supported_iv_ino_lblk_64_policy

Proto:static bool supported_iv_ino_lblk_64_policy(const struct fscrypt_policy_v2 *policy, const struct inode *inode)

Type:bool

Parameter:

TypeParameterName
const struct fscrypt_policy_v2 *policy
const struct inode *inode
36  sb = i_sb
37  ino_bits = 64 , lblk_bits = 64
39  If flags & FSCRYPT_POLICY_FLAG_DIRECT_KEY Then
40  fscrypt_warn(inode, "The DIRECT_KEY and IV_INO_LBLK_64 flags are mutually exclusive")
42  Return false
48  If Not has_stable_inodes || Not has_stable_inodes(sb) Then
50  fscrypt_warn(inode, "Can't use IV_INO_LBLK_64 policy on filesystem '%s' because it doesn't have stable inode numbers", s_id)
53  Return false
55  If get_ino_and_lblk_bits Then get_ino_and_lblk_bits(sb, & ino_bits, & lblk_bits)
57  If ino_bits > 32 || lblk_bits > 32 Then
58  fscrypt_warn(inode, "Can't use IV_INO_LBLK_64 policy on filesystem '%s' because it doesn't use 32-bit inode and block numbers", s_id)
61  Return false
63  Return true
Caller
NameDescribe
fscrypt_supported_policy