[tahoe-lafs-trac-stream] [tahoe-lafs] #1374: "walk through" or guide for people who want to read some code

tahoe-lafs trac at tahoe-lafs.org
Tue Mar 1 13:47:55 PST 2011


#1374: "walk through" or guide for people who want to read some code
-----------------------------+----------------------------------------------
     Reporter:  zooko        |       Owner:  nobody   
         Type:  enhancement  |      Status:  new      
     Priority:  major        |   Milestone:  undecided
    Component:  unknown      |     Version:  1.8.2    
   Resolution:               |    Keywords:  docs     
Launchpad Bug:               |  
-----------------------------+----------------------------------------------

Comment (by davidsarah):

 Replying to [ticket:1374 zooko]:
 > I ran the following command to get a rough estimate of the number of
 lines of code you would want to read to get a good idea of the behavior of
 the Tahoe-LAFS client:
 >
 > {{{
 > find client.py codec.py control.py dirnode.py hashtree.py immutable/
 interfaces.py mutable/ node.py nodemaker.py  storage_client.py uri.py
 scripts -type f -print0 | xargs -0 wc -l
 > }}}
 > Result:
 > {{{
 >    21767 total
 > }}}

 That includes the storage client. Isn't the equivalent to the tarsnap
 client just the Tahoe command-line client? That isn't much more than
 {{{scripts/}}}.

 From the experiment I did for #1334:
 {{{
 $ wc -l bin/*.py src/allmydata/scripts/*.py
    760 bin/cli.py
    196 bin/common.py
    275 bin/encodingutil.py
    253 bin/fileutil.py
    201 bin/fixups.py
     77 bin/registry.py
    118 bin/runner.py
     60 bin/tahoe-test.py
    760 bin/uri.py
      0 src/allmydata/scripts/__init__.py
    371 src/allmydata/scripts/backupdb.py
    615 src/allmydata/scripts/cli.py
    196 src/allmydata/scripts/common.py
     86 src/allmydata/scripts/common_http.py
    208 src/allmydata/scripts/create_node.py
    892 src/allmydata/scripts/debug.py
     62 src/allmydata/scripts/keygen.py
    114 src/allmydata/scripts/runner.py
     83 src/allmydata/scripts/slow_operation.py
    202 src/allmydata/scripts/startstop_node.py
     59 src/allmydata/scripts/stats_gatherer.py
    119 src/allmydata/scripts/tahoe_add_alias.py
    325 src/allmydata/scripts/tahoe_backup.py
    306 src/allmydata/scripts/tahoe_check.py
    782 src/allmydata/scripts/tahoe_cp.py
     44 src/allmydata/scripts/tahoe_get.py
    200 src/allmydata/scripts/tahoe_ls.py
    147 src/allmydata/scripts/tahoe_manifest.py
     44 src/allmydata/scripts/tahoe_mkdir.py
     74 src/allmydata/scripts/tahoe_mv.py
     85 src/allmydata/scripts/tahoe_put.py
     39 src/allmydata/scripts/tahoe_rm.py
     32 src/allmydata/scripts/tahoe_webopen.py
   7785 total
 }}}

-- 
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1374#comment:2>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list