Return-Path: william@bourbon.usc.edu
Delivery-Date: Wed Apr 18 11:20:30 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 l3IIKUYc016187
	for <cs551@merlot.usc.edu>; Wed, 18 Apr 2007 11:20:30 -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 l3IIKTT2015995
	for <cs551@merlot>; Wed, 18 Apr 2007 11:20:29 -0700
Message-Id: <200704181820.l3IIKTT2015995@bourbon.usc.edu>
To: cs551@merlot.usc.edu
Subject: Re: Reg Storage. 
Date: Wed, 18 Apr 2007 11:20:29 -0700
From: william@bourbon.usc.edu

Someone wrote:

  > Suppose "get 2 abcd.jpg" is the command that is given and the
  > actual filename is "blondie1.mp3" and it is stored in my
  > permanent as 3.data... So we shud create the file abcd.jpg in the
  > current working directory rite?

Yes.

  > or shud we change the name of 3.data to abcd.jpg?

No.  Please remember that the mini-filesystem belongs to the
node and the current working directory belongs to the user
running the node.

  > While it is in cache...we will move it to permanent

Yes.

  > - supose in cache it is 2.data shud i move it as 2.data
  > or abcd.jpg to permanent...

Well, moving from "2.data" to "2.data" is a no-op.  You just
need to change a bit somewhere in your mini-filesystem to
indicate that the file is in permanent space now.

  > my guess is only in current working
  > directory we will change name and in permanent and cache it
  > always remains as (fileno).data. i just wanted to ask if it was
  > correct?

I don't really think of it as "changing name".  It's saving
the file as a specified filename.  Just like when you download
a file from the internet, the browser often asks you to give
the file a name as soon as the file leaves the browser space
and into your local directory.
--
Bill Cheng // bill.cheng@usc.edu <URL:http://merlot.usc.edu/william/usc/>
