Return-Path: william@bourbon.usc.edu
Delivery-Date: Fri Apr 20 13:45:05 2007
X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu
X-Spam-Level: 
X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,
	NO_REAL_NAME autolearn=ham version=3.1.3
Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75])
	by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l3KKj5Pk029070
	for <cs551@merlot.usc.edu>; Fri, 20 Apr 2007 13:45:05 -0700
Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1])
	by bourbon.usc.edu (8.13.5/8.13.5) with ESMTP id l3KKivQX015101
	for <cs551@merlot>; Fri, 20 Apr 2007 13:44:57 -0700
Message-Id: <200704202044.l3KKivQX015101@bourbon.usc.edu>
To: cs551@merlot.usc.edu
Subject: Re: Question about SEARCH responce 
Date: Fri, 20 Apr 2007 13:44:57 -0700
From: william@bourbon.usc.edu

Someone wrote:

  > Is the FileID generated at the time of receiving a SEARCH msg?

You can do it when you are about to generate a SEARCH response.
You only need to do it for files that got a hit in a search.

  > If yes is it persistant data and should be saved on disk or is it
  > just valid between two searches and does not need to be written
  > to disk?

If you do it when you generate a SEARCH response, then you don't
need to make it persistent.  Alternatively, you can generate FileIDs
when you STORE a file.  In that case, it has to be persistent.
--
Bill Cheng // bill.cheng@usc.edu <URL:http://merlot.usc.edu/william/usc/>




  ----- Original Message -----
  From: william@bourbon.usc.edu
  Date: Sunday, April 15, 2007 8:48 am
  Subject: Re: Question about SEARCH responce
  To: cs551@merlot.usc.edu
  
  > Someone wrote:
  >
  >  > As specs shows
  >  >
  >  > [1] FileID=*02adefc1dfc97a082fa18a5ef1e8c487259b7fb4
  >  >     *FileName=foo
  >  >     FileSize=123
  >  >     SHA1=b83a758fecbefcd3ea547fbf0f9a97eba0ea984c
  >  >     Nonce=*01b7a1bd6f169dde22518a865ab2f44c70fcab82
  >  >     *Keywords=key1 key2 key3 .....
  >  >
  >  > these two file ID's are different,
  >  > so is the FileID is the ID of the file, which is got by
  > calling GetUOID
  >  > at the time of sending search responce? as it is different
  > than the
  >  > Nonce fieald os metadata?
  >
  > Correct.  Please see:
  >
  >    http://merlot.usc.edu/cs551-s07/projects/final.html#nonce
  > --
  > Bill Cheng // bill.cheng@usc.edu
  > <URL:http://merlot.usc.edu/william/usc/>
