From dcd571a65565e36d36df12e89d225afc7c6835e2 Mon Sep 17 00:00:00 2001 From: Christopher Hoffman Date: Thu, 8 May 2025 18:33:36 +0000 Subject: [PATCH] client: Allow for reading raw written data. When looking up the effective_size and the client_fscrypt_as option is false show the inode size value. This will allow for reading raw encrypted data when no key is provided. Signed-off-by: Christopher Hoffman --- src/client/Inode.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/Inode.cc b/src/client/Inode.cc index 6533a455183c1..e637aa6d0e6f0 100644 --- a/src/client/Inode.cc +++ b/src/client/Inode.cc @@ -880,7 +880,7 @@ void Inode::gen_inherited_fscrypt_auth(std::vector *fsa) uint64_t Inode::effective_size() const { - if (fscrypt_file.size() < sizeof(uint64_t)) { + if (fscrypt_file.size() < sizeof(uint64_t) || !client->cct->_conf.get_val("client_fscrypt_as")) { return size; } -- 2.39.5