From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] snapshot history? From: Charles Forsyth Date: Fri, 10 Mar 2006 18:28:53 +0000 In-Reply-To: <669ba3237a529f52fdca09998110a7aa@swtch.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 124b4af6-ead1-11e9-9d60-3106f5b1d025 > i don't think so. there is an extra layer > of times in the snap directory, and > history doesn't know about it. it seems to try if(strstr(ndump, "snap")){ fd = open(b, OREAD); if(fd < 0) continue; n = dirreadall(fd, &dir); close(fd); if(n == 0) continue; for(i = n-1; i > 0; i--){ if(dir[i].mtime > t0) break; } sprint(b, "/n/%s/%.4d/%.2d%.2d/%s%s", ndump, tm->year+1900, tm->mon+1, tm->mday, dir[i].name, f); free(dir);