Return-Path: william@bourbon.usc.edu Delivery-Date: Sun Nov 23 19:59:41 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 mAO3xfZ7023222 for ; Sun, 23 Nov 2008 19:59:41 -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 mAO3vu1J029823 for ; Sun, 23 Nov 2008 19:57:56 -0800 Message-Id: <200811240357.mAO3vu1J029823@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: Project 2 Date: Sun, 23 Nov 2008 19:57:56 -0800 From: Bill Cheng Someone wrote: > So is it fine if I create a nonce index as well? Sure! You can have any additional index structures and files as you see fit. But since you already have a SHA1 index and a FileName index and either SHA1 or FileName will be available, there is really no need to create a Nonce index. It's just one extra data structure to keep track of. -- Bill Cheng // bill.cheng@usc.edu On Sun, Nov 23, 2008 at 7:50 PM, Bill Cheng wrote: > Someone wrote: > > > Continuing from the message below: > > Wouldn't nonce be enough to identify a file uniquely? > > Yes, unless there are some strange bugs that caused > non-unique nonces to be greated. Anyway, you should > check FileName, SHA1, and Nonce. > > Since there is no index for nonces, you should use > the SHA1 index or the FileName index to search. > -- > Bill Cheng // bill.cheng@usc.edu > > > > > On Sun, Nov 23, 2008 at 3:47 PM, Bill Cheng > wrote: > > > Someone wrote: > > > > > > > The format for delete command is 'delete FileName=foo SHA1=6b6c... > > > > Nonce=fe18..' . Are all the 3 arguments mandatory and shud be in > this > > > fixed > > > > order ? > > > > > > All are mandatory. Given our rules of not keeping files > > > with duplicate FileName, SHA1, *and* Nonce, this should > > > match at most one file in your mini-filesystem. > > > -- > > > Bill Cheng // bill.cheng@usc.edu http://merlot.usc.edu/william/usc/>