From owner-cvs-all Sat Mar 17 12:16:13 2001 Delivered-To: cvs-all@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id BE9C137B71A for ; Sat, 17 Mar 2001 12:16:00 -0800 (PST) (envelope-from Gerhard.Sittig@gmx.net) Received: (qmail 8021 invoked by uid 0); 17 Mar 2001 20:15:59 -0000 Received: from pd950883e.dip.t-dialin.net (HELO speedy.gsinet) (217.80.136.62) by mail.gmx.net (mail05) with SMTP; 17 Mar 2001 20:15:59 -0000 Received: (from sittig@localhost) by speedy.gsinet (8.8.8/8.8.8) id SAA30372; Sat, 17 Mar 2001 18:41:19 +0100 Date: Sat, 17 Mar 2001 18:41:19 +0100 From: Gerhard Sittig To: Poul-Henning Kamp 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> References: <200103171000.f2HA0pI79401@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200103171000.f2HA0pI79401@freefall.freebsd.org>; from phk@FreeBSD.org on Sat, Mar 17, 2001 at 02:00:50AM -0800 Organization: System Defenestrators Inc. Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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