[Devel] [PATCH] ecryptfs lower_file handling issues

Dmitriy Monakhov dmonakhov at openvz.org
Mon Feb 19 06:34:13 PST 2007


1)Function ecryptfs_do_readpage() calls flush_dcache_page(lower_page),
  but lower_page was't changed here. So remove this line.

2)prepare_write ret val was ignored in ecryptfs_write_inode_size_to_header().
If error happends we can't call commit_write, just do cleanup and fial.
It is issue easy to reproduce with full lower_fs, in this case prepare_write()
will return ENOSPC.
Signed-off-by: Dmitriy Monakhov <dmonakhov at openvz.org>
-------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff-mm-ecryptfs-mmap-fix-2_6_20-mm2
URL: <http://lists.openvz.org/pipermail/devel/attachments/20070219/c3e70e52/attachment-0001.ksh>


More information about the Devel mailing list