mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Am I thinking correctly?
@ 2005-11-07  2:18 ext3crypt
  2005-11-07  8:54 ` Fawad Lateef
  0 siblings, 1 reply; 4+ messages in thread
From: ext3crypt @ 2005-11-07  2:18 UTC (permalink / raw)
  To: linux-kernel

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.







^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: Am I thinking correctly?
@ 2005-11-07 17:24 ext3crypt
  2005-11-08  3:24 ` Fawad Lateef
  0 siblings, 1 reply; 4+ messages in thread
From: ext3crypt @ 2005-11-07 17:24 UTC (permalink / raw)
  To: fawadlateef; +Cc: linux-kernel

Sorry for the previous failed responses .. I never use this webmail interface, and it was set to send mail using HTML.

------  Here is the reply . . .


Kernel Version:  2.6.13
 
The API will be used, but I am using a simple xor to test with.
 
The data is getting written to disk, but NOT the buffer I'm sending to submit_bh().  It is writing the buffers from the page I copied???
 
No messages.  I just do the following:
 
mount the filesystem
cd to it's root
cp foo foo2
sync
(at this point everything looks fine)
 
cd ..
umount the filesystem
mount the filesystem
cd to it's root
cat foo2 (which is now the wrong data)
 
I'll attach the code tonight when I have access to it.
 
 
 
-------------- Original message -------------- 

> On 11/7/05, ext3crypt 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 
> - 
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in 
> the body of a message to majordomo@vger.kernel.org 
> More majordomo info at http://vger.kernel.org/majordomo-info.html 
> Please read the FAQ at http://www.tux.org/lkml/ 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-08  3:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-07  2:18 Am I thinking correctly? ext3crypt
2005-11-07  8:54 ` Fawad Lateef
2005-11-07 17:24 ext3crypt
2005-11-08  3:24 ` Fawad Lateef

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®