Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Mar 2001 18:41:19 +0100
From:      Gerhard Sittig <Gerhard.Sittig@gmx.net>
To:        Poul-Henning Kamp <phk@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys md5.h src/lib/libmd Makefile md2.h md2c.c md4.h mdX.3 mdXhl.c ripemd.3 ripemd.h sha.3 sha.h
Message-ID:  <20010317184119.G20830@speedy.gsinet>
In-Reply-To: <200103171000.f2HA0pI79401@freefall.freebsd.org>; from phk@FreeBSD.org on Sat, Mar 17, 2001 at 02:00:50AM -0800
References:  <200103171000.f2HA0pI79401@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 17, 2001 at 02:00 -0800, Poul-Henning Kamp wrote:
> 
> phk         2001/03/17 02:00:50 PST
> 
>   Modified files:
>     sys/sys              md5.h 
>     lib/libmd            Makefile md2.h md2c.c md4.h mdX.3 mdXhl.c 
>                          ripemd.3 ripemd.h sha.3 sha.h 
>   Log:
>   Add a new entrypoint to the hashes in libmd:
>     char *
>     FooFileChunk(const char *filename, char *buf, off_t offset, off_t length)
>   Which only hashes part of a file.
>   Implement FooFile() in terms of this function.

I guess this allows to speedup message digest calculation in
mtree(8) by doing it in parallel for the file chunks instead of
reading the files / have them read multiple times (in case
multiple md keywords have been specified).  Depending on the file
size data should still be available, which is not / might not be
the case for the current code structure in
src/usr.sbin/mtree/compare.c (and create.c) for large files.

Should I spend some time on this to deliver patches or is the
clean and uniform layout of the routines more important and gain
too small when changing this?  In concrete I think of doing
tripwire like things, here.


virtually yours   82D1 9B9C 01DC 4FB4 D7B4  61BE 3F49 4F77 72DE DA76
Gerhard Sittig   true | mail -s "get gpg key" Gerhard.Sittig@gmx.net
-- 
     If you don't understand or are scared by any of the above
             ask your parents or an adult to help you.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010317184119.G20830>