Return-Path: william@bourbon.usc.edu Delivery-Date: Sun Nov 23 19:52:24 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 mAO3qOFu023138 for ; Sun, 23 Nov 2008 19:52:24 -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 mAO3od2u029511 for ; Sun, 23 Nov 2008 19:50:39 -0800 Message-Id: <200811240350.mAO3od2u029511@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: Project 2 Date: Sun, 23 Nov 2008 19:50:39 -0800 From: Bill Cheng 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