mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-05-02 17:12:59 +00:00
'tahoe catalog-shares': add SDMF filesize to the output, update misc/find-share-anomalies.py to match
This commit is contained in:
parent
a050204833
commit
41045fba0f
@ -19,7 +19,7 @@ for catalog in sys.argv[1:]:
|
|||||||
chk_encodings[si][0].add( (si, kN) )
|
chk_encodings[si][0].add( (si, kN) )
|
||||||
chk_encodings[si][1].add( line )
|
chk_encodings[si][1].add( line )
|
||||||
if pieces[0] == "SDMF":
|
if pieces[0] == "SDMF":
|
||||||
ftype, si, kN, ver, expiration, filename = pieces
|
ftype, si, kN, size, ver, expiration, filename = pieces
|
||||||
if si not in sdmf_encodings:
|
if si not in sdmf_encodings:
|
||||||
sdmf_encodings[si] = (set(), set())
|
sdmf_encodings[si] = (set(), set())
|
||||||
sdmf_encodings[si][0].add( (si, kN) )
|
sdmf_encodings[si][0].add( (si, kN) )
|
||||||
|
@ -345,7 +345,7 @@ class CatalogSharesOptions(usage.Options):
|
|||||||
for each share it finds:
|
for each share it finds:
|
||||||
|
|
||||||
CHK $SI $k/$N $filesize $UEB_hash $expiration $abspath_sharefile
|
CHK $SI $k/$N $filesize $UEB_hash $expiration $abspath_sharefile
|
||||||
SDMF $SI $k/$N $seqnum/$roothash $expiration $abspath_sharefile
|
SDMF $SI $k/$N $filesize $seqnum/$roothash $expiration $abspath_sharefile
|
||||||
UNKNOWN $abspath_sharefile
|
UNKNOWN $abspath_sharefile
|
||||||
|
|
||||||
It may be useful to build up a catalog of shares from many storage servers
|
It may be useful to build up a catalog of shares from many storage servers
|
||||||
@ -401,10 +401,10 @@ def describe_share(abs_sharefile, si_s, shnum_s, now, out, err):
|
|||||||
pubkey, signature, share_hash_chain, block_hash_tree,
|
pubkey, signature, share_hash_chain, block_hash_tree,
|
||||||
share_data, enc_privkey) = pieces
|
share_data, enc_privkey) = pieces
|
||||||
|
|
||||||
print >>out, "SDMF %s %d/%d #%d:%s %d %s" % (si_s, k, N, seqnum,
|
print >>out, "SDMF %s %d/%d %d #%d:%s %d %s" % \
|
||||||
idlib.b2a(root_hash),
|
(si_s, k, N, datalen,
|
||||||
expiration,
|
seqnum, idlib.b2a(root_hash),
|
||||||
abs_sharefile)
|
expiration, abs_sharefile)
|
||||||
else:
|
else:
|
||||||
print >>out, "UNKNOWN mutable %s" % (abs_sharefile,)
|
print >>out, "UNKNOWN mutable %s" % (abs_sharefile,)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user