Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
inode.c File Reference
#include <linux/file.h>
#include <linux/vmalloc.h>
#include <linux/pagemap.h>
#include <linux/dcache.h>
#include <linux/namei.h>
#include <linux/mount.h>
#include <linux/crypto.h>
#include <linux/fs_stack.h>
#include <linux/slab.h>
#include <linux/xattr.h>
#include <asm/unaligned.h>
#include "ecryptfs_kernel.h"

Go to the source code of this file.

Functions

struct inodeecryptfs_get_inode (struct inode *lower_inode, struct super_block *sb)
 
int ecryptfs_initialize_file (struct dentry *ecryptfs_dentry, struct inode *ecryptfs_inode)
 
int ecryptfs_truncate (struct dentry *dentry, loff_t new_length)
 
int ecryptfs_getattr_link (struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
 
int ecryptfs_getattr (struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
 
int ecryptfs_setxattr (struct dentry *dentry, const char *name, const void *value, size_t size, int flags)
 
ssize_t ecryptfs_getxattr_lower (struct dentry *lower_dentry, const char *name, void *value, size_t size)
 

Variables

struct inode_operations ecryptfs_symlink_iops
 
struct inode_operations ecryptfs_dir_iops
 
struct inode_operations ecryptfs_main_iops
 

Function Documentation

struct inode* ecryptfs_get_inode ( struct inode lower_inode,
struct super_block sb 
)
read

Definition at line 113 of file inode.c.

int ecryptfs_getattr ( struct vfsmount mnt,
struct dentry dentry,
struct kstat stat 
)

Definition at line 1024 of file inode.c.

int ecryptfs_getattr_link ( struct vfsmount mnt,
struct dentry dentry,
struct kstat stat 
)

Definition at line 1002 of file inode.c.

ssize_t ecryptfs_getxattr_lower ( struct dentry lower_dentry,
const char name,
void value,
size_t  size 
)

Definition at line 1062 of file inode.c.

int ecryptfs_initialize_file ( struct dentry ecryptfs_dentry,
struct inode ecryptfs_inode 
)

ecryptfs_initialize_file

Cause the file to be changed from a basic empty file to an ecryptfs file with a header and first data page.

Returns zero on success

Definition at line 230 of file inode.c.

int ecryptfs_setxattr ( struct dentry dentry,
const char name,
const void value,
size_t  size,
int  flags 
)

Definition at line 1042 of file inode.c.

int ecryptfs_truncate ( struct dentry dentry,
loff_t  new_length 
)

ecryptfs_truncate : The ecryptfs layer dentry : The length to expand the file to

Simple function that handles the truncation of an eCryptfs inode and its corresponding lower inode.

Returns zero on success; non-zero otherwise

Definition at line 879 of file inode.c.

Variable Documentation

struct inode_operations ecryptfs_dir_iops
Initial value:
= {
.create = ecryptfs_create,
.lookup = ecryptfs_lookup,
.link = ecryptfs_link,
.unlink = ecryptfs_unlink,
.symlink = ecryptfs_symlink,
.mkdir = ecryptfs_mkdir,
.rmdir = ecryptfs_rmdir,
.mknod = ecryptfs_mknod,
.rename = ecryptfs_rename,
.permission = ecryptfs_permission,
.setattr = ecryptfs_setattr,
.setxattr = ecryptfs_setxattr,
.getxattr = ecryptfs_getxattr,
.listxattr = ecryptfs_listxattr,
.removexattr = ecryptfs_removexattr
}

Definition at line 1135 of file inode.c.

struct inode_operations ecryptfs_main_iops
Initial value:
= {
.permission = ecryptfs_permission,
.setattr = ecryptfs_setattr,
.getattr = ecryptfs_getattr,
.setxattr = ecryptfs_setxattr,
.getxattr = ecryptfs_getxattr,
.listxattr = ecryptfs_listxattr,
.removexattr = ecryptfs_removexattr
}

Definition at line 1153 of file inode.c.

struct inode_operations ecryptfs_symlink_iops
Initial value:
= {
.readlink = generic_readlink,
.follow_link = ecryptfs_follow_link,
.put_link = ecryptfs_put_link,
.permission = ecryptfs_permission,
.setattr = ecryptfs_setattr,
.setxattr = ecryptfs_setxattr,
.getxattr = ecryptfs_getxattr,
.listxattr = ecryptfs_listxattr,
.removexattr = ecryptfs_removexattr
}

Definition at line 1122 of file inode.c.