From: Michael Thompson <michael.craig.thompson@gmail.com>
To: "Charles P. Wright" <cwright@cs.sunysb.edu>
Cc: Michael Halcrow <mike@halcrow.us>, linux-fsdevel@vger.kernel.org
Subject: Re: eCryptfs: Request for review
Date: Wed, 19 Oct 2005 14:00:05 -0500 [thread overview]
Message-ID: <afcef88a0510191200g644ed185s82acf45a1854b61e@mail.gmail.com> (raw)
In-Reply-To: <1129736164.25733.19.camel@polarbear.fsl.cs.sunysb.edu>
On 10/19/05, Charles P. Wright <cwright@cs.sunysb.edu> wrote:
> This is just a brief glance, and by no means complete, but here are a
> few things that I saw.
>
> In dentry.c you shouldn't implement d_delete. This will cause problems
> with certain lower-level file systems.
Not entirely sure I follow the reasoning why here. Obviously, if it
needs to be, it can be removed, but all this function is doing is a
bunch of sanity checks, then then calling d_delete on the lower
filesystems if it exists. Just trying to get a better understand of
the code you see :)
> In crypto.c:ecryptfs_dump_hex you have variables intermixed with code,
> which won't work on some older compilers (AFAIK gcc 2.95 will barf).
Noted. Changed.
> In ecryptfs_llseek, If you are adding pages for extra information, you
> need to convert the offset to a lower-level offset, and then convert the
> return back to what user space expects it to be. You should test fsx on
> your file system, to sort these types of things out.
I believe that this is working, we have run fsx "succesfully" for
10000 iterations. However, its not a total success because we are
bugging out in fs/buffer.c:1822 BUG_ON(PageWriteback(page));
Will look a bit more closely though.
> You should probably rename ecryptfs_write to ecryptfs_dir_write, or just
> use generic_read_dir and NULL for directory read and write,
> respectively.
Changed. Will look into using the generics, not entirely sure what
impact that will have without further investigation.
> In inode.c:
> Instead of get_parent you can use dget_parent. The core kernel just
> seems to have lock_parent as two lines in the function that need it
> instead of the function these days.
>
> The rest of the VFS locking functions should also be converted from 2.4
> to 2.6 primitives (this is a bug that you inherited from the FiST
> templates). For example, instead of using double_down, you should use
> lock_rename.
Thanks for those, adding them to our ever growing TODO list :)
> For main.c, you can replace the nasty mount option string processing
> with lib/parser.c.
Will look into doing that :)
Mike
next prev parent reply other threads:[~2005-10-19 19:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-18 19:38 eCryptfs: Request for review Michael Halcrow
2005-10-18 19:59 ` Greg KH
2005-10-19 15:36 ` Charles P. Wright
2005-10-19 19:00 ` Michael Thompson [this message]
2005-10-19 19:38 ` Charles P. Wright
2005-10-19 19:55 ` Michael Thompson
2005-10-19 21:02 ` Erez Zadok
2005-10-19 21:38 ` Badari Pulavarty
2005-10-21 21:44 ` Michael Thompson
2005-10-21 21:56 ` Shaya Potter
2005-10-21 22:49 ` Badari Pulavarty
2005-10-24 18:19 ` Michael Thompson
2005-10-26 20:05 ` Michael Thompson
2005-10-26 20:13 ` Anton Altaparmakov
2005-10-27 13:13 ` Charles P. Wright
2005-10-20 14:25 ` Charles P. Wright
2005-10-26 23:29 ` Michael Thompson
2005-10-27 13:12 ` Charles P. Wright
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=afcef88a0510191200g644ed185s82acf45a1854b61e@mail.gmail.com \
--to=michael.craig.thompson@gmail.com \
--cc=cwright@cs.sunysb.edu \
--cc=linux-fsdevel@vger.kernel.org \
--cc=mike@halcrow.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).