From: Brian Warner Date: Wed, 26 Sep 2007 22:00:59 +0000 (-0700) Subject: dump-share: clarify the label on the size of the original file X-Git-Tag: allmydata-tahoe-0.6.1~75 X-Git-Url: https://git.rkrishnan.org/pf/content//%22%3C?a=commitdiff_plain;h=51b59b12191f47175d30066e92de163059890826;p=tahoe-lafs%2Ftahoe-lafs.git dump-share: clarify the label on the size of the original file --- diff --git a/src/allmydata/scripts/debug.py b/src/allmydata/scripts/debug.py index 15b810c1..63b212ff 100644 --- a/src/allmydata/scripts/debug.py +++ b/src/allmydata/scripts/debug.py @@ -61,17 +61,21 @@ def dump_share(config, out=sys.stdout, err=sys.stderr): keys3 = ("plaintext_hash", "plaintext_root_hash", "crypttext_hash", "crypttext_root_hash", "share_root_hash") + display_keys = {"size": "file_size"} for k in keys1: if k in unpacked: - print >>out, "%19s: %s" % (k, unpacked[k]) + dk = display_keys.get(k, k) + print >>out, "%19s: %s" % (dk, unpacked[k]) print >>out for k in keys2: if k in unpacked: - print >>out, "%19s: %s" % (k, unpacked[k]) + dk = display_keys.get(k, k) + print >>out, "%19s: %s" % (dk, unpacked[k]) print >>out for k in keys3: if k in unpacked: - print >>out, "%19s: %s" % (k, unpacked[k]) + dk = display_keys.get(k, k) + print >>out, "%19s: %s" % (dk, unpacked[k]) leftover = set(unpacked.keys()) - set(keys1 + keys2 + keys3) if leftover: