Changeset 20322 in project


Ignore:
Timestamp:
09/13/10 11:09:52 (11 years ago)
Author:
Alaric Snell-Pym
Message:

ugarit: README updates, plus reporting on file cache performance.

Location:
release/4/ugarit/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • release/4/ugarit/trunk/README.txt

    r20271 r20322  
    266266## Backends
    267267
     268* Support for remote backends. This will involve splitting the
     269  backends into separate executables, and having the frontend talk to
     270  them via a simple protocol over standard input and output. Then it
     271  will be possible to use ssh to talk to backends on remote machines,
     272  as well as various other interesting integration opportunities.
     273
    268274* Support for SFTP as a storage backend. Store one file per block, as
    269275  per `backend-fs`, but remotely. See
     
    278284  backend-splitlog if they get corrupted, from the headers left in the
    279285  log.
    280 
    281 * Support for remote backends. This will involve splitting the
    282   backends into separate executables, and having the frontend talk to
    283   them via a simple protocol over standard input and output. Then it
    284   will be possible to use ssh to talk to backends on remote machines,
    285   as well as various other interesting integration opportunities.
    286286
    287287* Support for replicated archives. This will involve a special storage
     
    303303
    304304## Core
     305
     306* Better error handling. Right now we give up if we can't read a file
     307  or directory. It would be awesomer to print a warning but continue
     308  to archive everything else.
    305309
    306310* More `.ugarit` actions. Right now we just have exclude and include;
  • release/4/ugarit/trunk/ugarit-core.scm

    r20270 r20322  
    33         archive?
    44         archive-global-directory-rules
     5         archive-file-cache-hits
    56         archive-writable?
    67         archive-unlinkable?
     
    113114  global-directory-rules ; top-level directory rules
    114115  file-cache ; gdbm map storing filesystem cache (see store-file! procedure); #f if not enabled
     116  file-cache-hits ; count of file cache hits
    115117  )
    116118
     
    272274       decrypt
    273275       *global-rules*
    274        *file-cache*))))
     276       *file-cache* 0))))
    275277
    276278                                        ; Take a block, and return a compressed and encrypted block
     
    582584                  (begin
    583585                    #;(printf "Found ~a/~a in cache: ~a\n" file-path mtime cached-hash)
     586                    (archive-file-cache-hits-set! archive
     587                                                  (+ (archive-file-cache-hits archive) 1))
    584588                    (values cached-hash #t)) ; Found in cache! Woot!
    585589                  (store-file-and-cache! mtime)) ; in cache, but mtime differs
  • release/4/ugarit/trunk/ugarit.scm

    r20270 r20322  
    266266               (cons 'notes *snapshot-notes*)))))
    267267            (printf "Successfully archived ~A to tag ~A\n" fspath tag)
     268            (if (positive? (archive-file-cache-hits archive))
     269                (printf "File cache has saved us ~A file hashings\n"
     270                         (archive-file-cache-hits archive)))
    268271            (printf "Snapshot hash: ~A\n" snapshot-key)
    269272            (archive-close! archive))))
Note: See TracChangeset for help on using the changeset viewer.