From: "Stefan (metze) Metzmacher" <metze-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
To: Shirish Pargaonkar
<shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-crypto-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] cifs: Replace cifs md5 hashing functions with kernel crypto APIs
Date: Fri, 21 Jan 2011 18:07:48 +0100 [thread overview]
Message-ID: <4D39BD64.5080101@samba.org> (raw)
In-Reply-To: <AANLkTim3b8TFYYV5dcpOi4DtoLBz1XqdOOt6fTYB88uU-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1497 bytes --]
Hi Shirish,
>>> From: Shirish Pargaonkar <shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>>>
>>> Replace remaining use of md5 hash functions local to cifs module
>>> with kernel crypto APIs.
>>> Remove header and source file containing those local functions.
>>>
>>>
>>> Signed-off-by: Shirish Pargaonkar <shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>>> ---
>>> fs/cifs/Makefile | 2 +-
>>> fs/cifs/cifsencrypt.c | 1 -
>>> fs/cifs/link.c | 59 +++++++--
>>> fs/cifs/md5.c | 366 -------------------------------------------------
>>> fs/cifs/md5.h | 38 -----
>>> fs/cifs/smbencrypt.c | 1 -
>>> 6 files changed, 51 insertions(+), 416 deletions(-)
>>> delete mode 100644 fs/cifs/md5.c
>>> delete mode 100644 fs/cifs/md5.h
>>>
>>
>> Very nice. The CIFS parts look good to me, and I'm always fond of
>> reducing the code we need to support as well as the cifs.ko footprint.
>> Assuming that mfsymlink support still works after this patch...
>
> I did test briefly, e.g. creating symlinks and deleting them.
> Hoping Stefan Metzmacher will comment.
> I did verify that the (md5) hash value was different for different actualpaths
Just test with and without your changes, create symlinks with both
versions which point to
the same target. And verify you can use them with both.
Then you can mount without mfsymlink support and verify that the
lowlevel file
has the same md5sum.
metze
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
next prev parent reply other threads:[~2011-01-21 17:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-21 15:04 [PATCH] cifs: Replace cifs md5 hashing functions with kernel crypto APIs shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w
2011-01-21 15:42 ` Jeff Layton
[not found] ` <20110121104228.60262dd2-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-01-21 16:16 ` Shirish Pargaonkar
[not found] ` <AANLkTim3b8TFYYV5dcpOi4DtoLBz1XqdOOt6fTYB88uU-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-01-21 17:07 ` Stefan (metze) Metzmacher [this message]
[not found] ` <4D39BD64.5080101-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2011-01-21 18:13 ` Shirish Pargaonkar
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=4D39BD64.5080101@samba.org \
--to=metze-eunubhrolfbytjvyw6ydsg@public.gmane.org \
--cc=jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-crypto-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.