How to test consistency of ecryptfs

Asked by Anil

I want to ask , what could be the methods or test cases to test consistency of ecryptfs. Is ecryptFS is fully supported by kernel version 2.6.30 ? .

Question information

Language:
English Edit question
Status:
Solved
For:
eCryptfs Edit question
Assignee:
No assignee Edit question
Solved by:
Dustin Kirkland 
Solved:
Last query:
Last reply:
Revision history for this message
Best Dustin Kirkland  (kirkland) said :
#1

Yes, eCryptfs is fully supported in linux 2.6.30. Actually, I would
say that it should be really solid in anything >= 2.6.29 upstream (or
Ubuntu's Jaunty kernel, which was 2.6.28 + some patches).

As for testing the consistency, there's a very basic set of tests near
the bottom of /usr/bin/ecryptfs-setup-private. See that shell script
source code. It basically tests mounting, writing, unmount, and
reading again. This could be made much more robust by a separate
script. I would welcome the test case as a patch to the
ecryptfs-utils project.

Basically, you'd follow the steps in the bottom of the file.

Perform a mount. Write a bunch of files. Maybe write a few thousand
small files, and a few dozen very large files, with random binary
and/or text data. Save the filenames and md5 hashes of the contents.
Unmount. Sync to disk. Mount again, and reread the filenames and
md5sum the contents. Ensure that everything matches.

Hope that helps.

:-Dustin

Revision history for this message
Anil (anillike) said :
#2

Thanks Dustin Kirkland, that solved my question.