]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
libcephfs: Include libcephfs.h def for ceph_get_fscrypt_key_status
authorChristopher Hoffman <choffman@redhat.com>
Wed, 13 Aug 2025 15:45:37 +0000 (15:45 +0000)
committerChristopher Hoffman <choffman@redhat.com>
Wed, 5 Nov 2025 13:59:36 +0000 (13:59 +0000)
The libcephfs api header definition for call ceph_get_fscrypt_key_status
was not defined. Define this api call in libcephfs.h.

Signed-off-by: Christopher Hoffman <choffman@redhat.com>
src/include/cephfs/libcephfs.h

index 536857849b263a584a7c6a6fae044dfe0a3ce0d5..106785fe611bbc0e5e45e7a7ddb604d44c66b729 100644 (file)
@@ -133,6 +133,7 @@ struct ceph_ll_io_info {
 };
 
 struct ceph_fscrypt_key_identifier;
+struct fscrypt_get_key_status_arg;
 struct fscrypt_policy_v2;
 struct fscrypt_remove_key_arg;
 
@@ -2028,6 +2029,16 @@ int ceph_remove_fscrypt_key(struct ceph_mount_info *cmount,
                             struct fscrypt_remove_key_arg *kid,
                            int user);
 
+/**
+ * Get fscrypt encryption key status from the in-memory key manager
+ *
+ * @param cmount the ceph mount handle to use.
+ * @param arg pointer to the key status for specified key
+ * @returns zero on success, other returns a negative error code.
+ */
+int ceph_get_fscrypt_key_status(struct ceph_mount_info *cmount,
+                                struct fscrypt_get_key_status_arg *arg);
+
 /**
  * Set encryption policy on a directory.
  *