/* Maximum value for the third parameter of llcrypt_operations.set_context(). */
#define LLCRYPT_SET_CONTEXT_MAX_SIZE 40
+#define LLCRYPT_DIGESTED_CHAR_OLD '_'
+#define LLCRYPT_DIGESTED_CHAR '+'
#ifdef CONFIG_LL_ENCRYPTION
/*
void *, bool);
extern bool llcrypt_policy_has_filename_enc(struct inode *inode);
/* keyring.c */
-extern void llcrypt_sb_free(struct super_block *sb);
+extern void llcrypt_sb_free(struct lustre_sb_info *lsi);
extern int llcrypt_ioctl_add_key(struct file *filp, void __user *arg);
extern int llcrypt_ioctl_remove_key(struct file *filp, void __user *arg);
extern int llcrypt_ioctl_remove_key_all_users(struct file *filp,
return !memcmp(de_name, fname->disk_name.name, fname->disk_name.len);
}
-/* 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);
-
/* hooks.c */
extern int llcrypt_file_open(struct inode *inode, struct file *filp);
extern int __llcrypt_prepare_link(struct inode *inode, struct inode *dir,
}
/* keyring.c */
-static inline void llcrypt_sb_free(struct super_block *sb)
+static inline void llcrypt_sb_free(struct lustre_sb_info *lsi)
{
}
return !memcmp(de_name, fname->disk_name.name, fname->disk_name.len);
}
-/* bio.c */
-static inline void llcrypt_decrypt_bio(struct bio *bio)
-{
-}
-
-static inline void llcrypt_enqueue_decrypt_bio(struct llcrypt_ctx *ctx,
- struct bio *bio)
-{
-}
-
-static inline int llcrypt_zeroout_range(const struct inode *inode, pgoff_t lblk,
- sector_t pblk, unsigned int len)
-{
- return -EOPNOTSUPP;
-}
-
/* hooks.c */
static inline int llcrypt_file_open(struct inode *inode, struct file *filp)