The reference to bio_alloc() on the client is causing compile
issues with different kernels and adds unnecessary portability
complexity to the client code.
Disable llcrypt_zeroout_range() for client builds because it is
not needed since direct block device access is not used by llite.
Lustre-change: https://review.whamcloud.com/50023
Lustre-commit: TBD (from
0ebb7e37b85f8e881985bdcb45d3e16ace37c1f0)
Test-Parameters: trivial
Fixes:
a813e8187 ("LU-12275 sec: add llcrypt as file encryption library")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I97642dfd85053b9ea4196374f2002ffb6a2540e5
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/50022
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
return !memcmp(de_name, fname->disk_name.name, fname->disk_name.len);
}
+#ifdef HAVE_SERVER_SUPPORT
/* bio.c */
extern void llcrypt_decrypt_bio(struct bio *);
extern void llcrypt_enqueue_decrypt_bio(struct llcrypt_ctx *ctx,
struct bio *bio);
extern int llcrypt_zeroout_range(const struct inode *, pgoff_t, sector_t,
unsigned int);
+#endif
/* hooks.c */
extern int llcrypt_file_open(struct inode *inode, struct file *filp);
return !memcmp(de_name, fname->disk_name.name, fname->disk_name.len);
}
+#ifdef HAVE_SERVER_SUPPORT
/* bio.c */
static inline void llcrypt_decrypt_bio(struct bio *bio)
{
{
return -EOPNOTSUPP;
}
+#endif
/* hooks.c */
* tags/v5.4
*/
+#ifdef HAVE_SERVER_SUPPORT
#include <linux/pagemap.h>
#include <linux/module.h>
#include <linux/bio.h>
return err;
}
EXPORT_SYMBOL(llcrypt_zeroout_range);
+#endif