#713 new enhancement

tahoe make-verify-cap

Reported by: zooko Owned by:
Priority: major Milestone: undecided
Component: code-frontend-cli Version: 1.4.1
Keywords: verify Cc:
Launchpad Bug:

Description (last modified by warner)

Make a tahoe cli command to compute an immutable verify cap for a given file and erasure coding params as cheaply as possible.

http://allmydata.org/pipermail/tahoe-dev/2009-May/001824.html

Change History (11)

comment:1 Changed at 2009-05-25T02:52:25Z by warner

  • Description modified (diff)

Does the existing "tahoe debug dump-cap FILECAP" do what you want? It ought to emit a verifycap after it emits a bunch of other information about the cap.

comment:2 Changed at 2009-05-25T03:04:40Z by zooko

I want a command that takes a filename in the local filesystem (or else reads file contents from stdin) rather than one that takes a capability to a file in the Tahoe filesystem. It is for uses such as Shawn Willden's experimentation in that tahoe-dev discussion -- benchmarking, for example.

comment:3 follow-up: Changed at 2009-05-25T03:06:10Z by zooko

P.S. Actually it might be useful for it to produce the readcap, at least optionally, instead of the verifycap.

comment:4 in reply to: ↑ 3 Changed at 2009-05-25T13:36:11Z by swillden

Replying to zooko:

P.S. Actually it might be useful for it to produce the readcap, at least optionally, instead of the verifycap.

Yes, if I were going to make us of it for my backup log, I would need the read cap.

comment:5 follow-up: Changed at 2009-05-31T23:00:05Z by warner

Ah, ok, so it needs to be a lot like "tahoe put", but without the network part.

Would tahoe put --dry-run FILE be reasonable, if it emitted the filecap just like tahoe put FILE ? And then you could use dump-cap to derive the verifycap from it?

comment:6 in reply to: ↑ 5 ; follow-up: Changed at 2009-06-01T01:12:46Z by swillden

Replying to warner:

Ah, ok, so it needs to be a lot like "tahoe put", but without the network part.

Would tahoe put --dry-run FILE be reasonable, if it emitted the filecap just like tahoe put FILE?

That would work, though I'm using the web API rather than the command line interface.

I am still somewhat skeptical about whether or not performance would be acceptable, particularly on low-end backup appliances (think Linksys with USB-attached storage). SHA-256d hashing is CPU-bound on the one I've played with, and I get the idea that the full "PUT" operation would be around an order of magnitude slower.

The need to have read cap index files has driven me to find other uses for them as well, uses that I'd have to find some other way to implement if I didn't have them, so between the performance issue and that one, I'm not sure I'd use a "dry run" option, even if it existed.

comment:7 in reply to: ↑ 6 ; follow-up: Changed at 2009-07-05T20:25:58Z by swillden

Replying to swillden:

The need to have read cap index files has driven me to find other uses for them as well, uses that I'd have to find some other way to implement if I didn't have them, so between the performance issue and that one, I'm not sure I'd use a "dry run" option, even if it existed.

As zooko pointed out in response to a recent mailing list question, this would be a good solution for a need I have to verify that a grid-based immutable file matches a local file.

comment:9 in reply to: ↑ 7 ; follow-up: Changed at 2009-12-13T02:34:17Z by davidsarah

Replying to swillden:

... this would be a good solution for a need I have to verify that a grid-based immutable file matches a local file.

See also #658 for that.

comment:10 in reply to: ↑ 9 Changed at 2009-12-13T03:50:38Z by swillden

Replying to davidsarah:

Replying to swillden:

... this would be a good solution for a need I have to verify that a grid-based immutable file matches a local file.

See also #658 for that.

#658 wouldn't help. I can't assume the backupdb would be there.

comment:11 Changed at 2010-06-12T22:24:25Z by davidsarah

  • Keywords verify added
Note: See TracTickets for help on using tickets.