/** * ecryptfs_alloc_inode - allocate an ecryptfs inode * @sb: Pointer to the ecryptfs super block * * Called to bring an inode into existence. * * Only handle allocation, setting up structures should be done in * ecryptfs_read_inode. This is because the kernel, between now and * then, will 0 out the private data pointer. * * Returns a pointer to a newly allocated inode, NULL otherwise
*/ staticstruct inode *ecryptfs_alloc_inode(struct super_block *sb)
{ struct ecryptfs_inode_info *inode_info; struct inode *inode = NULL;
/** * ecryptfs_destroy_inode * @inode: The ecryptfs inode * * This is used during the final destruction of the inode. All * allocation of memory related to the inode, including allocated * memory in the crypt_stat struct, will be released here. * There should be no chance that this deallocation will be missed.
*/ staticvoid ecryptfs_destroy_inode(struct inode *inode)
{ struct ecryptfs_inode_info *inode_info;
/** * ecryptfs_statfs * @dentry: The ecryptfs dentry * @buf: The struct kstatfs to fill in with stats * * Get the filesystem statistics. Currently, we let this pass right through * to the lower filesystem and take no action ourselves.
*/ staticint ecryptfs_statfs(struct dentry *dentry, struct kstatfs *buf)
{ struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); int rc;
if (!lower_dentry->d_sb->s_op->statfs) return -ENOSYS;
rc = lower_dentry->d_sb->s_op->statfs(lower_dentry, buf); if (rc) return rc;
/** * ecryptfs_evict_inode * @inode: The ecryptfs inode * * Called by iput() when the inode reference count reached zero * and the inode is not hashed anywhere. Used to clear anything * that needs to be, before the inode is completely destroyed and put * on the inode free list. We use this to drop out reference to the * lower inode.
*/ staticvoid ecryptfs_evict_inode(struct inode *inode)
{
truncate_inode_pages_final(&inode->i_data);
clear_inode(inode);
iput(ecryptfs_inode_to_lower(inode));
}
/* * ecryptfs_show_options * * Prints the mount options for a given superblock. * Returns zero; does not fail.
*/ staticint ecryptfs_show_options(struct seq_file *m, struct dentry *root)
{ struct super_block *sb = root->d_sb; struct ecryptfs_mount_crypt_stat *mount_crypt_stat =
&ecryptfs_superblock_to_private(sb)->mount_crypt_stat; struct ecryptfs_global_auth_tok *walker;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.