Return-Path: william@bourbon.usc.edu Delivery-Date: Wed Nov 19 22:40:06 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id mAK6e6MP005974 for ; Wed, 19 Nov 2008 22:40:06 -0800 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id mAK6bJr9016051 for ; Wed, 19 Nov 2008 22:37:19 -0800 Message-Id: <200811200637.mAK6bJr9016051@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: CS551: Final Project 2 : Filenumber Date: Wed, 19 Nov 2008 22:37:19 -0800 From: Bill Cheng Someone wrote: > as per the naming convnetions, we name the files 1.data, 2.data, 3.data etc. > > now if any of these data files is deleted, are we supposed to reuse that > number ? No. > say if 2.data got deleted (by any means by the program) then are we supposed > to use this number '2' before we use the number '4' ? No. So, somewhere in your mini-filesystem, you should keep information about what's the next number to use. You should at least write out this number when your node gets shutdown. When your node gets restarted again, it should read this file and know what number it should use next. -- Bill Cheng // bill.cheng@usc.edu