Skip to contentSkip to conversation

Am I thinking correctly?

DISCUSSION ext3crypt 2 participants 2 messages Nov 7, 2005

lore
Share & tools
lore

ext3crypt

author
#0 lore raw

I'm working on a masters project for PSU. It requires that I modify the ext3 and fs code in the kernel proper.

The idea is to encrypt data just prior to it being written to disk. I've created a new version of __block_write_full_page (which is called from writepage) to allocate a new (GFP_NOFS) page, setup the buffer_head list and copy the data to the new page (and encrypt it too). When I do this, the data is not written to disk from the new buffer_head that I submit using submit_bh(). I've treked through this code and I'm convinced I'm down the right path. Am I? Any assistance would be appreciated.

#1 lore raw
Quoted 11 lines · On 11/7/05, ext3crypt <[email protected]> wrote:

I'm working on a masters project for PSU. It requires that I modify the ext3 and fs code in the kernel proper.

The idea is to encrypt data just prior to it being written to disk. I've created a new version of __block_write_full_page (which is called from writepage) to allocate a new (GFP_NOFS) page, setup the buffer_head list and copy the data to the new page (and encrypt it too). When I do this, the data is not written to disk from the new buffer_head that I submit using submit_bh(). I've treked through this code and I'm convinced I'm down the right path. Am I? Any assistance would be appreciated.

Which kernel version you are using ?
Using kernel Encryption API ?
How you got to know that your data is not written to disk ? Getting any error message ? or some-thing else ?
And a url or attachment of code will help others to get to your problem !

--
Fawad Lateef