eCryptfs: Introduce persistent lower files for each eCryptfs inode
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest11 patches 13 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | eCryptfs: Remove header_extent_sizefs/ fs/ fs/ +1 more | +52 | 0 replies | |
| 2/11 | eCryptfs: Remove assignments in if-statementsfs/ fs/ fs/ +4 more | +89 | 0 replies | |
| 3/11 | eCryptfs: read_write.c routinesfs/ fs/ fs/ +1 more | +379 | 6 replies | |
| 4/11 | eCryptfs: Replace encrypt, decrypt, and inode size writefs/ fs/ fs/ +2 more | +290 | 3 replies | |
| 5/11 | eCryptfs: Set up and destroy persistent lower filefs/ fs/ fs/ | +103 | 0 replies | |
| 6/11 | eCryptfs: Update metadata read/write functionsfs/ fs/ fs/ +2 more | +113 | 2 replies | |
| 7/11 | eCryptfs: Make open, truncate, and setattr use persistent filefs/ fs/ fs/ | +44 | 0 replies | |
| 8/11 | eCryptfs: Convert mmap functions to use persistent filefs/ | +103 | 2 replies | |
| 9/11 | eCryptfs: Initialize persistent lower file on inode createfs/ | +7 | 0 replies | |
| 10/11 | eCryptfs: Remove unused functions and kmem_cachefs/ fs/ fs/ +2 more | +1 | 0 replies | |
| 11/11 | eCryptfs: Replace magic numbersfs/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/11] eCryptfs: Introduce persistent lower files for each eCryptfs inode
Currently, eCryptfs directly accesses the lower inode address space, doing things like grab_cache_page() on lower_inode->i_mapping. It really should not do that. The main point of this patch set is to make all I/O with the lower files go through vfs_read() and vfs_write() instead.
In order to accomplish this, eCryptfs needs a way to call vfs_read() and vfs_write() on the lower file when ecryptfs_aops->readpage() and ecryptfs_aops->writepage() are called. I propose keeping a persistent lower file around for each eCryptfs inode. This is the only lower file that eCryptfs will open for any given eCryptfs inode; multiple eCryptfs files may map to this one persistent lower file. When the eCrypfs inode is destroyed, this persistent lower file is closed.
Consolidating all reads and writes to the lower file to a single execution path simplifies the code. This should also make it easier to port eCryptfs to use the asynchronous crypto API functions. Note that this patch set also removes all direct calls to lower prepare_write() and commite_write(), fixing an oops when mounted on NFS.
Mike
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/