Return-Path: william@bourbon.usc.edu
Delivery-Date: Sun Apr 15 16:10:00 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 l3FNA0Bt021350
	for <cs551@merlot.usc.edu>; Sun, 15 Apr 2007 16:10:00 -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 l3FNAAJ6009237
	for <cs551@merlot>; Sun, 15 Apr 2007 16:10:10 -0700
Message-Id: <200704152310.l3FNAAJ6009237@bourbon.usc.edu>
To: cs551@merlot.usc.edu
Subject: Re: Part2 
Date: Sun, 15 Apr 2007 16:10:10 -0700
From: william@bourbon.usc.edu

Someone wrote:

  > Q1.When  a node gets a "GET RESPONSE" which is not destined to
  > itself, and it is supposed to route it to somebody else,it has to
  > store the file it receives so that it can forward it to that
  > node.My question is ,is it OK for us to store the file in the
  > mini file system directory and then after  forwarding the file
  > ,if it decides not to cache the fiile (CACHE PROB) we should
  > remove the fiile.So any other file cached at this node  (due to a
  > later STORE REQ OR GET RESPONSE)in the mini file system will not
  > have an index which is not continuous with the previously stored
  > file.So is it Ok for us to do something like this?Or should the
  > index values in the mini file system be continuous? (i.e..,is it
  > ok for us to store files like 1.data 2.data 4.data)

It depends on what you meant by "stroe the file in the
mini-filesystem".  If you are going to save the *temporary*
file as, say, "3.data", and then delete it if you decide
that you don't need it, then I don't think it's a good idea.
The reason is that if something happens (like your node
crashed), next time you start the node, there would be no
way to tell if "3.data" is a good file or a temporary file,
then you may be in trouble.

But you can easily just call it "3tmp.data"!  Then it's clear
if it's temporary or not.  If you decide to keep it, you just
need to copy or rename it to "3.data".

But the again, there is no requirement how you must do it.
So, you should do what makes sense to you.
--
Bill Cheng // bill.cheng@usc.edu <URL:http://merlot.usc.edu/william/usc/>
