namazu-users-en
[Top] [All Lists]

Re: How does mknmz determine if a file is updated?

To: Earl Hood <earl@earlhood.com>
Subject: Re: How does mknmz determine if a file is updated?
From: knok@daionet.gr.jp
Date: Wed, 03 Sep 2003 19:48:25 +0900
Cc: namazu-users-en@namazu.org
Reply-to: namazu-users-en@namazu.org
Message-id: <87n0dmrvuu.wl@puti.knok.daionet.gr.jp.knok.daionet.gr.jp>
At Mon, 01 Sep 2003 14:00:34 -0500,
Earl Hood wrote:
How does mknmz determine if a file is updated?  Looking at the source,
it appears it is based solely on mtime.  Is this true?

Yes, you are right.

Do you think adding a check for file size changes?  Maybe add the
ability to check the MD5 sum (or SHA sum) of files.  This would
be extra overhead, so it should probably be an optional option.

That sounds a good idea. Index of namazu already has file size
information in NMZ.field.size file, so it could be easy.

I'll try to hack the feature.
-- 
NOKUBI Takatsugu
E-mail: knok@daionet.gr.jp
        knok@namazu.org / knok@debian.org

<Prev in Thread] Current Thread [Next in Thread>