tahoe make-verify-cap #713
Labels
No Label
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.6.0
0.6.1
0.7.0
0.8.0
0.9.0
1.0.0
1.1.0
1.10.0
1.10.1
1.10.2
1.10a2
1.11.0
1.12.0
1.12.1
1.13.0
1.14.0
1.15.0
1.15.1
1.2.0
1.3.0
1.4.1
1.5.0
1.6.0
1.6.1
1.7.0
1.7.1
1.7β
1.8.0
1.8.1
1.8.2
1.8.3
1.8β
1.9.0
1.9.0-s3branch
1.9.0a1
1.9.0a2
1.9.0b1
1.9.1
1.9.2
1.9.2a1
LeastAuthority.com automation
blocker
cannot reproduce
cloud-branch
code
code-dirnodes
code-encoding
code-frontend
code-frontend-cli
code-frontend-ftp-sftp
code-frontend-magic-folder
code-frontend-web
code-mutable
code-network
code-nodeadmin
code-peerselection
code-storage
contrib
critical
defect
dev-infrastructure
documentation
duplicate
enhancement
fixed
invalid
major
minor
n/a
normal
operational
packaging
somebody else's problem
supercritical
task
trivial
unknown
was already fixed
website
wontfix
worksforme
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Reference: tahoe-lafs/trac-2024-07-25#713
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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.
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.
P.S. Actually it might be useful for it to produce the readcap, at least optionally, instead of the verifycap.
Replying to zooko:
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 liketahoe put FILE
? And then you could use dump-cap to derive the verifycap from it?Replying to warner:
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 [swillden]comment:6:
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.
Namely this mailing list thread: http://allmydata.org/pipermail/tahoe-dev/2009-July/002190.html
Replying to [swillden]comment:7:
See also #658 for that.
Replying to [davidsarah]comment:9: