MCPcopy Create free account
hub / github.com/ceph/ceph / remove_fscrypt_key

Method remove_fscrypt_key

src/client/Client.cc:18493–18502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18491}
18492
18493int Client::remove_fscrypt_key(fscrypt_remove_key_arg* kid, int user)
18494{
18495 auto& key_store = fscrypt->get_key_store();
18496
18497 int r = key_store.invalidate(kid, user);
18498 if (kid->removal_status_flags & (FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY == 0)) {
18499 sync_fs();
18500 }
18501 return r;
18502}
18503
18504int Client::set_fscrypt_policy_v2(int fd, const struct fscrypt_policy_v2& policy)
18505{

Callers 2

ceph_remove_fscrypt_keyFunction · 0.80
fuse_ll_ioctlFunction · 0.80

Calls 2

sync_fsFunction · 0.85
invalidateMethod · 0.45

Tested by

no test coverage detected