tahoe make-verify-cap #713

Open
opened 2009-05-25 02:29:14 +00:00 by zooko · 10 comments

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

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>
zooko added the
code-frontend-cli
major
enhancement
1.4.1
labels 2009-05-25 02:29:14 +00:00
zooko added this to the undecided milestone 2009-05-25 02:29:14 +00:00

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.

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.
Author

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.

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.
Author

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

P.S. Actually it might be useful for it to produce the readcap, at least optionally, instead of the verifycap.
swillden commented 2009-05-25 13:36:11 +00:00
Owner

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.

Replying to [zooko](/tahoe-lafs/trac-2024-07-25/issues/713#issuecomment-71266): > 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.

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?

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?
swillden commented 2009-06-01 01:12:46 +00:00
Owner

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.

Replying to [warner](/tahoe-lafs/trac-2024-07-25/issues/713#issuecomment-71268): > 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.
swillden commented 2009-07-05 20:25:58 +00:00
Owner

Replying to [swillden]comment:6:

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.

Replying to [swillden]comment:6: > 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.
Author
Namely this mailing list thread: <http://allmydata.org/pipermail/tahoe-dev/2009-July/002190.html>
davidsarah commented 2009-12-13 02:34:17 +00:00
Owner

Replying to [swillden]comment:7:

... 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.

Replying to [swillden]comment:7: > ... 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.
swillden commented 2009-12-13 03:50:38 +00:00
Owner

Replying to [davidsarah]comment:9:

Replying to [swillden]comment:7:

... 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.

Replying to [davidsarah]comment:9: > Replying to [swillden]comment:7: > > ... 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.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#713
No description provided.