Improve tracking of segments and segment utilization.
[cumulus.git] / python / cumulus / cmd_util.py
index c3733f0..e0b094d 100644 (file)
@@ -1,8 +1,6 @@
-# Cumulus: Smart Filesystem Backup to Dumb Servers
-#
-# Copyright (C) 2006-2009  The Regents of the University of California
-# Copyright (C) 2012  Google Inc.
-# Written by Michael Vrable <mvrable@cs.ucsd.edu>
+# Cumulus: Efficient Filesystem Backup to the Cloud
+# Copyright (C) 2006-2009, 2012 The Cumulus Developers
+# See the AUTHORS file for a list of contributors.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -61,7 +59,7 @@ def cmd_clean(args, clean_threshold=7.0):
     # Delete old snapshots from the local database.
     intent = float(options.intent)
     for s in db.list_schemes():
-        db.garbage_collect(s, intent)
+        db.prune_old_snapshots(s, intent)
 
     # Expire segments which are poorly-utilized.
     for s in db.get_segment_cleaning_list():