Implement FTP backend and other code cleanups.
authorRalf Schlatterbeck <rsc@runtux.com>
Thu, 10 Sep 2009 21:42:20 +0000 (14:42 -0700)
committerMichael Vrable <mvrable@turin.ucsd.edu>
Thu, 10 Sep 2009 21:42:20 +0000 (14:42 -0700)
commit65edb87a0b8a578b4a7221478a851d71df21fab0
tree1eb6b6f59e8d0abef4d70233939e013e3021a6be
parentfe6bbd9d0b49d6b6e43451f7703894ab02aee73e
Implement FTP backend and other code cleanups.

Details:

- Fix a race condition in setup of RemoteStore: The backup_script was
  set *after* a thread was already started. Sometimes this lead to a
  segfault because the thread tested the backup script twice. During the
  first test the variable wasn't yet defined while in the second test it
  was -- this lead to a segfault due to an uninitialized output file.
  I've move the backup_script to the constructor as an optional
  parameter.
cumulus-util:
- put all command-documentation into docstrings of respective function
- add the docstrings to the usage text, so that we know which commands
  exist
- Fix hard-coded extension '.tar.gpg' for cmd_list_snapshot_sizes
- framework for automatically computing the right method to call for a
  given command
python/cumulus/store/file.py:
- fix constructor so that we can directly call it when it's not called
  via the factory with an URL as parameter
- for NotFoundError give type and filename
python/cumulus/store/ftp.py:
- new FTP backend
README
cumulus-util
python/cumulus/store/__init__.py
python/cumulus/store/file.py
python/cumulus/store/ftp.py [new file with mode: 0644]
python/cumulus/store/s3.py
remote.cc
remote.h
scandir.cc