Linux Kernel
3.7.1
|
Go to the source code of this file.
Functions | |
int | ecryptfs_write_lower (struct inode *ecryptfs_inode, char *data, loff_t offset, size_t size) |
int | ecryptfs_write_lower_page_segment (struct inode *ecryptfs_inode, struct page *page_for_lower, size_t offset_in_page, size_t size) |
int | ecryptfs_write (struct inode *ecryptfs_inode, char *data, loff_t offset, size_t size) |
int | ecryptfs_read_lower (char *data, loff_t offset, size_t size, struct inode *ecryptfs_inode) |
int | ecryptfs_read_lower_page_segment (struct page *page_for_ecryptfs, pgoff_t page_index, size_t offset_in_page, size_t size, struct inode *ecryptfs_inode) |
ecryptfs_read_lower : The read data is stored here by this function : Byte offset in the lower file from which to read the data : Number of bytes to read from of the lower file and store into : The eCryptfs inode
Read bytes of data at byte offset from the lower inode into memory location .
Returns bytes read on success; 0 on EOF; less than zero on error
Definition at line 235 of file read_write.c.
int ecryptfs_read_lower_page_segment | ( | struct page * | page_for_ecryptfs, |
pgoff_t | page_index, | ||
size_t | offset_in_page, | ||
size_t | size, | ||
struct inode * | ecryptfs_inode | ||
) |
ecryptfs_read_lower_page_segment : The page into which data for eCryptfs will be written : Offset in from which to start writing : The number of bytes to write into : The eCryptfs inode
Determines the byte offset in the file for the given page and offset within the page, maps the page, and makes the call to read the contents of from the lower inode.
Returns zero on success; non-zero otherwise
Definition at line 267 of file read_write.c.
ecryptfs_write : The eCryptfs file into which to write : Virtual address where data to write is located : Offset in the eCryptfs file at which to begin writing the data from : The number of bytes to write from
Write an arbitrary amount of data to an arbitrary location in the eCryptfs inode page cache. This is done on a page-by-page, and then by an extent-by-extent, basis; individual extents are encrypted and written to the lower page cache (via VFS writes). This function takes care of all the address translation to locations in the lower filesystem; it also handles truncate events, writing out zeros where necessary.
Returns zero on success; non-zero otherwise
Definition at line 109 of file read_write.c.
eCryptfs: Linux filesystem encryption layer
Copyright (C) 2007 International Business Machines Corp. Author(s): Michael A. Halcrow mahal cro@ us.ib m.co m
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ecryptfs_write_lower : The eCryptfs inode : Data to write : Byte offset in the lower file to which to write the data : Number of bytes from to write at in the lower file
Write data to the lower file.
Returns bytes written on success; less than zero on error
Definition at line 39 of file read_write.c.
int ecryptfs_write_lower_page_segment | ( | struct inode * | ecryptfs_inode, |
struct page * | page_for_lower, | ||
size_t | offset_in_page, | ||
size_t | size | ||
) |
ecryptfs_write_lower_page_segment : The eCryptfs inode : The page containing the data to be written to the lower file : The offset in the from which to start writing the data : The amount of data from to write to the lower file
Determines the byte offset in the file for the given page and offset within the page, maps the page, and makes the call to write the contents of to the lower inode.
Returns zero on success; non-zero otherwise
Definition at line 73 of file read_write.c.